Michael Rash
2f2156d54f
[perl FKO module] additional fuzzing tests
2013-10-27 22:24:12 -04:00
Michael Rash
a98317d367
[test suite] minor negative output match addition for Test::Valgrind test
2013-10-27 15:08:01 -04:00
Michael Rash
0451a7394c
[test suite] added valgrind output interpretation for Test::Valgrind output for previous run comparisons
2013-10-25 22:38:09 -04:00
Michael Rash
66f3c1236b
[perl FKO module] added t/04_fuzzing tests
2013-10-24 23:17:51 -04:00
Michael Rash
55bceaddc8
[test suite] minor wording update for Test::Valgrind test
2013-10-22 23:05:36 -04:00
Michael Rash
b063bd5734
added Test::Valgrind note to the ChangeLog
2013-10-22 22:58:58 -04:00
Michael Rash
ceb213d545
[perl FKO] interim commit to update the perldoc info
2013-10-22 22:24:47 -04:00
Michael Rash
62939521ac
[test suite] minor python update to use a main() function
2013-10-22 21:38:47 -04:00
Michael Rash
682966469c
[test suite] minor Test::Valgrind name typo fix
2013-10-22 20:37:58 -04:00
Michael Rash
0d80f72c00
Revert "[test suite] minor Test::Valgrind name typo fix"
...
This reverts commit 642024041534d79c897a21b2e19ef3e1ed7b2a61.
2013-10-22 20:36:30 -04:00
Michael Rash
6420240415
[test suite] minor Test::Valgrind name typo fix
2013-10-22 16:18:46 -04:00
Michael Rash
b091a1a1bc
[test suite, FKO module] new(), spa_data_final(), and other fcns don't require key length args
2013-10-22 14:39:45 -04:00
Michael Rash
e77a02882e
[test suite] Add support for Test::Valgrind against the perl FKO module
...
When --enable-valgrind is used, this commit adds support for running the
perl FKO built-in tests (in the t/ directory) under the CPAN
Test::Valgrind module. A check is performed to see whether
Test::Valgrind is install before attempting to use it. Any 'fko_'
function that shows up under the test output is flagged and causes the
test-suite test to fail.
2013-10-22 14:11:23 -04:00
Michael Rash
431a5e3ecd
[perl FKO module] switch to CBC mode tests from ECB
2013-10-11 11:04:49 -04:00
Michael Rash
ab0d5ac3e2
[test suite] display all possible tests under --list (with a --enable-* note)
2013-10-11 10:57:04 -04:00
Damien Stuart
0dc47f7e5c
Fixed missing error codes and error tests.
2013-09-15 14:34:23 -04:00
Damien Stuart
a36bfab780
Merge branch 'perl_module'
2013-09-06 23:18:39 -04:00
Michael Rash
6daabaf3be
minor ChangeLog typo update
2013-09-05 20:31:08 -04:00
Damien Stuart
1047146b23
Updated Perl FKO tests for lastest changes to libfko. Fixed bug where $fko->hmac() was always returning -1.
2013-09-04 15:19:43 -04:00
Michael Rash
85140f2048
Merge pull request #105 from fjoncourt/master
...
Make sure log_msg() sends messages to STDERR until the context gets initialized.
2013-08-28 21:55:39 -07:00
Franck Joncourt
5693b0536a
Fixed *Value stored is never read* warning found by clang.
2013-08-27 20:45:17 +02:00
Franck Joncourt
69ed30edb4
Make sure all calls to log_msg() send messages to STDERR until the config files are parsed.
...
(mrash/fwknop#102 )
2013-08-27 20:39:03 +02:00
Michael Rash
83952fc734
added Radostan Riedel's AppArmor policy note
2013-08-18 23:02:44 -04:00
Michael Rash
a5c308f9c5
Added AppArmor policy
...
This commit adds an AppArmor policy that is known to work in Debian and Ubuntu
systems. The original version of this policy was contributed by Radostan Riedel
to the fwknop mailing list.
2013-08-18 22:58:10 -04:00
Michael Rash
a68503c7c9
[server] fix crash if replay digest tracking init() fails
...
This commit fixes a crash if the replay digest init() routine fails - fwknopd
attempted to make use of replay tracking anyway. The crash was discovered
during testing fwknopd with an AppArmor enforce policy deployed. The
following stack trace shows the crash (taken before the previous static
function commit):
Program received signal SIGSEGV, Segmentation fault.
__strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:31
31 ../sysdeps/x86_64/multiarch/../strlen.S: No such file or directory.
(gdb) where
#0 __strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:31
#1 0x00007f59cabd8b26 in add_replay_file_cache (opts=opts@entry=0x7fff3eaa0bb0, digest=digest@entry=0x0) at replay_cache.c:516
#2 0x00007f59cabd8cf5 in add_replay (opts=opts@entry=0x7fff3eaa0bb0, digest=digest@entry=0x0) at replay_cache.c:472
#3 0x00007f59cabd62eb in incoming_spa (opts=0x7fff3eaa0bb0) at incoming_spa.c:536
#4 0x00007f59ca56164e in ?? () from /usr/lib/x86_64-linux-gnu/libpcap.so.0.8
#5 0x00007f59cabd7175 in pcap_capture (opts=opts@entry=0x7fff3eaa0bb0) at pcap_capture.c:269
#6 0x00007f59cabd3d4d in main (argc=5, argv=0x7fff3eaa1458) at fwknopd.c:314
2013-08-18 22:19:41 -04:00
Michael Rash
5d49f30c01
[server] minor replay code update to make functions static where possible
2013-08-18 21:56:53 -04:00
Michael Rash
c271f01d00
[test suite] added 'make test' check for FKO perl module
...
All built-in tests in the FKO module must pass for this new test to pass. This commit
is in support of #103
2013-08-17 23:51:31 -04:00
Damien Stuart
89c5e88219
First round of updates to get the Perl module up-to-date with the new libfko. Added new error refs and commented out bad/invalid tests.
2013-08-12 20:53:29 -04:00
Michael Rash
e8fe29bbe1
Merge branch 'master' of github.com:mrash/fwknop
2013-08-11 22:09:22 -04:00
Michael Rash
c0c8048ee1
Added fko context dumper change to ChangeLog, updated test suite to account for single line printing of final SPA data
2013-08-11 22:07:02 -04:00
Damien Stuart
12916f21ef
Moved new invalid data error definitions above the GPGME_ERR_START marker.
2013-08-11 22:02:50 -04:00
Michael Rash
fa985c1943
Merge remote-tracking branch 'fjoncourt/fko_dump'
...
This implements an FKO context dumping function in lib/fko_utils.c, and closes #100
2013-08-11 15:02:01 -04:00
Michael Rash
45e29f6450
minor edit to credits file for Hank Leininger
2013-08-11 14:30:37 -04:00
Michael Rash
be2bb71c74
[test suite] minor bug fix for GPG no password HMAC test rc file
2013-08-10 21:03:07 -04:00
Michael Rash
5176f9e04b
[server] minor addition to access stanza dump output to include hmac digest type
2013-08-10 16:08:19 -04:00
Michael Rash
c04efc20dd
[test suite] added Rijndael HMAC digest mismatch tests
2013-08-10 15:45:51 -04:00
Michael Rash
dfc2a06547
[test suite] added Rijndael HMAC + RAND_PORT test
2013-08-10 14:27:10 -04:00
Michael Rash
4775327d98
[test suite] added two GnuPG HMAC SHA512 tests
2013-08-10 13:54:03 -04:00
Franck Joncourt
f8ae3b8da3
Merge remote-tracking branch 'upstream/master' into fko_dump
2013-08-10 14:32:34 +02:00
Franck Joncourt
b590932fb6
* Removed goto statements. We do not do any further processings
...
when we reach the error label.
2013-08-10 14:30:40 +02:00
Michael Rash
333302a7cf
ChangeLog/CREDITS update for Hank's libfko error code patch
2013-08-09 21:47:38 -04:00
Michael Rash
4023da87d6
Merge remote-tracking branch 'hlein/unique_errors'
...
[libfko] (Hank Leininger) Contributed a patch to greatly extend libfko
error code descriptions at various places in order to give much better
information on what certain error conditions mean. Closes #98 .
2013-08-09 21:46:49 -04:00
Michael Rash
eb7914d45c
minor ChangeLog update for --stanza-list
2013-08-08 21:37:44 -04:00
Michael Rash
d9ba40d48f
[server] fix compilation warning dealing with new iptables chain validation
2013-08-08 20:55:10 -04:00
Michael Rash
05e7d52a5f
[client] merged --stanza-list changes from Franck, closes #94
2013-08-08 20:54:07 -04:00
Hank Leininger
bc907e0b24
Add unique errors for every FKO_ERROR_INVALID_DATA. Needed this to
...
track down mystery errors (#98 ).
2013-08-05 22:21:10 -04:00
Michael Rash
320008b8de
minor ChangeLog update for the test suite --gdb-test feature
2013-08-05 21:08:40 -04:00
Franck Joncourt
7296d3f3bf
* Interim commit to add a dump function to dump the FKO context shared
...
by both the server and client. mrash/fwknop#95
2013-08-05 23:28:07 +02:00
Michael Rash
8c73c7801b
[server] send IPT_*_ACCESS vars through basic validation at fwknopd.conf parse time
2013-08-05 00:00:45 -04:00
Michael Rash
5fa93c621a
[test suite] minor seg fault test message update
2013-08-04 23:23:07 -04:00