Commit graph

2237 commits

Author SHA1 Message Date
Ivo Timmermans
4610d98c04 Ported it back to /bin/sh. 2000-12-05 09:03:41 +00:00
Ivo Timmermans
1e38dcc3fa Install a file in /etc/modutils/tinc, containing all necessary aliases
and options for kernel modules.
2000-12-05 09:03:19 +00:00
Ivo Timmermans
6327f32f43 Tiny bits of code beautifying 2000-12-05 08:59:30 +00:00
Ivo Timmermans
9267bed9f5 Oops. I did some VERY wrong things with readline(). Fixed now. 2000-12-05 08:56:44 +00:00
Ivo Timmermans
6ddc9109d7 Massive long awaited documentation update. It's not finished yet,
most notably the example configuration is still old.
2000-12-05 08:54:22 +00:00
Ivo Timmermans
bc22ee16e6 Option -d accepts an argument to set the debug level immediately. 2000-12-03 12:23:06 +00:00
Ivo Timmermans
01d23601a2 Sort configuration directives 2000-12-03 12:22:19 +00:00
Ivo Timmermans
d6b77e18b5 Added documentation merger 2000-12-03 12:21:20 +00:00
Ivo Timmermans
e985f6d3cd Include COPYING.README in the distribution. 2000-12-01 13:46:26 +00:00
Ivo Timmermans
94192b3db1 Stated that distributing executables linked with OpenSSL is permitted
provided that all other requirements of the GPL are complied with.
2000-12-01 13:45:46 +00:00
Ivo Timmermans
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.
2000-12-01 12:38:42 +00:00
Ivo Timmermans
ab33c1aa60 readline() accepts two extra parameters, buf and buflen, to avoid
mallocing and freeing for every line that is read.
2000-12-01 12:36:36 +00:00
Ivo Timmermans
6c56a8416e Tagged `Storing private key in separate file' as done. 2000-11-30 23:44:07 +00:00
Ivo Timmermans
8fe83e98da All full stops have two spaces after them. (Silly commit, I know.) 2000-11-30 23:39:55 +00:00
Ivo Timmermans
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).
2000-11-30 23:18:21 +00:00
Ivo Timmermans
28deaeac14 Avoid printing duplicate messages from read_rsa_keys 2000-11-30 22:48:48 +00:00
Ivo Timmermans
2293304748 Better error checking when reading the RSA private key. 2000-11-30 22:33:16 +00:00
Ivo Timmermans
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.
2000-11-30 22:32:14 +00:00
Ivo Timmermans
113198d9c0 The file is safe if it doesn't exist. 2000-11-30 21:11:03 +00:00
Ivo Timmermans
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.

WARNING: This code is untested.
2000-11-30 20:08:41 +00:00
Ivo Timmermans
8ccb1ede92 Implemented is_safe_path, and extended ask_and_safe_open.
is_safe_path needs more work before it is useable.
2000-11-30 00:24:13 +00:00
Ivo Timmermans
75e3c296b4 Updated Dutch translation 2000-11-29 15:22:04 +00:00
Ivo Timmermans
d36da1948a Also free the pointer returned by readline(). 2000-11-29 14:30:07 +00:00
Ivo Timmermans
9e55426d72 Use readline() in read_config_file() instead of fgets. 2000-11-29 14:27:24 +00:00
Ivo Timmermans
8ea23d9ec3 xstrdup now takes a const pointer as an argument. 2000-11-29 14:23:08 +00:00
Ivo Timmermans
54ef13bf75 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().
2000-11-29 14:24:40 +00:00
Ivo Timmermans
9175d20483 Added a check for a scanf that knows about %as. 2000-11-29 01:37:50 +00:00
Ivo Timmermans
1ca04711ae Check for get_current_dir_name. There is a replacement function in
dropin.c.
2000-11-29 00:33:15 +00:00
Ivo Timmermans
c94f763742 dropin.c/h contain a set of drop-in replacements for non-standard C
library functions (read: GNU extensions).
2000-11-28 23:23:41 +00:00
Ivo Timmermans
3ff76eb10a Save RSA public and private keys to a separate file, instead of
wanting to copy them into a configuration file.
2000-11-28 23:12:57 +00:00
Ivo Timmermans
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.
2000-11-28 08:59:27 +00:00
Ivo Timmermans
e44dc004b3 Sort items to either 1.0 or future release goals. 2000-11-27 20:52:55 +00:00
Ivo Timmermans
699f3b4c93 Check for the function strsignal, and define it to "" if it is not
available.
2000-11-26 22:46:53 +00:00
Ivo Timmermans
67a4abda70 Give an error message if daemon() failed. 2000-11-26 22:42:34 +00:00
Ivo Timmermans
702e55306d Updated Spanish translation, provided by Enrique Zanardi. 2000-11-26 22:32:52 +00:00
Guus Sliepen
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)
2000-11-25 13:33:33 +00:00
Guus Sliepen
0806605ce3 - Added daemon() replacement. 2000-11-24 23:30:50 +00:00
Guus Sliepen
cfb828784e - Added Armijn to the list 2000-11-24 23:14:52 +00:00
Guus Sliepen
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
2000-11-24 23:13:07 +00:00
Ivo Timmermans
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.
2000-11-24 16:52:57 +00:00
Ivo Timmermans
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.
2000-11-24 14:15:20 +00:00
Ivo Timmermans
edb9b4cad0 Explain how to tell configure where OpenSSL lives. 2000-11-24 14:13:51 +00:00
Ivo Timmermans
4cb4a7d298 Set errno to 0 before trying to kill the other process. 2000-11-24 14:13:06 +00:00
Ivo Timmermans
ef88db6312 Alter CFLAGS, somehow INCLUDES doesn't propagate properly. Still
doesn't work exactly like it should, but getting there.
2000-11-24 14:12:31 +00:00
Ivo Timmermans
b178228401 Set CFLAGS to -O2 -Wall when running configure 2000-11-24 14:04:49 +00:00
Ivo Timmermans
eb36b0c1ef Use cvs2cl instead of rcs2log to generate the ChangeLog. 2000-11-24 14:00:32 +00:00
Ivo Timmermans
2f37f2bd8a Set localstatedir to /var 2000-11-24 14:03:13 +00:00
Ivo Timmermans
31aa429846 Do not attempt to retreive ChangeLog information only from the CABAL
tag, it doesn't work anyway.
2000-11-24 13:33:48 +00:00
Ivo Timmermans
f2dd7bb42c Do not check for the daemon() system call 2000-11-24 13:32:26 +00:00
Ivo Timmermans
b0ff879e7c Do not use the C library's daemon() call. 2000-11-24 12:44:39 +00:00