tinc
23 years agoFix error reporting of read_config
Ivo Timmermans [Wed, 17 Jan 2001 01:30:05 +0000 (01:30 +0000)]
Fix error reporting of read_config

23 years ago- Allow ASN1 style keys to be in the config files.
Guus Sliepen [Sat, 13 Jan 2001 16:36:23 +0000 (16:36 +0000)]
- Allow ASN1 style keys to be in the config files.
  Note: tinc ignores private key in the main config file, tinc.conf,
  because it should really be in a separate file.
- When generating new keys, check if name is known and by default append
  the public key to the host configuration file (otherwise rsa_key.pub).

23 years ago- Copy entire sample-config directory to /etc/tinc/example upon installing.
Guus Sliepen [Sat, 13 Jan 2001 14:56:46 +0000 (14:56 +0000)]
- Copy entire sample-config directory to /etc/tinc/example upon installing.

23 years agoAdded sample configuration directory.
Guus Sliepen [Sat, 13 Jan 2001 14:38:18 +0000 (14:38 +0000)]
Added sample configuration directory.

23 years ago- Only send out DEL_HOSTs for hosts with a meta connection
Guus Sliepen [Thu, 11 Jan 2001 11:19:08 +0000 (11:19 +0000)]
- Only send out DEL_HOSTs for hosts with a meta connection

23 years ago- Cleaned up subnet_t
Guus Sliepen [Mon, 8 Jan 2001 21:32:30 +0000 (21:32 +0000)]
- Cleaned up subnet_t

23 years ago- Sign was wrong in search_closest_smaller/greater
Guus Sliepen [Mon, 8 Jan 2001 21:32:00 +0000 (21:32 +0000)]
- Sign was wrong in search_closest_smaller/greater

23 years ago- Squashed another nasty bug.
Guus Sliepen [Mon, 8 Jan 2001 20:35:30 +0000 (20:35 +0000)]
- Squashed another nasty bug.

23 years ago- Added indirectdata and tcponly functionality.
Guus Sliepen [Sun, 7 Jan 2001 20:19:35 +0000 (20:19 +0000)]
- Added indirectdata and tcponly functionality.

23 years ago- Fixed IPv6 subnet lookup routine.
Guus Sliepen [Sun, 7 Jan 2001 20:19:08 +0000 (20:19 +0000)]
- Fixed IPv6 subnet lookup routine.

23 years ago- It's 2001, all copyright notices are updated.
Guus Sliepen [Sun, 7 Jan 2001 17:09:07 +0000 (17:09 +0000)]
- It's 2001, all copyright notices are updated.

23 years ago- Description of protocol and authentication updated.
Guus Sliepen [Sun, 7 Jan 2001 17:08:03 +0000 (17:08 +0000)]
- Description of protocol and authentication updated.

23 years ago- Added header file for route.c. The routing routines in it are not used
Guus Sliepen [Sun, 7 Jan 2001 15:27:30 +0000 (15:27 +0000)]
- Added header file for route.c. The routing routines in it are not used
  yet, but have a look at the source for the ideas behind it.

23 years ago- Reinstated a queue for outgoing packets.
Guus Sliepen [Sun, 7 Jan 2001 15:25:49 +0000 (15:25 +0000)]
- Reinstated a queue for outgoing packets.

23 years ago- Changed list routines to give it the same look'n'feel as the rbl and
Guus Sliepen [Sun, 7 Jan 2001 15:24:52 +0000 (15:24 +0000)]
- Changed list routines to give it the same look'n'feel as the rbl and
  avl tree library.

23 years ago- Typo.
Guus Sliepen [Sat, 6 Jan 2001 20:43:03 +0000 (20:43 +0000)]
- Typo.

23 years ago- Updated texinfo manual.
Guus Sliepen [Sat, 6 Jan 2001 20:02:21 +0000 (20:02 +0000)]
- Updated texinfo manual.

23 years ago- Updated manual pages.
Guus Sliepen [Sat, 6 Jan 2001 18:44:55 +0000 (18:44 +0000)]
- Updated manual pages.

23 years ago- Changed license of AVL tree library to GPL.
Guus Sliepen [Sat, 6 Jan 2001 18:21:17 +0000 (18:21 +0000)]
- Changed license of AVL tree library to GPL.

23 years ago- Check and follow symlinks in is_safe_path
Guus Sliepen [Sat, 6 Jan 2001 18:03:41 +0000 (18:03 +0000)]
- Check and follow symlinks in is_safe_path
- By default write keys to tinc config directory
- Small fix in protocol.c

23 years ago- Updated dutch translation.
Guus Sliepen [Sat, 6 Jan 2001 16:51:14 +0000 (16:51 +0000)]
- Updated dutch translation.

23 years ago- Let user choose whether keys are in the config files or separate
Guus Sliepen [Fri, 5 Jan 2001 23:53:53 +0000 (23:53 +0000)]
- Let user choose whether keys are in the config files or separate
- Use AVL trees instead of RBL trees
- Fixed a lot of annoying subtle bugs! Thanks to gdb...

23 years ago- Doubled size of trace buffer for easier debugging.
Guus Sliepen [Fri, 5 Jan 2001 23:51:41 +0000 (23:51 +0000)]
- Doubled size of trace buffer for easier debugging.

23 years ago- AVL tree routines: faster than RBL, and also more stable.
Guus Sliepen [Fri, 5 Jan 2001 23:50:56 +0000 (23:50 +0000)]
- AVL tree routines: faster than RBL, and also more stable.

23 years ago- Don't even think about using sscanf with %as anymore
Guus Sliepen [Fri, 22 Dec 2000 21:34:24 +0000 (21:34 +0000)]
- 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

23 years agoAdded lint target, requires lclint.
Ivo Timmermans [Fri, 22 Dec 2000 17:15:26 +0000 (17:15 +0000)]
Added lint target, requires lclint.

23 years agoForget router.c
Ivo Timmermans [Fri, 22 Dec 2000 17:10:25 +0000 (17:10 +0000)]
Forget router.c

23 years agoInclude autogen.sh (needed for the Debian package).
Ivo Timmermans [Fri, 22 Dec 2000 16:59:16 +0000 (16:59 +0000)]
Include autogen.sh (needed for the Debian package).

23 years agoVarious small changes.
Ivo Timmermans [Fri, 22 Dec 2000 16:54:56 +0000 (16:54 +0000)]
Various small changes.

23 years agoRe-introduced MyVirtualIP and VpnMask, as dummy options.
Ivo Timmermans [Wed, 6 Dec 2000 13:33:49 +0000 (13:33 +0000)]
Re-introduced MyVirtualIP and VpnMask, as dummy options.

23 years agoGive a warning about having to re-create the keys
Ivo Timmermans [Tue, 5 Dec 2000 09:04:32 +0000 (09:04 +0000)]
Give a warning about having to re-create the keys

23 years agoPorted it back to /bin/sh.
Ivo Timmermans [Tue, 5 Dec 2000 09:03:41 +0000 (09:03 +0000)]
Ported it back to /bin/sh.

23 years agoInstall a file in /etc/modutils/tinc, containing all necessary aliases
Ivo Timmermans [Tue, 5 Dec 2000 09:03:19 +0000 (09:03 +0000)]
Install a file in /etc/modutils/tinc, containing all necessary aliases
and options for kernel modules.

23 years agoTiny bits of code beautifying
Ivo Timmermans [Tue, 5 Dec 2000 08:59:30 +0000 (08:59 +0000)]
Tiny bits of code beautifying

23 years agoOops. I did some VERY wrong things with readline(). Fixed now.
Ivo Timmermans [Tue, 5 Dec 2000 08:56:44 +0000 (08:56 +0000)]
Oops.  I did some VERY wrong things with readline().  Fixed now.

23 years agoMassive long awaited documentation update. It's not finished yet,
Ivo Timmermans [Tue, 5 Dec 2000 08:54:22 +0000 (08:54 +0000)]
Massive long awaited documentation update.  It's not finished yet,
most notably the example configuration is still old.

23 years agoOption -d accepts an argument to set the debug level immediately.
Ivo Timmermans [Sun, 3 Dec 2000 12:23:06 +0000 (12:23 +0000)]
Option -d accepts an argument to set the debug level immediately.

23 years agoSort configuration directives
Ivo Timmermans [Sun, 3 Dec 2000 12:22:19 +0000 (12:22 +0000)]
Sort configuration directives

23 years agoAdded documentation merger
Ivo Timmermans [Sun, 3 Dec 2000 12:21:20 +0000 (12:21 +0000)]
Added documentation merger

23 years agoInclude COPYING.README in the distribution.
Ivo Timmermans [Fri, 1 Dec 2000 13:46:26 +0000 (13:46 +0000)]
Include COPYING.README in the distribution.

23 years agoStated that distributing executables linked with OpenSSL is permitted
Ivo Timmermans [Fri, 1 Dec 2000 13:45:46 +0000 (13:45 +0000)]
Stated that distributing executables linked with OpenSSL is permitted
provided that all other requirements of the GPL are complied with.

23 years agoUse buffer instead of line in read_config_file(), line may be assigned
Ivo Timmermans [Fri, 1 Dec 2000 12:38:42 +0000 (12:38 +0000)]
Use buffer instead of line in read_config_file(), line may be assigned
NULL, so buffer always holds the pointer to the allocated space.

23 years agoreadline() accepts two extra parameters, buf and buflen, to avoid
Ivo Timmermans [Fri, 1 Dec 2000 12:36:36 +0000 (12:36 +0000)]
readline() accepts two extra parameters, buf and buflen, to avoid
mallocing and freeing for every line that is read.

23 years agoTagged `Storing private key in separate file' as done.
Ivo Timmermans [Thu, 30 Nov 2000 23:44:07 +0000 (23:44 +0000)]
Tagged `Storing private key in separate file' as done.

23 years agoAll full stops have two spaces after them. (Silly commit, I know.)
Ivo Timmermans [Thu, 30 Nov 2000 23:39:55 +0000 (23:39 +0000)]
All full stops have two spaces after them.  (Silly commit, I know.)

23 years agoNew function read_rsa_public_key();
Ivo Timmermans [Thu, 30 Nov 2000 23:18:21 +0000 (23:18 +0000)]
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).

23 years agoAvoid printing duplicate messages from read_rsa_keys
Ivo Timmermans [Thu, 30 Nov 2000 22:48:48 +0000 (22:48 +0000)]
Avoid printing duplicate messages from read_rsa_keys

23 years agoBetter error checking when reading the RSA private key.
Ivo Timmermans [Thu, 30 Nov 2000 22:33:16 +0000 (22:33 +0000)]
Better error checking when reading the RSA private key.

23 years agoIn readline(): initialise the line to zero length;
Ivo Timmermans [Thu, 30 Nov 2000 22:32:14 +0000 (22:32 +0000)]
In readline(): initialise the line to zero length;
In read_config_file(): Test for EOF, and print the variable name that
caused an error.

23 years agoThe file is safe if it doesn't exist.
Ivo Timmermans [Thu, 30 Nov 2000 21:11:03 +0000 (21:11 +0000)]
The file is safe if it doesn't exist.

23 years agoRead the PEM file pointed to by the configuration directive
Ivo Timmermans [Thu, 30 Nov 2000 20:08:41 +0000 (20:08 +0000)]
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.

WARNING: This code is untested.

23 years agoImplemented is_safe_path, and extended ask_and_safe_open.
Ivo Timmermans [Thu, 30 Nov 2000 00:24:13 +0000 (00:24 +0000)]
Implemented is_safe_path, and extended ask_and_safe_open.

is_safe_path needs more work before it is useable.

23 years agoUpdated Dutch translation
Ivo Timmermans [Wed, 29 Nov 2000 15:22:04 +0000 (15:22 +0000)]
Updated Dutch translation

23 years agoAlso free the pointer returned by readline().
Ivo Timmermans [Wed, 29 Nov 2000 14:30:07 +0000 (14:30 +0000)]
Also free the pointer returned by readline().

23 years agoUse readline() in read_config_file() instead of fgets.
Ivo Timmermans [Wed, 29 Nov 2000 14:27:24 +0000 (14:27 +0000)]
Use readline() in read_config_file() instead of fgets.

23 years agoxstrdup now takes a const pointer as an argument.
Ivo Timmermans [Wed, 29 Nov 2000 14:23:08 +0000 (14:23 +0000)]
xstrdup now takes a const pointer as an argument.

23 years agoImplemented a readline() function that will read an entire line into a
Ivo Timmermans [Wed, 29 Nov 2000 14:24:40 +0000 (14:24 +0000)]
Implemented a readline() function that will read an entire line into a
dynamically allocated buffer;

Ask for a file name in ask_and_safe_open().

23 years agoAdded a check for a scanf that knows about %as.
Ivo Timmermans [Wed, 29 Nov 2000 01:37:50 +0000 (01:37 +0000)]
Added a check for a scanf that knows about %as.

23 years agoCheck for get_current_dir_name. There is a replacement function in
Ivo Timmermans [Wed, 29 Nov 2000 00:33:15 +0000 (00:33 +0000)]
Check for get_current_dir_name.  There is a replacement function in
dropin.c.

23 years agodropin.c/h contain a set of drop-in replacements for non-standard C
Ivo Timmermans [Tue, 28 Nov 2000 23:23:41 +0000 (23:23 +0000)]
dropin.c/h contain a set of drop-in replacements for non-standard C
library functions (read: GNU extensions).

23 years agoSave RSA public and private keys to a separate file, instead of
Ivo Timmermans [Tue, 28 Nov 2000 23:12:57 +0000 (23:12 +0000)]
Save RSA public and private keys to a separate file, instead of
wanting to copy them into a configuration file.

23 years agoUse sigaction to set signal handlers, the previous commit (1.1.2.16)
Ivo Timmermans [Tue, 28 Nov 2000 08:59:27 +0000 (08:59 +0000)]
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.

23 years agoSort items to either 1.0 or future release goals.
Ivo Timmermans [Mon, 27 Nov 2000 20:52:55 +0000 (20:52 +0000)]
Sort items to either 1.0 or future release goals.

23 years agoCheck for the function strsignal, and define it to "" if it is not
Ivo Timmermans [Sun, 26 Nov 2000 22:46:53 +0000 (22:46 +0000)]
Check for the function strsignal, and define it to "" if it is not
available.

23 years agoGive an error message if daemon() failed.
Ivo Timmermans [Sun, 26 Nov 2000 22:42:34 +0000 (22:42 +0000)]
Give an error message if daemon() failed.

23 years agoUpdated Spanish translation, provided by Enrique Zanardi.
Ivo Timmermans [Sun, 26 Nov 2000 22:32:52 +0000 (22:32 +0000)]
Updated Spanish translation, provided by Enrique Zanardi.

23 years ago- Use only one socket for all UDP traffic (for compatibility)
Guus Sliepen [Sat, 25 Nov 2000 13:33:33 +0000 (13:33 +0000)]
- Use only one socket for all UDP traffic (for compatibility)
- Write pidfile again after detaching
- Check OS (for handling FreeBSD/Solaris tun/tap stuff)

23 years ago- Added daemon() replacement.
Guus Sliepen [Fri, 24 Nov 2000 23:30:50 +0000 (23:30 +0000)]
- Added daemon() replacement.

23 years ago- Added Armijn to the list
Guus Sliepen [Fri, 24 Nov 2000 23:14:52 +0000 (23:14 +0000)]
- Added Armijn to the list

23 years agoAnother big & bad commit:
Guus Sliepen [Fri, 24 Nov 2000 23:13:07 +0000 (23:13 +0000)]
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

23 years agoAdd default tinc-up and tinc-down scripts for a Debian system. These
Ivo Timmermans [Fri, 24 Nov 2000 16:52:57 +0000 (16:52 +0000)]
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.

23 years agoCall autogen.sh instead of configure alone; and make cvs-clean instead
Ivo Timmermans [Fri, 24 Nov 2000 14:15:20 +0000 (14:15 +0000)]
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.

23 years agoExplain how to tell configure where OpenSSL lives.
Ivo Timmermans [Fri, 24 Nov 2000 14:13:51 +0000 (14:13 +0000)]
Explain how to tell configure where OpenSSL lives.

23 years agoSet errno to 0 before trying to kill the other process.
Ivo Timmermans [Fri, 24 Nov 2000 14:13:06 +0000 (14:13 +0000)]
Set errno to 0 before trying to kill the other process.

23 years agoAlter CFLAGS, somehow INCLUDES doesn't propagate properly. Still
Ivo Timmermans [Fri, 24 Nov 2000 14:12:31 +0000 (14:12 +0000)]
Alter CFLAGS, somehow INCLUDES doesn't propagate properly.  Still
doesn't work exactly like it should, but getting there.

23 years agoSet CFLAGS to -O2 -Wall when running configure
Ivo Timmermans [Fri, 24 Nov 2000 14:04:49 +0000 (14:04 +0000)]
Set CFLAGS to -O2 -Wall when running configure

23 years agoUse cvs2cl instead of rcs2log to generate the ChangeLog.
Ivo Timmermans [Fri, 24 Nov 2000 14:00:32 +0000 (14:00 +0000)]
Use cvs2cl instead of rcs2log to generate the ChangeLog.

23 years agoSet localstatedir to /var
Ivo Timmermans [Fri, 24 Nov 2000 14:03:13 +0000 (14:03 +0000)]
Set localstatedir to /var

23 years agoDo not attempt to retreive ChangeLog information only from the CABAL
Ivo Timmermans [Fri, 24 Nov 2000 13:33:48 +0000 (13:33 +0000)]
Do not attempt to retreive ChangeLog information only from the CABAL
tag, it doesn't work anyway.

23 years agoDo not check for the daemon() system call
Ivo Timmermans [Fri, 24 Nov 2000 13:32:26 +0000 (13:32 +0000)]
Do not check for the daemon() system call

23 years agoDo not use the C library's daemon() call.
Ivo Timmermans [Fri, 24 Nov 2000 12:44:39 +0000 (12:44 +0000)]
Do not use the C library's daemon() call.

23 years ago- Don't link with -ldl anymore
Guus Sliepen [Thu, 23 Nov 2000 09:30:33 +0000 (09:30 +0000)]
- Don't link with -ldl anymore
- Let's not use bash' built-in pwd function anymore... it does not follow
  symlinks.

23 years ago- #include <stdlib.h> instead of <malloc.h>
Guus Sliepen [Wed, 22 Nov 2000 23:09:38 +0000 (23:09 +0000)]
- #include <stdlib.h> instead of <malloc.h>

23 years ago- Fixed all (except 2) compiler warnings gcc -Wall gave.
Guus Sliepen [Wed, 22 Nov 2000 22:18:03 +0000 (22:18 +0000)]
- Fixed all (except 2) compiler warnings gcc -Wall gave.

23 years ago- More porting to FreeBSD and Solaris.
Guus Sliepen [Wed, 22 Nov 2000 22:05:37 +0000 (22:05 +0000)]
- More porting to FreeBSD and Solaris.

23 years ago- Work with the correct key buffer in ans_key_h
Guus Sliepen [Wed, 22 Nov 2000 20:25:27 +0000 (20:25 +0000)]
- Work with the correct key buffer in ans_key_h

23 years ago- No more %as.
Guus Sliepen [Wed, 22 Nov 2000 19:55:53 +0000 (19:55 +0000)]
- No more %as.

23 years ago- Write pidfile AFTER detaching...
Guus Sliepen [Wed, 22 Nov 2000 19:14:09 +0000 (19:14 +0000)]
- Write pidfile AFTER detaching...
- Minor cleanups

23 years ago- Cleaned up and checked for some more NULL pointers in rbl.c
Guus Sliepen [Wed, 22 Nov 2000 18:54:08 +0000 (18:54 +0000)]
- 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...

23 years agoDeclare fd.
Ivo Timmermans [Wed, 22 Nov 2000 17:49:16 +0000 (17:49 +0000)]
Declare fd.

23 years agoAdd more checks to ensure that filedescriptors are right in
Ivo Timmermans [Wed, 22 Nov 2000 17:48:15 +0000 (17:48 +0000)]
Add more checks to ensure that filedescriptors are right in
_execute_script().

23 years agoHonor the --localstatedir option to configure, instead of hardcoded /var.
Ivo Timmermans [Wed, 22 Nov 2000 16:19:07 +0000 (16:19 +0000)]
Honor the --localstatedir option to configure, instead of hardcoded /var.

23 years ago- Check for NULL tree->delete callback
Guus Sliepen [Tue, 21 Nov 2000 09:13:59 +0000 (09:13 +0000)]
- Check for NULL tree->delete callback
- Add xstrdup() function

23 years ago- More fixes.
Guus Sliepen [Mon, 20 Nov 2000 23:29:47 +0000 (23:29 +0000)]
- More fixes.

23 years ago- Various small fixes.
Guus Sliepen [Mon, 20 Nov 2000 22:13:14 +0000 (22:13 +0000)]
- Various small fixes.

23 years agoGet rid of all libtool references at once. libtool was only used by
Ivo Timmermans [Mon, 20 Nov 2000 19:56:01 +0000 (19:56 +0000)]
Get rid of all libtool references at once.  libtool was only used by
libblowfish, which was superseded by openssl.

23 years ago- Proper initialization of rbltree structures.
Guus Sliepen [Mon, 20 Nov 2000 19:41:13 +0000 (19:41 +0000)]
- Proper initialization of rbltree structures.

23 years ago- Integrate rbl trees into tinc.
Guus Sliepen [Mon, 20 Nov 2000 19:12:17 +0000 (19:12 +0000)]
- Integrate rbl trees into tinc.

23 years agoAlso include process.h
Ivo Timmermans [Mon, 20 Nov 2000 18:06:17 +0000 (18:06 +0000)]
Also include process.h

23 years agoMore function and header checks
Ivo Timmermans [Mon, 20 Nov 2000 18:05:34 +0000 (18:05 +0000)]
More function and header checks