Permalink
Browse files

added SPA packet aging tests

  • Loading branch information...
1 parent 72a4353 commit 9e884e9759362ce401bf77dab819b24e10caca62 @mrash committed Nov 23, 2011
Showing with 27 additions and 0 deletions.
  1. +27 −0 test/test-fwknop.pl
View
@@ -585,6 +585,33 @@
{
'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',
'detail' => 'OPEN_PORTS (tcp/22 ssh)',
'err_msg' => "improper OPEN_PORTS result",
'function' => \&spa_cycle,

0 comments on commit 9e884e9

Please sign in to comment.