Commit graph

  • 052fbc0bdf - Doubled size of trace buffer for easier debugging. Guus Sliepen 2001-01-05 23:51:41 +00:00
  • 77509da76c - AVL tree routines: faster than RBL, and also more stable. Guus Sliepen 2001-01-05 23:50:56 +00:00
  • e1707f7739 - Don't even think about using sscanf with %as anymore - Allow keys to be inside the config files or in a seperate file - Small fixes Guus Sliepen 2000-12-22 21:34:24 +00:00
  • ecae72de94 Added lint target, requires lclint. Ivo Timmermans 2000-12-22 17:15:26 +00:00
  • c5fac35c6c Forget router.c Ivo Timmermans 2000-12-22 17:10:25 +00:00
  • 37544990e9 Include autogen.sh (needed for the Debian package). Ivo Timmermans 2000-12-22 16:59:16 +00:00
  • 8a4daf4ea7 Various small changes. Ivo Timmermans 2000-12-22 16:54:56 +00:00
  • e469fca4d7 Re-introduced MyVirtualIP and VpnMask, as dummy options. Ivo Timmermans 2000-12-06 13:33:49 +00:00
  • e50e4a54d6 Give a warning about having to re-create the keys Ivo Timmermans 2000-12-05 09:04:32 +00:00
  • 4610d98c04 Ported it back to /bin/sh. Ivo Timmermans 2000-12-05 09:03:41 +00:00
  • 1e38dcc3fa Install a file in /etc/modutils/tinc, containing all necessary aliases and options for kernel modules. Ivo Timmermans 2000-12-05 09:03:19 +00:00
  • 6327f32f43 Tiny bits of code beautifying Ivo Timmermans 2000-12-05 08:59:30 +00:00
  • 9267bed9f5 Oops. I did some VERY wrong things with readline(). Fixed now. Ivo Timmermans 2000-12-05 08:56:44 +00:00
  • 6ddc9109d7 Massive long awaited documentation update. It's not finished yet, most notably the example configuration is still old. Ivo Timmermans 2000-12-05 08:54:22 +00:00
  • bc22ee16e6 Option -d accepts an argument to set the debug level immediately. Ivo Timmermans 2000-12-03 12:23:06 +00:00
  • 01d23601a2 Sort configuration directives Ivo Timmermans 2000-12-03 12:22:19 +00:00
  • d6b77e18b5 Added documentation merger Ivo Timmermans 2000-12-03 12:21:20 +00:00
  • e985f6d3cd Include COPYING.README in the distribution. Ivo Timmermans 2000-12-01 13:46:26 +00:00
  • 94192b3db1 Stated that distributing executables linked with OpenSSL is permitted provided that all other requirements of the GPL are complied with. Ivo Timmermans 2000-12-01 13:45:46 +00:00
  • 52575a573c Use buffer instead of line in read_config_file(), line may be assigned NULL, so buffer always holds the pointer to the allocated space. Ivo Timmermans 2000-12-01 12:38:42 +00:00
  • ab33c1aa60 readline() accepts two extra parameters, buf and buflen, to avoid mallocing and freeing for every line that is read. Ivo Timmermans 2000-12-01 12:36:36 +00:00
  • 6c56a8416e Tagged `Storing private key in separate file' as done. Ivo Timmermans 2000-11-30 23:44:07 +00:00
  • 8fe83e98da All full stops have two spaces after them. (Silly commit, I know.) Ivo Timmermans 2000-11-30 23:39:55 +00:00
  • a0f7af3ed7 New function read_rsa_public_key(); In net.c/setup_myself deleted old code to read the public key (which is now implicitly read in together with the private key). Ivo Timmermans 2000-11-30 23:18:21 +00:00
  • 28deaeac14 Avoid printing duplicate messages from read_rsa_keys Ivo Timmermans 2000-11-30 22:48:48 +00:00
  • 2293304748 Better error checking when reading the RSA private key. Ivo Timmermans 2000-11-30 22:33:16 +00:00
  • bf4e969899 In readline(): initialise the line to zero length; In read_config_file(): Test for EOF, and print the variable name that caused an error. Ivo Timmermans 2000-11-30 22:32:14 +00:00
  • 113198d9c0 The file is safe if it doesn't exist. Ivo Timmermans 2000-11-30 21:11:03 +00:00
  • 09260b43d1 Read the PEM file pointed to by the configuration directive PrivateKey. This means thatt he meaning of this variable has changed, it no longer should contain the private key directly. Ivo Timmermans 2000-11-30 20:08:41 +00:00
  • 8ccb1ede92 Implemented is_safe_path, and extended ask_and_safe_open. Ivo Timmermans 2000-11-30 00:24:13 +00:00
  • 75e3c296b4 Updated Dutch translation Ivo Timmermans 2000-11-29 15:22:04 +00:00
  • d36da1948a Also free the pointer returned by readline(). Ivo Timmermans 2000-11-29 14:30:07 +00:00
  • 9e55426d72 Use readline() in read_config_file() instead of fgets. Ivo Timmermans 2000-11-29 14:27:24 +00:00
  • 8ea23d9ec3 xstrdup now takes a const pointer as an argument. Ivo Timmermans 2000-11-29 14:23:08 +00:00
  • 54ef13bf75 Implemented a readline() function that will read an entire line into a dynamically allocated buffer; Ivo Timmermans 2000-11-29 14:24:40 +00:00
  • 9175d20483 Added a check for a scanf that knows about %as. Ivo Timmermans 2000-11-29 01:37:50 +00:00
  • 1ca04711ae Check for get_current_dir_name. There is a replacement function in dropin.c. Ivo Timmermans 2000-11-29 00:33:15 +00:00
  • c94f763742 dropin.c/h contain a set of drop-in replacements for non-standard C library functions (read: GNU extensions). Ivo Timmermans 2000-11-28 23:23:41 +00:00
  • 3ff76eb10a Save RSA public and private keys to a separate file, instead of wanting to copy them into a configuration file. Ivo Timmermans 2000-11-28 23:12:57 +00:00
  • 4c502b005b Use sigaction to set signal handlers, the previous commit (1.1.2.16) already contained a large portion of what should have gone in this one. Ivo Timmermans 2000-11-28 08:59:27 +00:00
  • e44dc004b3 Sort items to either 1.0 or future release goals. Ivo Timmermans 2000-11-27 20:52:55 +00:00
  • 699f3b4c93 Check for the function strsignal, and define it to "" if it is not available. Ivo Timmermans 2000-11-26 22:46:53 +00:00
  • 67a4abda70 Give an error message if daemon() failed. Ivo Timmermans 2000-11-26 22:42:34 +00:00
  • 702e55306d Updated Spanish translation, provided by Enrique Zanardi. Ivo Timmermans 2000-11-26 22:32:52 +00:00
  • 1eedf54681 - Use only one socket for all UDP traffic (for compatibility) - Write pidfile again after detaching - Check OS (for handling FreeBSD/Solaris tun/tap stuff) Guus Sliepen 2000-11-25 13:33:33 +00:00
  • 0806605ce3 - Added daemon() replacement. Guus Sliepen 2000-11-24 23:30:50 +00:00
  • cfb828784e - Added Armijn to the list Guus Sliepen 2000-11-24 23:14:52 +00:00
  • cf49b2c064 Another big & bad commit: - Added some extra search functions to rbl routines - Fix subnet_lookup() - Reorder some syslog messages to make more sense - daemon() is back - Don't let scripts execute in parallel (gives race conditions, and anyway something MIGHT just be configured which is necessary for further execution of tinc itself) - Accidently merged check_child() with execute_script(). - Small fixes Guus Sliepen 2000-11-24 23:13:07 +00:00
  • 97c54ffb35 Add default tinc-up and tinc-down scripts for a Debian system. These do not yet work, it's just old code from init.d. Ivo Timmermans 2000-11-24 16:52:57 +00:00
  • b42c9abafd Call autogen.sh instead of configure alone; and make cvs-clean instead of distclean. This way you can just cvs checkout && dpkg-buildpackage in one go. Ivo Timmermans 2000-11-24 14:15:20 +00:00
  • edb9b4cad0 Explain how to tell configure where OpenSSL lives. Ivo Timmermans 2000-11-24 14:13:51 +00:00
  • 4cb4a7d298 Set errno to 0 before trying to kill the other process. Ivo Timmermans 2000-11-24 14:13:06 +00:00
  • ef88db6312 Alter CFLAGS, somehow INCLUDES doesn't propagate properly. Still doesn't work exactly like it should, but getting there. Ivo Timmermans 2000-11-24 14:12:31 +00:00
  • b178228401 Set CFLAGS to -O2 -Wall when running configure Ivo Timmermans 2000-11-24 14:04:49 +00:00
  • eb36b0c1ef Use cvs2cl instead of rcs2log to generate the ChangeLog. Ivo Timmermans 2000-11-24 14:00:32 +00:00
  • 2f37f2bd8a Set localstatedir to /var Ivo Timmermans 2000-11-24 14:03:13 +00:00
  • 31aa429846 Do not attempt to retreive ChangeLog information only from the CABAL tag, it doesn't work anyway. Ivo Timmermans 2000-11-24 13:33:48 +00:00
  • f2dd7bb42c Do not check for the daemon() system call Ivo Timmermans 2000-11-24 13:32:26 +00:00
  • b0ff879e7c Do not use the C library's daemon() call. Ivo Timmermans 2000-11-24 12:44:39 +00:00
  • cebcf78b9a - Don't link with -ldl anymore - Let's not use bash' built-in pwd function anymore... it does not follow symlinks. Guus Sliepen 2000-11-23 09:30:33 +00:00
  • 7aa7895629 - #include <stdlib.h> instead of <malloc.h> Guus Sliepen 2000-11-22 23:09:38 +00:00
  • dac256505e - Fixed all (except 2) compiler warnings gcc -Wall gave. Guus Sliepen 2000-11-22 22:18:03 +00:00
  • 6f373e6902 - More porting to FreeBSD and Solaris. Guus Sliepen 2000-11-22 22:05:37 +00:00
  • 5971e352da - Work with the correct key buffer in ans_key_h Guus Sliepen 2000-11-22 20:25:27 +00:00
  • a07602c4fd - No more %as. Guus Sliepen 2000-11-22 19:55:53 +00:00
  • 394ed3fb17 - Write pidfile AFTER detaching... - Minor cleanups Guus Sliepen 2000-11-22 19:14:09 +00:00
  • f8b4a000d0 - Cleaned up and checked for some more NULL pointers in rbl.c - Two connection lists: one for incoming connections, sorted on ip/port, one for connections whose identity we know, sorted on id ofcourse... Guus Sliepen 2000-11-22 18:54:08 +00:00
  • 785684f0ec Declare fd. Ivo Timmermans 2000-11-22 17:49:16 +00:00
  • e42255ae13 Add more checks to ensure that filedescriptors are right in _execute_script(). Ivo Timmermans 2000-11-22 17:48:15 +00:00
  • 2ed6813404 Honor the --localstatedir option to configure, instead of hardcoded /var. Ivo Timmermans 2000-11-22 16:19:07 +00:00
  • 9e9e1925b9 - Check for NULL tree->delete callback - Add xstrdup() function Guus Sliepen 2000-11-21 09:13:59 +00:00
  • da9a1e8084 - More fixes. Guus Sliepen 2000-11-20 23:29:47 +00:00
  • 3a6200c1e3 - Various small fixes. Guus Sliepen 2000-11-20 22:13:14 +00:00
  • 06afd357b0 Get rid of all libtool references at once. libtool was only used by libblowfish, which was superseded by openssl. Ivo Timmermans 2000-11-20 19:56:01 +00:00
  • 1857b3c97c - Proper initialization of rbltree structures. Guus Sliepen 2000-11-20 19:41:13 +00:00
  • 408ca91766 - Integrate rbl trees into tinc. Guus Sliepen 2000-11-20 19:12:17 +00:00
  • 9024e01ce6 Also include process.h Ivo Timmermans 2000-11-20 18:06:17 +00:00
  • 3cc063d23a More function and header checks Ivo Timmermans 2000-11-20 18:05:34 +00:00
  • 59aa15d3d1 Added this release Ivo Timmermans 2000-11-20 18:02:15 +00:00
  • 8f273f0ee2 - Small fixes Guus Sliepen 2000-11-19 22:12:46 +00:00
  • cc7c078774 - Deletion also works now. Guus Sliepen 2000-11-19 11:05:59 +00:00
  • 3526f1e151 - Fixed a lot of small things. Tested everything except deletions. Guus Sliepen 2000-11-19 02:04:29 +00:00
  • 4f68e5b613 - Fix tree head/tail upon insertion Guus Sliepen 2000-11-18 23:22:44 +00:00
  • 880cd6f1a9 - Implemented deletions - Added rbl_foreach() function Guus Sliepen 2000-11-18 23:21:01 +00:00
  • 00e5d57262 - Fixed searching - Insertion implemented Guus Sliepen 2000-11-18 18:14:57 +00:00
  • 7fcc0c6415 - Removed stray @INCLUDE@ (how did that get there?) - Use 0 instead of FALSE Guus Sliepen 2000-11-17 10:03:02 +00:00
  • 44cbd13e52 - Simplified do_detach Guus Sliepen 2000-11-17 00:56:49 +00:00
  • 2626c641aa Use proper prototypes. Ivo Timmermans 2000-11-16 22:13:09 +00:00
  • 5d1145f2c4 Move more functions from tincd.c into process.c. Ivo Timmermans 2000-11-16 22:12:23 +00:00
  • 485f7a5043 Delete struct ifr Ivo Timmermans 2000-11-16 22:11:40 +00:00
  • 30f34015ee New function: xmalloc_and_zero, which initialises the allocated memory to all zeroes. Ivo Timmermans 2000-11-16 18:06:39 +00:00
  • 2764532ea7 Move all process-related functions into process.c. Ivo Timmermans 2000-11-16 17:54:29 +00:00
  • aa755206da - Added balanced tree management stuff as well. (It is not finished yet.) Guus Sliepen 2000-11-16 09:18:38 +00:00
  • 7f87c3d913 Keep a list of running children, and in each loop in main_loop(), check if one has exited. Ivo Timmermans 2000-11-15 22:07:36 +00:00
  • d9ce5a7f3f List management and manipulation routines. Ivo Timmermans 2000-11-15 22:04:48 +00:00
  • e118ba0a64 Porting to FreeBSD: - Reorganized and added some #includes Guus Sliepen 2000-11-15 13:33:27 +00:00
  • 596e248bc5 Let the output from an executed script in execute_script() go to syslog, with proper error detection. Ivo Timmermans 2000-11-15 01:28:21 +00:00
  • bb2495e569 Use the HAVE_OPENSSL_xxx_H defined from m4/openssl.m4 during configure. Ivo Timmermans 2000-11-15 01:06:13 +00:00
  • 6fb4a5b6be Also check for sha.h. Ivo Timmermans 2000-11-15 01:02:30 +00:00
  • 8eb60d0ccd Also check for rand.h and err.h. If any of these files does not exist, try the next alternative path. Ivo Timmermans 2000-11-15 00:57:26 +00:00