[test suite] add coverage test for client -M legacy truncated key
This commit is contained in:
parent
e09e091f71
commit
8ed9728fd3
@ -15,6 +15,7 @@ use strict;
|
||||
#==================== config =====================
|
||||
my $logfile = 'test.log';
|
||||
our $local_key_file = 'local_spa.key';
|
||||
our $long_key_file = 'long_spa.key'; ### > 16 bytes
|
||||
our $local_spa_key = 'fwknoptest';
|
||||
our $local_hmac_key_file = 'local_hmac_spa.key';
|
||||
my $output_dir = 'output';
|
||||
@ -489,6 +490,10 @@ our $default_client_args = "$lib_view_str $valgrind_str " .
|
||||
"$fwknopCmd -A tcp/22 -a $fake_ip -D $loopback_ip --get-key " .
|
||||
"$local_key_file --no-save-args $verbose_str";
|
||||
|
||||
our $default_client_args_long_key = "$lib_view_str $valgrind_str " .
|
||||
"$fwknopCmd -A tcp/22 -a $fake_ip -D $loopback_ip --get-key " .
|
||||
"$long_key_file --no-save-args $verbose_str";
|
||||
|
||||
our $default_client_args_no_get_key = "$lib_view_str " .
|
||||
"$valgrind_str $fwknopCmd -A tcp/22 -a $fake_ip -D $loopback_ip " .
|
||||
"--no-save-args $verbose_str";
|
||||
|
||||
@ -33,6 +33,18 @@
|
||||
'fw_rule_removed' => $NEW_RULE_REMOVED,
|
||||
'no_ip_check' => 1
|
||||
},
|
||||
{
|
||||
'category' => 'Rijndael',
|
||||
'subcategory' => 'client+server',
|
||||
'detail' => 'complete cycle legacy truncated key',
|
||||
'function' => \&spa_cycle,
|
||||
'cmdline' => "$default_client_args_long_key -M legacy",
|
||||
'fwknopd_cmdline' => "$fwknopdCmd -c $cf{'def'} -a $cf{'legacy_iv_long_key_access'} " .
|
||||
"-d $default_digest_file -p $default_pid_file $intf_str",
|
||||
'fw_rule_created' => $NEW_RULE_REQUIRED,
|
||||
'fw_rule_removed' => $NEW_RULE_REMOVED,
|
||||
},
|
||||
|
||||
{
|
||||
'category' => 'Rijndael',
|
||||
'subcategory' => 'client+server',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user