Commit Graph

801 Commits

Author SHA1 Message Date
Michael Rash
0109d64e54 added encryption_mode() support to perl FKO module 2013-01-27 14:03:26 -05:00
Michael Rash
b537c9e451 ensure test/conf/ files are included 2013-01-27 13:30:26 -05:00
Michael Rash
e7eb02f82d Maintain backwards compatibility with old "zero padding" code
[libfko] Added the ability to maintain backwards compatibility with the
now deprecated "zero padding" strategy in AES mode that was a hold over
from the old perl fwknop implementation.  This enables the backwards
compatiblity tests to continue to pass in the test suite.
2013-01-27 13:18:29 -05:00
Michael Rash
8a5b700c30 openssl tests to use '-pass file:' method for setting passphrase 2013-01-27 10:54:20 -05:00
Michael Rash
98c16005da memset() AES buffers to zero 2013-01-27 10:53:07 -05:00
Michael Rash
1618dc2a7c minor typo spelling fix 2013-01-26 20:45:56 -05:00
Michael Rash
1d35c33d52 [test suite] added --enable-openssl-checks
Added --enable-openssl-checks to send all SPA packets encrypted via libfko
through the OpenSSL library to ensure that the libfko usage of AES is always
compatible with OpenSSL.  This ensures that the fwknop usage of AES is properly
implemented as verified by the OpenSSL library, which is a frequently audited
high profile crypto engine.  If a vulnerability is discovered in OpenSSL and a
change is made, then the --enable-openssl-checks mode will allow the test suite
to discover this in a automated fashion for fwknop.
2013-01-25 21:44:24 -05:00
Michael Rash
e6e695bc2e minor todo.org updates 2013-01-22 22:47:40 -05:00
Michael Rash
fbbcae3a0d [libfko] Don't trundate > 16 byte Rijndael keys
Significant bug fix to honor the full encryption key length for
user-supplied Rijndael keys > 16 bytes long.  Previous to this bug fix,
only the first 16 bytes of a key were actually used in the encryption/
decryption process even if the supplied key was longer.  The result was
a weakening of expected security for users that had keys > 16 bytes,
although this is probably not too common.  Note that "passphrase" is
perhaps technically a better word for "user-supplied key" in this
context since Rijndael in CBC mode derives a real encryption/decryption
key from the passphrase through a series of applications of md5 against
the passphrase and a random salt.  This issue was reported by Michael T.
Dean.  Closes issue #18 on github.
2013-01-22 22:20:54 -05:00
Michael Rash
fde5ec8ed9 minor todo.org updates 2013-01-20 22:43:29 -05:00
Michael Rash
7d82b3ef30 minor ChangeLog and todo.org updates for the coming HMAC feature 2013-01-20 22:01:29 -05:00
Michael Rash
6c72e7a908 added test for b0a4c045e6 (ensure iptables rules not duplicated) 2013-01-20 18:51:34 -05:00
Michael Rash
fd41308ce5 added info for Franck's latest contribution 2013-01-20 15:31:55 -05:00
Michael Rash
b0a4c045e6 Merge remote-tracking branch 'fjoncourt/master' into hmac_support
This merges in code from Franck Joncourt to ensure that duplicate iptables
rules are not created for SPA packets that are themselves different but arrive
at the same time and that request exactly the same access.  This is done by
using the 'iptables -C' functionality to determine whether a duplicate rule
already exists before adding a new one.
2013-01-20 15:22:47 -05:00
Michael Rash
160a9e5565 perl FKO module HMAC compatibility 2013-01-20 14:27:27 -05:00
Michael Rash
47f20ea30c merged in the fixes_for_2.0.4 branch 2013-01-19 18:36:52 -05:00
Michael Rash
fc4825b331 added backwards compatibility test for 2.0.4 client->server 2013-01-19 18:17:29 -05:00
Michael Rash
437a05dac6 interim commit towards FKO compatibility with HMAC code 2013-01-19 16:27:34 -05:00
Michael Rash
307cb84323 port strlen bugfix 2013-01-18 22:11:32 -05:00
Michael Rash
47ea800889 merged in fwknop-2.0.4 changes 2013-01-18 17:25:16 -05:00
Franck Joncourt
0fda88cfca * Avoid duplicate rules with the same timestamp. 2013-01-17 21:46:13 +01:00
Damien Stuart
10c19063df Fixed parallel build issue
Added explicit dependency directives to Makefile.am to address errors
when running a parallel build.
2012-12-23 10:28:30 -05:00
Michael Rash
516b75f41c removed openbsd/pkg/ directory 2012-12-13 21:09:47 -05:00
Michael Rash
0d19065ecc added fwknop-2.0.4 OpenBSD port from Vlad Glagolev 2012-12-13 21:07:53 -05:00
Michael Rash
0e89efb40e moved openbsd/* to openbsd/fwknop-2.0.3/ now that Vlad Glagolev has contributed an fwknop-2.0.4 OpenBSD port 2012-12-13 21:05:31 -05:00
Michael Rash
92b648a08f updated ChangeLog.git file for fwknop-2.0.4 changes 2012-12-09 15:55:59 -05:00
Michael Rash
c9f5e495bb bumped libfko and libfko-devel to 1.0.0 2012-12-09 15:29:46 -05:00
Michael Rash
3c11b26243 todo.org fwknop-2.0.4 released 2012-12-09 15:29:03 -05:00
Michael Rash
e4751f9f5e fixed fwknop-2.0.4 release date 2012-12-09 15:27:36 -05:00
Michael Rash
59fe04787b [test suite] minor 're-run make' bug fix for perl FKO module installation 2012-12-09 15:25:14 -05:00
Damien Stuart
5f598bbf7f Added Les Aker's changes: Look for glibtoolize if libtoolize is not available (for Macs). Added USE_GPG_AGENT option for .fwknoprc 2012-12-09 12:30:43 -05:00
Michael Rash
8078b0ec1f Commented out Devel::Checklib since this is most likely for CPAN anyway
There were portability issues on FreeBSD when Devel::Checklib was in use, but
this can be added back in for a CPAN version of the perl FKO module.
2012-12-09 10:28:50 -05:00
Michael Rash
a673406ebd [test suite] updated fuzzing tests to allow usernames with '.' chars 2012-12-08 20:58:17 -05:00
Michael Rash
51a545dbaf Merge branch 'master' of github.com:mrash/fwknop 2012-12-08 16:26:30 -05:00
Damien Stuart
10f2d295be Have libfko link strlxxx objects directly instead of libfko_util. 2012-12-08 15:40:40 -05:00
Michael Rash
05d4299de1 made compilation warning check case-insensitive 2012-12-07 14:53:27 -05:00
Damien Stuart
39410044c5 Set new libfko version. Client: allow dot (.) in validate_username, and display version and exit without creating an fko context. 2012-12-07 11:38:31 -05:00
Michael Rash
88c66f647f Revert "added got_allow_ip() wrapper around have_allow_ip() to fix an exported symbol issue noticed by Franck"
This reverts commit e57cfa2e23.  This is done
because libfko now restricts the symbols it exports to only those functions
that should be visible when making use of the library - internal libfko
functions should not be exported.
2012-12-03 22:45:39 -05:00
Damien Stuart
7df9edc1db Merge branch 'master' of github.com:mrash/fwknop 2012-12-02 09:59:48 -05:00
Damien Stuart
bcea440b87 Limited exported symbols in libfko to only the public (fko_) functions. Moved strlcat/cpy to a separate libfko_util lib. 2012-12-02 09:56:57 -05:00
Michael Rash
e57cfa2e23 added got_allow_ip() wrapper around have_allow_ip() to fix an exported symbol issue noticed by Franck 2012-12-01 22:45:55 -05:00
Damien Stuart
e3c4c045c6 Changes to address header references, platform support, error messages, and the perl module test suite.
Rearranged headers to reduce duplication and remove local header
references from fko.h.
Removed references to headers that did not need to be explicitly set.
Moved the MAX_PROTO_STR_LEN and MAX_PORT_STR_LEN definitions to the
fko_limits.h file.
Fixed bug where invalid nat_access or command messages were returning
FKO_ERROR_INVALID_SPA_ACCESS_MSG error code instead of the one
appropriate to the message type.
Fixed bad nat_access_msg test in Perl module test suite (caught by new
validation code).
2012-12-01 11:06:41 -05:00
Damien Stuart
1ec9f4ae94 Re-tweaks for accommodating the windows build and systems that do not have strnlen 2012-11-30 23:40:24 -05:00
Michael Rash
eaba5813f3 Bug fix for perl FKO compilation
This commit removes lib/ includes of common/ header files that was breaking
the perl FKO module compilation.
2012-11-28 22:39:07 -05:00
Michael Rash
04e0c9b560 [server] Ignore pcap non-blocking setting in --pcap-file mode
When setting --pcap-file mode from the command line some versions of libpcap
do not appear to allow non-blocking mode to be set and throw the following
error:

[*] Error setting pcap nonblocking to 0:

This commit ignores the non-blocking setting in --pcap-file mode.
2012-11-27 22:54:55 -05:00
Michael Rash
0337ae9fb6 Merge branch 'master' of github.com:mrash/fwknop 2012-11-22 21:43:43 -05:00
Damien Stuart
524d69af23 Merge branch 'master' of github.com:mrash/fwknop
Conflicts:
	configure.ac
2012-11-21 22:33:13 -05:00
Damien Stuart
5873df753a Tweaks to fix autoconf-related portability issues and autogen.sh reliability 2012-11-21 22:30:54 -05:00
Damien Stuart
11124b1f9f Tweaks to fix autoconf-related portability issues and autogen.sh reliability 2012-11-21 22:16:39 -05:00
Michael Rash
4cb5add328 revert 7db2d1e796 (--disable-gpg arg) since --without-gpgme works properly 2012-11-21 21:49:16 -05:00