diff --git a/test/test-fwknop.pl b/test/test-fwknop.pl index cb0d2b2a..9c545517 100755 --- a/test/test-fwknop.pl +++ b/test/test-fwknop.pl @@ -60,6 +60,8 @@ my $NO_FW_RULE = 2; my $REQUIRED = 1; my $OPTIONAL = 0; +my $ip_re = qr|(?:[0-2]?\d{1,2}\.){3}[0-2]?\d{1,2}|; ### IPv4 + exit 1 unless GetOptions( 'Prepare-results' => \$prepare_results, 'fwknop-path=s' => \$fwknopCmd, @@ -510,6 +512,15 @@ my @tests = ( "-i $loopback_intf --foreground --verbose", 'fatal' => $NO }, + { + 'category' => 'Rijndael SPA ops', + 'subcategory' => 'server', + 'detail' => 'digest cache structure', + 'err_msg' => 'improper digest cache structure', + 'function' => \&digest_cache_structure, + 'fatal' => $NO + }, + { 'category' => 'Rijndael SPA ops', 'subcategory' => 'client+server', @@ -902,6 +913,45 @@ sub replay_detection_rijndael() { return $rv; } +sub digest_cache_structure() { + my $test_hr = shift; + my $rv = 1; + + &run_cmd("file $default_digest_file", $cmd_out_tmp, $current_test_file); + + if (&file_find_regex([qr/ASCII/i], $cmd_out_tmp)) { + + ### the format should be: + ###