fwknop.git
3 weeks ago[server] added tests on Linux systems for the iptables FLUSH_IPT_* vars
Michael Rash [Fri, 3 May 2013 02:29:51 +0000]
[server] added tests on Linux systems for the iptables FLUSH_IPT_* vars

3 weeks ago[server] minor memory leak bug fix for invalid date processing
Michael Rash [Fri, 3 May 2013 02:26:21 +0000]
[server] minor memory leak bug fix for invalid date processing

Bug fix to ensure to release memory when invalid access stanza dates are set
and fwknopd has to exit.  This leak was caught with the test suite in
--enable-valgrind mode based on the following output:

==31947== 568 bytes in 1 blocks are still reachable in loss record 1 of 1
==31947==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==31947==    by 0x52EE42A: __fopen_internal (iofopen.c:73)
==31947==    by 0x1116A2: parse_access_file (access.c:909)
==31947==    by 0x10BAD5: main (fwknopd.c:194)

3 weeks agoFirst attempt to not ovewrite some configuration variables with --save-rc-stanza.
Franck Joncourt [Thu, 2 May 2013 21:58:28 +0000]
First attempt to not ovewrite some configuration variables with --save-rc-stanza.

At this time it only does not overwrite the KEY and HMAC variable without asking the user
what he wants to do.

3 weeks ago[test suite] add new test files to Makefile.am
Michael Rash [Thu, 2 May 2013 03:55:34 +0000]
[test suite] add new test files to Makefile.am

3 weeks agofixed more typos
Shawn Wilson [Wed, 1 May 2013 14:59:48 +0000]
fixed more typos

3 weeks agocorrect variable name typo
Shawn Wilson [Wed, 1 May 2013 14:42:13 +0000]
correct variable name typo

3 weeks agoadd ip address to messages where appropriate
Shawn Wilson [Wed, 1 May 2013 14:31:44 +0000]
add ip address to messages where appropriate

3 weeks agoRemoved duplicate variable in the test suite (fake_spoof_ip/spoof_ip).
Franck Joncourt [Wed, 1 May 2013 13:52:01 +0000]
Removed duplicate variable in the test suite (fake_spoof_ip/spoof_ip).

3 weeks agoNew tests for rc file processing (SPA_SOURCE_PORT, FW_TIMEOUT).
Franck Joncourt [Wed, 1 May 2013 13:13:42 +0000]
New tests for rc file processing (SPA_SOURCE_PORT, FW_TIMEOUT).

Added spa source port variable to dump_transmit_options() and renamed port
to destination port.

3 weeks agoProtocol string is set has const char in fko_protocol_t.
Franck Joncourt [Wed, 1 May 2013 12:33:35 +0000]
Protocol string is set has const char in fko_protocol_t.

3 weeks ago[test suite] minor comment addition so this isn't a zero-byte file
Michael Rash [Wed, 1 May 2013 12:21:11 +0000]
[test suite] minor comment addition so this isn't a zero-byte file

3 weeks agoMoved/Created proto_intostr() and proto_strtoint() to utils.c.
Franck Joncourt [Tue, 30 Apr 2013 20:22:03 +0000]
Moved/Created proto_intostr() and proto_strtoint() to utils.c.

This allows to update dump_transmit_options() to use the log module to dump data.

3 weeks agoUpdated the TParam typedef to conform to the fko_cli_options_t typedef.
Franck Joncourt [Tue, 30 Apr 2013 13:37:08 +0000]
Updated the TParam typedef to conform to the fko_cli_options_t typedef.

3 weeks agoAdded new rc file processing tests for the SPA_SERVER_PORT.
Franck Joncourt [Tue, 30 Apr 2013 11:54:58 +0000]
Added new rc file processing tests for the SPA_SERVER_PORT.

3 weeks ago[client] add USE_HMAC handling to parse_rc_param()
Michael Rash [Tue, 30 Apr 2013 02:14:39 +0000]
[client] add USE_HMAC handling to parse_rc_param()

3 weeks agoChangeLog and credits updates for Franck
Michael Rash [Tue, 30 Apr 2013 01:52:07 +0000]
ChangeLog and credits updates for Franck

3 weeks agoStarted on --save-rc-stanza tests, client bug fix for HMAC verification in --test...
Michael Rash [Tue, 30 Apr 2013 01:43:21 +0000]
Started on --save-rc-stanza tests, client bug fix for HMAC verification in --test mode

3 weeks agoAdded tests for the SPA_SERVER_PROTO variable from an rc file.
Franck Joncourt [Mon, 29 Apr 2013 20:53:06 +0000]
Added tests for the SPA_SERVER_PROTO variable from an rc file.

3 weeks agoMerge remote-tracking branch 'upstream/master'
Franck Joncourt [Mon, 29 Apr 2013 20:21:18 +0000]
Merge remote-tracking branch 'upstream/master'

3 weeks agoIntegrated the log module in the whol client source code.
Franck Joncourt [Mon, 29 Apr 2013 20:18:29 +0000]
Integrated the log module in the whol client source code.

perror() is also replaced by log_msg()

3 weeks ago[test suite] add client rc file processing tests (digest only for now, more coming)
Michael Rash [Mon, 29 Apr 2013 01:52:14 +0000]
[test suite] add client rc file processing tests (digest only for now, more coming)

3 weeks ago[client] ensure to set HMAC mode by default only when an HMAC key is used
Michael Rash [Mon, 29 Apr 2013 01:51:16 +0000]
[client] ensure to set HMAC mode by default only when an HMAC key is used

3 weeks ago[test suite] restore gpg directories after test suite runs
Michael Rash [Sun, 28 Apr 2013 02:41:17 +0000]
[test suite] restore gpg directories after test suite runs

3 weeks agoMerge remote-tracking branch 'fjoncourt/master'
Michael Rash [Sun, 28 Apr 2013 02:26:38 +0000]
Merge remote-tracking branch 'fjoncourt/master'

This merges changes from Franck Joncourt for issues #55 (log module for fwknop)
and #64 (hostname resolution not working for -P icmp spoofing).

3 weeks agoConvert most strlcat() calls to use destination bound from sizeof()
Michael Rash [Sun, 28 Apr 2013 00:41:12 +0000]
Convert most strlcat() calls to use destination bound from sizeof()

This commit helps to ensure correctness of strlcat() calls in support of fixing
issue #2.

3 weeks agoFixed hostname resolution while spoof ip is used.
Franck Joncourt [Sat, 27 Apr 2013 21:31:40 +0000]
Fixed hostname resolution while spoof ip is used.

mrash/fwknop#64

3 weeks agoMerge remote-tracking branch 'upstream/master'
Franck Joncourt [Sat, 27 Apr 2013 20:38:27 +0000]
Merge remote-tracking branch 'upstream/master'

3 weeks agoContinue implementing the log_msg module.
Franck Joncourt [Sat, 27 Apr 2013 20:19:40 +0000]
Continue implementing the log_msg module.

3 weeks agoConvert most strlcpy() calls to use destination bound from sizeof()
Michael Rash [Sat, 27 Apr 2013 18:59:30 +0000]
Convert most strlcpy() calls to use destination bound from sizeof()

This commit helps to ensure correctness of strlcpy() calls in support of fixing
issue #2.

3 weeks ago[test suite] minor openssl verification update to print base64 decode flag value
Michael Rash [Sat, 27 Apr 2013 16:56:50 +0000]
[test suite] minor openssl verification update to print base64 decode flag value

3 weeks agoremoved roadmap.org file in favor of using github milestones
Michael Rash [Sat, 27 Apr 2013 01:56:26 +0000]
removed roadmap.org file in favor of using github milestones

3 weeks agoremoved todo.org file in favor of using github issues
Michael Rash [Sat, 27 Apr 2013 01:47:49 +0000]
removed todo.org file in favor of using github issues

4 weeks agoReplaced all references to *fprintf(stderr,* by log_msg() in config_init.c
Franck Joncourt [Fri, 26 Apr 2013 15:16:05 +0000]
Replaced all references to *fprintf(stderr,* by log_msg() in config_init.c

4 weeks agoInverted log level enumeration
Franck Joncourt [Fri, 26 Apr 2013 14:18:08 +0000]
Inverted log level enumeration

4 weeks agoAjout du module log_msg pour le client
Franck Joncourt [Fri, 26 Apr 2013 12:08:25 +0000]
Ajout du module log_msg pour le client

4 weeks ago[server] another minor CLANG static analyzer fix
Michael Rash [Fri, 26 Apr 2013 01:32:02 +0000]
[server] another minor CLANG static analyzer fix

4 weeks ago[server] fix minor CLANG static analyzer bugs
Michael Rash [Fri, 26 Apr 2013 01:29:37 +0000]
[server] fix minor CLANG static analyzer bugs

These are simple logic fixes that would not have impacted run time to address
the following warnings generated by the CLANG static analyzer:

incoming_spa.c:433:17: warning: Value stored to 'attempted_decrypt' is never read
                attempted_decrypt = 1;
                ^                   ~
incoming_spa.c:647:13: warning: Value stored to 'acc' is never read
            acc = acc->next;
            ^     ~~~~~~~~~

4 weeks agoUsed args enumeration for both the update_rc() and add_rc_param().
Franck Joncourt [Thu, 25 Apr 2013 21:03:02 +0000]
Used args enumeration for both the update_rc() and add_rc_param().

Updated fwknop client to refer to the fwknop args enumeration rather
than the config variable names directly. This should make easier to
handle future changes of the variable name.

New function to validate a string matches a YES pattern in the configuration
file : is_yes_str().

The parse_rc_param() only returns at the end of the function, unless a fatal
error has been encountered.

4 weeks ago[test suite] added GPG password required HMAC tests, added --disable-valgrind argument
Michael Rash [Wed, 24 Apr 2013 01:56:41 +0000]
[test suite] added GPG password required HMAC tests, added --disable-valgrind argument

4 weeks ago[test suite] added gpg_no_pw_hmac_access.conf file
Michael Rash [Tue, 23 Apr 2013 00:59:32 +0000]
[test suite] added gpg_no_pw_hmac_access.conf file

4 weeks agoAdded HMAC support to GPG encryption modes, closes #58
Michael Rash [Tue, 23 Apr 2013 00:45:59 +0000]
Added HMAC support to GPG encryption modes, closes #58

4 weeks ago[test suite] clean command tmp files before and after each test
Michael Rash [Mon, 22 Apr 2013 01:13:15 +0000]
[test suite] clean command tmp files before and after each test

4 weeks ago[server] minor function prototype convention update for create_rule()
Michael Rash [Mon, 22 Apr 2013 00:48:42 +0000]
[server] minor function prototype convention update for create_rule()

4 weeks ago[test suite] removed unnecessary comment lines from test config files
Michael Rash [Sat, 20 Apr 2013 19:31:26 +0000]
[test suite] removed unnecessary comment lines from test config files

4 weeks ago[client] set HMAC mode whenever any HMAC option is given, add --key-hmac arg
Michael Rash [Sat, 20 Apr 2013 15:12:04 +0000]
[client] set HMAC mode whenever any HMAC option is given, add --key-hmac arg

4 weeks ago[test suite] updated non-based64 keys in non-base64 key files
Michael Rash [Sat, 20 Apr 2013 15:09:48 +0000]
[test suite] updated non-based64 keys in non-base64 key files

4 weeks ago[test suite] bug fix to properly extract 'KEY' variable for Rijndael key information
Michael Rash [Sat, 20 Apr 2013 15:04:53 +0000]
[test suite] bug fix to properly extract 'KEY' variable for Rijndael key information

4 weeks ago[test suite] consolidated client/server interaction result variables into client_serv...
Michael Rash [Fri, 19 Apr 2013 23:43:15 +0000]
[test suite] consolidated client/server interaction result variables into client_server_interaction()

4 weeks agoremoved trailing semicolon from KEY value
Michael Rash [Fri, 19 Apr 2013 23:42:06 +0000]
removed trailing semicolon from KEY value

5 weeks agominor typo fix in ChangeLog file
Michael Rash [Fri, 19 Apr 2013 02:17:18 +0000]
minor typo fix in ChangeLog file

5 weeks agoadded Ruhsam Bernhard to the credits file
Michael Rash [Fri, 19 Apr 2013 01:15:00 +0000]
added Ruhsam Bernhard to the credits file

5 weeks agocredits and changelog updates hmac_support
Michael Rash [Fri, 19 Apr 2013 00:53:37 +0000]
credits and changelog updates

5 weeks ago[test suite] Reorganize client/server interactions to be more rigorous
Michael Rash [Thu, 18 Apr 2013 03:50:51 +0000]
[test suite] Reorganize client/server interactions to be more rigorous

This is a significant commit that alters how the test suite interacts with the
fwknop client and server by looking for indications that SPA packets are
actually received.  This is done by first waiting for 'main event loop' in
fwknopd log output to ensure that fwknopd is ready to receive packets, sending
the SPA packet(s), and then watching for for 'SPA Packet from IP' in fwknopd
output.  This is an improvement over the previous strategy that was only based
on timeout values since it works identically regardless of whether fwknop is
being run under valgrind or when the test suite is run on an embedded system
with very limited resources.  Another check is run for fwknopd receiving the
SIGTERM signal to shutdown via 'fwknopd -K', and that failing, the test suite
manually kills the process (though this should be rarely needed).

The above strategy is the result of discussions with George Herlin who proposed
the verification-based approach to test suite operations.

Other things this commit changes is the ability to detect whether OpenSSL
supports the 'hexkey:<key>' style specification for HMAC keys (an older version
of FreeBSD doesn't support this) and falls back to the '-hmac <key>' method if
not.

5 weeks agofixed two type mismatch compilation warnings for the perl FKO extension
Michael Rash [Thu, 18 Apr 2013 03:27:54 +0000]
fixed two type mismatch compilation warnings for the perl FKO extension

5 weeks ago[test suite] added tests/python_fko.pl for python tests
Michael Rash [Tue, 16 Apr 2013 02:02:19 +0000]
[test suite] added tests/python_fko.pl for python tests

5 weeks ago[test suite] check for fwknopd ready to receive packets
Michael Rash [Sat, 13 Apr 2013 01:50:47 +0000]
[test suite] check for fwknopd ready to receive packets

This commit was inspired through conversations with George Herlin.

5 weeks agoMerge remote-tracking branch 'fjoncourt/hmac_support' into hmac_support
Michael Rash [Sat, 13 Apr 2013 01:16:20 +0000]
Merge remote-tracking branch 'fjoncourt/hmac_support' into hmac_support

This commit from Franck Joncourt closes #43

6 weeks agoAdded some else statements and their comments.
Franck Joncourt [Fri, 12 Apr 2013 12:48:26 +0000]
Added some else statements and their comments.

6 weeks agoFixed test-fwknop.pl to remove any references to my test files.
Franck Joncourt [Thu, 11 Apr 2013 11:36:58 +0000]
Fixed test-fwknop.pl to remove any references to my test files.

6 weeks agoRemoved tests.
Franck Joncourt [Thu, 11 Apr 2013 11:08:36 +0000]
Removed tests.

6 weeks ago[test suite] get hmac iptables duplicated and sha512 long key tests to pass
Michael Rash [Thu, 11 Apr 2013 03:31:58 +0000]
[test suite] get hmac iptables duplicated and sha512 long key tests to pass

6 weeks agoResolve ip address in all of tha nat modes (mrash/fwknop#43).
Franck Joncourt [Wed, 10 Apr 2013 14:06:06 +0000]
Resolve ip address in all of tha nat modes (mrash/fwknop#43).

6 weeks agoMerge remote-tracking branch 'upstream/hmac_support' into hmac_support
Franck Joncourt [Wed, 10 Apr 2013 13:12:54 +0000]
Merge remote-tracking branch 'upstream/hmac_support' into hmac_support

6 weeks ago[test suite] added perl FKO Rijndael key test with embedded NULL char
Michael Rash [Wed, 10 Apr 2013 02:48:54 +0000]
[test suite] added perl FKO Rijndael key test with embedded NULL char

6 weeks agominor var naming/spacing update
Michael Rash [Wed, 10 Apr 2013 01:28:32 +0000]
minor var naming/spacing update

6 weeks agoadd HMAC_KEY variable support to access.conf (alternative to HMAC_KEY_BASE64)
Michael Rash [Tue, 9 Apr 2013 02:14:06 +0000]
add HMAC_KEY variable support to access.conf (alternative to HMAC_KEY_BASE64)

6 weeks ago[test suite] added python->C HMAC test
Michael Rash [Tue, 9 Apr 2013 00:45:14 +0000]
[test suite] added python->C HMAC test

6 weeks ago[test suite] don't remove output/ directory in --list mode, closes #53
Michael Rash [Mon, 8 Apr 2013 00:57:35 +0000]
[test suite] don't remove output/ directory in --list mode, closes #53

6 weeks ago[test suite] restore --diff mode, fixes #52
Michael Rash [Sun, 7 Apr 2013 20:28:33 +0000]
[test suite] restore --diff mode, fixes #52

6 weeks agoMerge patch from Franck in support of issue #43
Michael Rash [Sun, 7 Apr 2013 19:11:09 +0000]
Merge patch from Franck in support of issue #43

6 weeks ago[test suite] NAT name resolution tests
Michael Rash [Sun, 7 Apr 2013 17:33:42 +0000]
[test suite] NAT name resolution tests

This commit adds tests for NAT name resolution in support of issue #43.

6 weeks agoAdded tests to the test suite in order to check the update.
Franck Joncourt [Sun, 7 Apr 2013 17:00:38 +0000]
Added tests to the test suite in order to check the update.

6 weeks agoFixed Nat mode not resolving hostname to IP's.
Franck Joncourt [Sat, 6 Apr 2013 20:59:59 +0000]
Fixed Nat mode not resolving hostname to IP's.

Linked mrash/fwknop#43

7 weeks ago[test suite] minor encryption key variable name update
Michael Rash [Tue, 2 Apr 2013 03:02:45 +0000]
[test suite] minor encryption key variable name update

7 weeks agoadded 'legacy' initialization vector text to man pages
Michael Rash [Tue, 2 Apr 2013 03:01:45 +0000]
added 'legacy' initialization vector text to man pages

7 weeks agoMerge branch 'hmac_support' of ssh://192.168.10.1/home/mbr/git/bare_repos/fwknop...
Michael Rash [Sat, 30 Mar 2013 00:45:30 +0000]
Merge branch 'hmac_support' of ssh://192.168.10.1/home/mbr/git/bare_repos/fwknop into hmac_support

7 weeks agoadded test/fko-python.py test script
Michael Rash [Sat, 30 Mar 2013 00:44:48 +0000]
added test/fko-python.py test script

7 weeks agoHMAC function rename for consistency
Michael Rash [Sat, 30 Mar 2013 00:42:44 +0000]
HMAC function rename for consistency

Make sure that HMAC function names conform to previously established get_*,
set_* naming convention.

8 weeks agoadded fuzzing tests for long Rijndael and HMAC keys
Michael Rash [Fri, 29 Mar 2013 00:42:12 +0000]
added fuzzing tests for long Rijndael and HMAC keys

8 weeks agoEnforce Rijndael and HMAC key length maximum sizes
Michael Rash [Mon, 25 Mar 2013 01:04:18 +0000]
Enforce Rijndael and HMAC key length maximum sizes

This commit fixes a couple of overflow conditions for Rijndael and HMAC keys
that are larger than anticipated maximums.  In the case of Rijndael, PKCS#5 1.5
is supported up to key sizes of 32 bytes or smaller (and maintains compatibility
with OpenSSL, and future versions will support PKCS#5 2.0 (PBKDF2) while allowing
for larger key sizes.  HMAC keys may be up to 128 bytes even for digest
algorithms such as SHA256 that have block sizes that are smaller than this.

2 months agoremove execute bit
Michael Rash [Sat, 23 Mar 2013 12:56:22 +0000]
remove execute bit

2 months agoremove execute bit
Michael Rash [Sat, 23 Mar 2013 12:53:48 +0000]
remove execute bit

2 months ago[test suite] minor spacing update
Michael Rash [Sat, 23 Mar 2013 02:34:10 +0000]
[test suite] minor spacing update

2 months agoMerge remote-tracking branch 'fjoncourt/hmac_support' into hmac_support
Michael Rash [Fri, 22 Mar 2013 01:58:05 +0000]
Merge remote-tracking branch 'fjoncourt/hmac_support' into hmac_support

2 months ago[perl FKO] add HMAC support along with test suite HMAC verification (closes #16)
Michael Rash [Fri, 22 Mar 2013 01:55:18 +0000]
[perl FKO] add HMAC support along with test suite HMAC verification (closes #16)

2 months agominor ChangeLog wording update for HMAC section
Michael Rash [Fri, 22 Mar 2013 01:48:38 +0000]
minor ChangeLog wording update for HMAC section

2 months agoMerge remote-tracking branch 'upstream/hmac_support' into hmac_support
Franck Joncourt [Wed, 20 Mar 2013 21:33:45 +0000]
Merge remote-tracking branch 'upstream/hmac_support' into hmac_support

2 months agoUpdated fwknop documentation.
Franck Joncourt [Wed, 20 Mar 2013 21:31:58 +0000]
Updated fwknop documentation.

2 months agoFixed issue when trying to save options for a new stanza.
Franck Joncourt [Wed, 20 Mar 2013 20:38:52 +0000]
Fixed issue when trying to save options for a new stanza.

2 months ago[test suite] added two basic tests for installation and operations of the python...
Michael Rash [Wed, 20 Mar 2013 01:23:36 +0000]
[test suite] added two basic tests for installation and operations of the python fko extension

2 months ago[python extension] minor function name updates
Michael Rash [Wed, 20 Mar 2013 01:22:32 +0000]
[python extension] minor function name updates

2 months ago[python extension] update key_gen() parse tuple format arg to handle hmac_type integer
Michael Rash [Wed, 20 Mar 2013 01:15:45 +0000]
[python extension] update key_gen() parse tuple format arg to handle hmac_type integer

2 months ago[client] minor http resolve update to include URL in error output
Michael Rash [Wed, 20 Mar 2013 01:09:11 +0000]
[client] minor http resolve update to include URL in error output

2 months agominor typo fix
Michael Rash [Tue, 19 Mar 2013 01:49:00 +0000]
minor typo fix

2 months agoAllowed an fwknoprc stanza (-n) to be overriden by arguments from the command line.
Franck Joncourt [Mon, 18 Mar 2013 21:06:31 +0000]
Allowed an fwknoprc stanza (-n) to be overriden by arguments from the command line.
Added a sanity check to make sure the -n option is used with the --save-rc-stanza option.

2 months ago[python module] update fko_new_with_data() call to include hmac_type
Michael Rash [Mon, 18 Mar 2013 03:03:48 +0000]
[python module] update fko_new_with_data() call to include hmac_type

2 months agoMerge remote-tracking branch 'fjoncourt/python_binding' into hmac_support
Michael Rash [Mon, 18 Mar 2013 03:02:57 +0000]
Merge remote-tracking branch 'fjoncourt/python_binding' into hmac_support

2 months agominor hmac prototype update to add const qualifier
Michael Rash [Mon, 18 Mar 2013 02:48:29 +0000]
minor hmac prototype update to add const qualifier

2 months ago[test suite] added hmac_force_nat_access.conf file to Makefile.am
Michael Rash [Mon, 18 Mar 2013 02:42:52 +0000]
[test suite] added hmac_force_nat_access.conf file to Makefile.am

2 months agoMerge remote-tracking branch 'fjoncourt/hmac_support' into hmac_support
Michael Rash [Mon, 18 Mar 2013 01:34:23 +0000]
Merge remote-tracking branch 'fjoncourt/hmac_support' into hmac_support

Significant merge from Franck Joncourt to add the ability to save command line
args to ~/.fwknoprc stanzas.  This merge is in support of #4.

Conflicts:
lib/fko_util.c
lib/fko_util.h