2601 Commits

Author SHA1 Message Date
Michael Rash
71b8f22402
Merge pull request #282 from DeforaNetworks/khorben/execvp
Use execvp() instead of execvpe()
2018-08-08 17:05:55 -07:00
Michael Rash
d59c77a20b Revert "Fix two erroneous calls to strlcat()"
This reverts commit c412166aaabe96d41466abb3e4b0099a837c4017.
2018-08-07 23:35:34 -07:00
Michael Rash
c4f437f1dc
Merge pull request #284 from DeforaNetworks/khorben/strlcat 2018-08-07 06:28:12 -04:00
c412166aaa Fix two erroneous calls to strlcat()
strlcat() needs to be informed about the actual size of the buffer. Two
calls simply used the size expected, thus potentially allowing
stack-based buffer overflows.

There is no direct security impact in this case, since the code affected
is on the client side, and the input comes from configuration
information.
2018-08-07 09:48:30 +02:00
Michael Rash
108290c6f3
Merge pull request #283 from DeforaNetworks/khorben/srandom
Seed random() at least a bit before using random()
2018-08-06 20:49:49 -04:00
Michael Rash
2766648afd Merge branch 'master' of ssh://ubuntu1604/home/mbr/git/fwknop 2018-08-06 20:43:29 -04:00
Michael Rash
d8b9005d19 Merge branch 'master' of https://github.com/mrash/fwknop 2018-08-06 17:41:32 -07:00
Michael Rash
a6337ba054 Merge branch 'master' of ssh://github.com/mrash/fwknop 2018-08-06 20:41:09 -04:00
Michael Rash
bd30379313 doc update 2018-08-06 17:27:52 -07:00
Michael Rash
81a264ad24 bump version to 2.6.10 2018-08-06 17:26:12 -07:00
Michael Rash
b15b278263 add erlang files 2018-08-06 17:24:03 -07:00
Michael Rash
e191e494a0 minor documentation update 2018-08-06 16:52:05 -07:00
f00d44deac Seed random() at least a bit before using random()
In fwknop, the values generated using random() are only used for the ID
field of raw IP packets. As indicated in the corresponding comments,
this value does not really matter, and it does not really have to be
random at all.

However, it should not hurt to initialize the entropy pool before
generating random values. arc4random() would be a better choice, but it
is not portable across the range of systems currently supported by
fwknop.
2018-08-06 19:20:35 +02:00
0b475ec7b3 Use execvp() instead of execvpe()
execvp() is (usually) equivalent to execvpe(), without enforcing any
change to the environment. However, unlike execvp(), execvpe() is not
standardized by POSIX, and may therefore not be available nor detected
when configuring the project (like on NetBSD).

No place could be found in fwknop to be using execvpe() and changing the
environment. Therefore it seems only logical (and safer) to use execvp()
instead.

This also updates the tests to reflect this change.
2018-08-06 12:04:45 +02:00
Michael Rash
ae089b1bad
Merge pull request #280 from DeforaNetworks/khorben/connect-error-format 2018-07-25 18:42:29 -04:00
6d6a722128 Fix incomplete format string upon errors 2018-07-25 22:35:03 +02:00
Michael Rash
e0c860d2c7
Merge pull request #277 from DeforaNetworks/khorben/usage
More consistent usage screens
2018-07-18 21:28:48 -04:00
8a1289cdc9 More consistent usage screens 2018-07-17 16:45:46 +02:00
Michael Rash
b4c75d195f
Merge pull request #274 from DeforaNetworks/khorben/typo 2018-07-11 22:36:40 -04:00
50f56a581f Fix the configuration variable name for GPG_DECRYPT_PW 2018-07-10 11:31:54 +02:00
Michael Rash
e6b095a430
Merge pull request #271 from DeforaNetworks/khorben/warnings
Addressing most warnings
2018-07-02 23:57:58 -04:00
5228fe88d0 Avoid compilation warnings from ctype(3) helpers
Characters should be casted as unsigned before use in functions from
<ctype.h>. Otherwise the compiler treats 8-bit characters (eg UTF-8) as
negative values (since it expects signed integers) and they no longer
match the comparison tables. Worse, the character 0xff gets interpreted
as -1 (like EOF). In turn, it helps to explicitly cast the result as a
signed integer, since this is what is expected. Characters in the range
0x80-0xff do keep their original values.

See the manual page for ctype(3) for more details (eg from NetBSD)
2018-06-12 14:01:22 -04:00
42be3dcff5 Avoid a warning about deprecated assertions 2018-06-12 13:48:00 -04:00
Michael Rash
44c3defa4c
Merge pull request #268 from DeforaNetworks/khorben/typo
Fix typo in a comment
2018-04-24 21:59:54 -04:00
Michael Rash
92182d34c2
Merge pull request #267 from DeforaNetworks/khorben/netbsd
Let fwknop build on NetBSD
2018-04-24 21:59:40 -04:00
1062021957 Fix typo in a comment 2018-04-25 03:48:24 +02:00
4d88f08f56 Let fwknop build on NetBSD 2018-04-25 03:47:56 +02:00
Michael Rash
576d09afbf
Merge pull request #260 from mstair/erlang_server
Adding Erlang server component
2018-03-16 22:11:15 -04:00
Michael Rash
bd6eb44b8a
Merge pull request #252 from jwilk-forks/httphttp
[extras] fix URL in OpenWRT packaging
2018-03-16 22:10:01 -04:00
Michael Stair
6353032ea4
Merge pull request #2 from sparrell/erlang_server
Update deprecated crypto:rand_uniform
2018-03-03 15:08:17 -05:00
Duncan Sparrell
3c94f92fb4 Update deprecated crypto:rand_uniform
plus fix missing newline
2018-03-03 13:49:40 -05:00
Michael Stair
4486489570
Merge pull request #1 from sparrell/erlang_server
server on localhost
2018-03-03 12:38:00 -05:00
Duncan Sparrell
5c5911e96a server on localhost 2018-03-03 11:09:32 -05:00
Michael Stair
f0f8abd8e8 Adding erlang spa server component 2017-11-27 10:16:14 -05:00
Michael Rash
ecb25a042c regenerate fwknopd man page with Jonathan's pcap loop fix 2017-09-18 22:25:52 -04:00
Michael Rash
3cd88ac62e Merge branch 'master' of ssh://github.com/mrash/fwknop 2017-09-18 22:20:31 -04:00
Michael Rash
8c33a104d6 a further byte-order refinement 2017-09-18 22:20:02 -04:00
Jonathan Bennett
e89d2c38e0 Correct default value of PCAP_LOOP_SLEEP in man page
The default value of PCAP_LOOP_SLEEP was misstated, a 0 was missed.
2017-09-11 23:27:26 -05:00
Michael Rash
a617502b25 update ChangeLog with OpenBSD endian fix 2017-09-09 09:22:02 -04:00
Michael Rash
10d31064c3 Endian fix for OpenBSD systems
Per github issue #257, Jérémie Courrèges-Anglas and Ingo Feinerer
contributed a patch to fix endian detection on OpenBSD systems. This is
based on information contained at:

https://www.opengroup.org/austin/docs/austin_514.txt
2017-09-09 09:06:07 -04:00
Jakub Wilk
ca320c1c73 [extras] fix URL in OpenWRT packaging 2017-04-25 21:12:24 +02:00
Michael Rash
78b3a215cb fix gnupg.org link in the ChangeLog 2017-04-15 08:56:13 -04:00
Michael Rash
d5c841140f image markdown fix for the README 2017-03-28 23:03:16 -04:00
Michael Rash
013509832e Merge branch 'master' of ssh://moria/home/mbr/git/fwknop 2017-03-28 22:57:12 -04:00
Michael Rash
456b51693f minor README images path update 2017-03-28 22:56:08 -04:00
Michael Rash
bc1505934e Merge branch 'master' of ssh://github.com/mrash/fwknop 2017-02-20 22:09:56 -05:00
Michael Rash
ac9ccb9ab0 [libfko] check NULL ptr before utilizing - discovered by the PVS-Studio static analyzer 2017-02-20 21:54:22 -05:00
Michael Rash
9f963df723 minor comment addition 2017-02-20 21:51:35 -05:00
Michael Rash
5dffde18fd Merge pull request #250 from jwilk/python-errstr 2017-02-12 16:46:50 -05:00
Jakub Wilk
42ebb04605 [python] fix name error in Fko.errstr() 2017-02-09 12:16:29 +01:00