tinc
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().

24 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.

24 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.

24 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).

24 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.

24 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.

24 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.

24 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.

24 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.

24 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.

24 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)

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

24 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

24 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

24 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.

24 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.

24 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.

24 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.

24 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.

24 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

24 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.

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

24 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.

24 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

24 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.

24 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.

24 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>

24 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.

24 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.

24 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

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

24 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

24 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...

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

24 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().

24 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.

24 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

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

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

24 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.

24 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.

24 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.

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

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

24 years agoAdded this release
Ivo Timmermans [Mon, 20 Nov 2000 18:02:15 +0000 (18:02 +0000)]
Added this release

24 years ago- Small fixes
Guus Sliepen [Sun, 19 Nov 2000 22:12:46 +0000 (22:12 +0000)]
- Small fixes

24 years ago- Deletion also works now.
Guus Sliepen [Sun, 19 Nov 2000 11:05:59 +0000 (11:05 +0000)]
- Deletion also works now.

24 years ago- Fixed a lot of small things. Tested everything except deletions.
Guus Sliepen [Sun, 19 Nov 2000 02:04:29 +0000 (02:04 +0000)]
- Fixed a lot of small things. Tested everything except deletions.

24 years ago- Fix tree head/tail upon insertion
Guus Sliepen [Sat, 18 Nov 2000 23:22:44 +0000 (23:22 +0000)]
- Fix tree head/tail upon insertion

24 years ago- Implemented deletions
Guus Sliepen [Sat, 18 Nov 2000 23:21:01 +0000 (23:21 +0000)]
- Implemented deletions
- Added rbl_foreach() function

24 years ago- Fixed searching
Guus Sliepen [Sat, 18 Nov 2000 18:14:57 +0000 (18:14 +0000)]
- Fixed searching
- Insertion implemented

24 years ago- Removed stray @INCLUDE@ (how did that get there?)
Guus Sliepen [Fri, 17 Nov 2000 10:03:02 +0000 (10:03 +0000)]
- Removed stray @INCLUDE@ (how did that get there?)
- Use 0 instead of FALSE

24 years ago- Simplified do_detach
Guus Sliepen [Fri, 17 Nov 2000 00:56:49 +0000 (00:56 +0000)]
- Simplified do_detach

24 years agoUse proper prototypes.
Ivo Timmermans [Thu, 16 Nov 2000 22:13:09 +0000 (22:13 +0000)]
Use proper prototypes.

24 years agoMove more functions from tincd.c into process.c.
Ivo Timmermans [Thu, 16 Nov 2000 22:12:23 +0000 (22:12 +0000)]
Move more functions from tincd.c into process.c.

24 years agoDelete struct ifr
Ivo Timmermans [Thu, 16 Nov 2000 22:11:40 +0000 (22:11 +0000)]
Delete struct ifr

24 years agoNew function: xmalloc_and_zero, which initialises the allocated memory
Ivo Timmermans [Thu, 16 Nov 2000 18:06:39 +0000 (18:06 +0000)]
New function: xmalloc_and_zero, which initialises the allocated memory
to all zeroes.

24 years agoMove all process-related functions into process.c.
Ivo Timmermans [Thu, 16 Nov 2000 17:54:29 +0000 (17:54 +0000)]
Move all process-related functions into process.c.

24 years ago- Added balanced tree management stuff as well. (It is not finished yet.)
Guus Sliepen [Thu, 16 Nov 2000 09:18:38 +0000 (09:18 +0000)]
- Added balanced tree management stuff as well. (It is not finished yet.)

24 years agoKeep a list of running children, and in each loop in main_loop(),
Ivo Timmermans [Wed, 15 Nov 2000 22:07:36 +0000 (22:07 +0000)]
Keep a list of running children, and in each loop in main_loop(),
check if one has exited.

24 years agoList management and manipulation routines.
Ivo Timmermans [Wed, 15 Nov 2000 22:04:48 +0000 (22:04 +0000)]
List management and manipulation routines.

24 years agoPorting to FreeBSD:
Guus Sliepen [Wed, 15 Nov 2000 13:33:27 +0000 (13:33 +0000)]
Porting to FreeBSD:
- Reorganized and added some #includes

24 years agoLet the output from an executed script in execute_script() go to
Ivo Timmermans [Wed, 15 Nov 2000 01:28:21 +0000 (01:28 +0000)]
Let the output from an executed script in execute_script() go to
syslog, with proper error detection.

24 years agoUse the HAVE_OPENSSL_xxx_H defined from m4/openssl.m4 during
Ivo Timmermans [Wed, 15 Nov 2000 01:06:13 +0000 (01:06 +0000)]
Use the HAVE_OPENSSL_xxx_H defined from m4/openssl.m4 during
configure.

24 years agoAlso check for sha.h.
Ivo Timmermans [Wed, 15 Nov 2000 01:02:30 +0000 (01:02 +0000)]
Also check for sha.h.

24 years agoAlso check for rand.h and err.h. If any of these files does not
Ivo Timmermans [Wed, 15 Nov 2000 00:57:26 +0000 (00:57 +0000)]
Also check for rand.h and err.h.  If any of these files does not
exist, try the next alternative path.

24 years agoGet rid of the annoying empty line
Ivo Timmermans [Tue, 14 Nov 2000 23:18:19 +0000 (23:18 +0000)]
Get rid of the annoying empty line

24 years agoOops, small error.
Ivo Timmermans [Tue, 14 Nov 2000 23:02:08 +0000 (23:02 +0000)]
Oops, small error.

24 years agoBetter checks for OpenSSL. I think it can now detect almost all conceivable installa...
Ivo Timmermans [Tue, 14 Nov 2000 22:57:19 +0000 (22:57 +0000)]
Better checks for OpenSSL.  I think it can now detect almost all conceivable installations.

24 years agoIdentify version as 1.0pre4-cvs
Ivo Timmermans [Mon, 13 Nov 2000 22:29:22 +0000 (22:29 +0000)]
Identify version as 1.0pre4-cvs

24 years agoAdd a check for openssl that accepts explicit file locations.
Ivo Timmermans [Mon, 13 Nov 2000 22:01:27 +0000 (22:01 +0000)]
Add a check for openssl that accepts explicit file locations.

24 years agoAdd prototype for destroy_queue release-1.0pre3
Ivo Timmermans [Thu, 9 Nov 2000 21:33:18 +0000 (21:33 +0000)]
Add prototype for destroy_queue

24 years agoUpdates, updates
Ivo Timmermans [Thu, 9 Nov 2000 21:29:58 +0000 (21:29 +0000)]
Updates, updates

24 years agoBop version number to 1.0pre3-1
Ivo Timmermans [Thu, 9 Nov 2000 20:59:35 +0000 (20:59 +0000)]
Bop version number to 1.0pre3-1

24 years agoWrapped text to 70 (72?) columns for easy reading
Ivo Timmermans [Thu, 9 Nov 2000 20:42:16 +0000 (20:42 +0000)]
Wrapped text to 70 (72?) columns for easy reading

24 years agoFinal release notes added, also edited release notes for 1.0pre2 to what the announce...
Ivo Timmermans [Thu, 9 Nov 2000 20:41:13 +0000 (20:41 +0000)]
Final release notes added, also edited release notes for 1.0pre2 to what the announcement on the mailing list looked like.

24 years ago- Make checkpoint tracing a compile time option (off by default)
Guus Sliepen [Wed, 8 Nov 2000 20:52:37 +0000 (20:52 +0000)]
- Make checkpoint tracing a compile time option (off by default)

24 years ago- Add Jamie :)
Guus Sliepen [Wed, 8 Nov 2000 18:05:06 +0000 (18:05 +0000)]
- Add Jamie :)

24 years ago- Applied Jamie Brigg's patch (close sockets after error)
Guus Sliepen [Wed, 8 Nov 2000 17:56:34 +0000 (17:56 +0000)]
- Applied Jamie Brigg's patch (close sockets after error)

24 years ago- Fixed --config
Guus Sliepen [Wed, 8 Nov 2000 00:20:06 +0000 (00:20 +0000)]
- Fixed --config
- Show warning when both netname and config directory are given.

24 years agoPorting to SunOS 5.8:
Guus Sliepen [Wed, 8 Nov 2000 00:10:50 +0000 (00:10 +0000)]
Porting to SunOS 5.8:
- More #includes Linux doesn't seem to need
- Don't do unsetenv() on SunOS
- Use a replacement asprintf() in case the OS doesn't support it
It now compiles properly under SunOS.

24 years agoPorting to SunOS 5.8:
Guus Sliepen [Tue, 7 Nov 2000 22:33:33 +0000 (22:33 +0000)]
Porting to SunOS 5.8:
- Include all header files necessary
- Check for flock() function

24 years ago- Open UDP connection for all known hosts. Comments please.
Guus Sliepen [Tue, 7 Nov 2000 22:02:14 +0000 (22:02 +0000)]
- Open UDP connection for all known hosts. Comments please.

24 years agoChanged execution of tinc-up:
Guus Sliepen [Tue, 7 Nov 2000 21:43:28 +0000 (21:43 +0000)]
Changed execution of tinc-up:
- Do not free() strings that have been putenv()d, see man page of the
  latter.
- Do not set IFNAME anymore, it appears that the ioctl to get the name of
  the interface does not work at all. Since it is set to NETNAME in case
  of tun/tap and it is known beforehand in case of ethertap, there is no
  need for it anyway... (though it would've simplified things).

24 years agoBuild-Depends on gettext
Ivo Timmermans [Sun, 5 Nov 2000 02:19:58 +0000 (02:19 +0000)]
Build-Depends on gettext

24 years ago- Prepended config_ to all configuration option names, because it confused
Guus Sliepen [Sat, 4 Nov 2000 22:57:33 +0000 (22:57 +0000)]
- Prepended config_ to all configuration option names, because it confused
  everything (including myself).
- Use connection oriented UDP sockets for both incoming and outgoing
  packets.