… $fko->hmac() was always returning -1.
… libfko. Added new error refs and commented out bad/invalid tests.
[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.
track down mystery errors (#98).
…onf parse time
This commit fixes a crash at init time in fwknopd if an improperly formatted IPT_INPUT_ACCESS variable is used in fwknopd.conf file. fwknopd should not try to delete chains with a bogus IPT_INPUT_ACCESS variable, and valgrind verifies that this change does not introduce any memory leaks (see the 'invalid iptables INPUT spec' tests run in --enable-valgrind mode).
This commit allows the test suite to execute the same fwknop/fwknopd command used in a specified test output file under gdb. This is a convenience measure to allow the user to more rapidly execute fwknop/fwknopd commands under gdb in the same way the test suite does without having to copy and paste command line args. Here is a basic example: root@lorien:/home/mbr/git/fwknop.git/test# ./test-fwknop.pl --gdb output/6.test GNU gdb Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-linux-gnu". For bug reporting instructions, please see: <http://bugs.launchpad.net/gdb-linaro/>... Reading symbols from /home/mbr/git/fwknop.git/server/.libs/fwknopd...done. (gdb) run Starting program: /home/mbr/git/fwknop.git/server/.libs/fwknopd -c conf/invalid_ipt_input_chain_6_fwknopd.conf -a conf/default_access.conf -d run/digest.cache -p run/fwknopd.pid -i lo --foreground --verbose --verbose
configured in ./fwknoprc. The default stanza is not displayed.