From 9e884e9759362ce401bf77dab819b24e10caca62 Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Tue, 22 Nov 2011 22:56:48 -0500 Subject: [PATCH] added SPA packet aging tests --- test/test-fwknop.pl | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/test/test-fwknop.pl b/test/test-fwknop.pl index 13000691..333e2579 100755 --- a/test/test-fwknop.pl +++ b/test/test-fwknop.pl @@ -582,6 +582,33 @@ my @tests = ( 'fw_rule_removed' => $NEW_RULE_REMOVED, 'fatal' => $NO }, + { + 'category' => 'Rijndael SPA', + 'subcategory' => 'client+server', + 'detail' => 'packet aging (past) (tcp/22 ssh)', + 'err_msg' => 'old SPA packet accepted', + 'function' => \&spa_cycle, + 'cmdline' => "$default_client_args --time-offset-minus 300s", + 'fwknopd_cmdline' => "LD_LIBRARY_PATH=$lib_dir $valgrind_str " . + "$fwknopdCmd $default_server_conf_args $intf_str", + 'server_positive_output_matches' => [qr/SPA\sdata\stime\sdifference/], + 'fw_rule_created' => $REQUIRE_NO_NEW_RULE, + 'fatal' => $NO + }, + { + 'category' => 'Rijndael SPA', + 'subcategory' => 'client+server', + 'detail' => 'packet aging (future) (tcp/22 ssh)', + 'err_msg' => 'future SPA packet accepted', + 'function' => \&spa_cycle, + 'cmdline' => "$default_client_args --time-offset-plus 300s", + 'fwknopd_cmdline' => "LD_LIBRARY_PATH=$lib_dir $valgrind_str " . + "$fwknopdCmd $default_server_conf_args $intf_str", + 'server_positive_output_matches' => [qr/SPA\sdata\stime\sdifference/], + 'fw_rule_created' => $REQUIRE_NO_NEW_RULE, + 'fatal' => $NO + }, + { 'category' => 'Rijndael SPA', 'subcategory' => 'client+server',