my $default_digest_file = "$run_dir/digest.cache";
my $default_pid_file = "$run_dir/fwknopd.pid";
my $tmp_rc_file = "$run_dir/fwknoprc";
+my $tmp_pkt_file = "$run_dir/tmp_spa.pkt";
my $fwknopCmd = '../client/.libs/fwknop';
my $fwknopdCmd = '../server/.libs/fwknopd';
},
{
'category' => 'Rijndael SPA',
+ 'subcategory' => 'client',
+ 'detail' => "--save-packet $tmp_pkt_file",
+ 'err_msg' => 'could not run SPA client',
+ 'function' => \&generic_exec,
+ 'cmdline' => "$default_client_args --save-packet $tmp_pkt_file",
+ 'fatal' => $NO
+ },
+
+ {
+ 'category' => 'Rijndael SPA',
'subcategory' => 'client+server',
'detail' => 'permissions check cycle (tcp/22)',
'err_msg' => 'could not complete SPA cycle',
return $rv;
}
+sub client_save_spa_pkt() {
+ my $test_hr = shift;
+
+ my $rv = &generic_exec($test_hr);
+
+ unless (-e $tmp_pkt_file) {
+ $rv = 0;
+ }
+ return $rv;
+}
sub generic_exec() {
my $test_hr = shift;
}
for my $file (glob("$output_dir/*.test"), "$output_dir/init",
- $tmp_rc_file, $logfile, $key_gen_file) {
+ $tmp_rc_file, $tmp_pkt_file, $logfile, $key_gen_file) {
next unless -e $file;
unlink $file or die "[*] Could not unlink($file)";
}