From 00f878c5edf34ef2b87daeb8e839dd394399dea0 Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Mon, 17 Mar 2014 22:36:49 -0400 Subject: [PATCH] [test suite] add --spoof-user test --- test/tests/rijndael_hmac.pl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/tests/rijndael_hmac.pl b/test/tests/rijndael_hmac.pl index f7bd5ffb..a2ad3648 100644 --- a/test/tests/rijndael_hmac.pl +++ b/test/tests/rijndael_hmac.pl @@ -412,6 +412,21 @@ 'fw_rule_removed' => $NEW_RULE_REMOVED, 'key_file' => $cf{'rc_hmac_b64_key'}, }, + { + 'category' => 'Rijndael+HMAC', + 'subcategory' => 'client+server', + 'detail' => 'spoof user via --spoof-user', + 'function' => \&spa_cycle, + 'cmdline' => "LD_LIBRARY_PATH=$lib_dir $valgrind_str " . + "$fwknopCmd -A tcp/22 --spoof-user $spoof_user -a $fake_ip -D $loopback_ip --rc-file " . + "$cf{'rc_hmac_b64_key'} $verbose_str", + 'fwknopd_cmdline' => "$fwknopdCmd -c $cf{'def'} -a $cf{'hmac_access'} " . + "-d $default_digest_file -p $default_pid_file $intf_str", + 'fw_rule_created' => $NEW_RULE_REQUIRED, + 'fw_rule_removed' => $NEW_RULE_REMOVED, + 'key_file' => $cf{'rc_hmac_b64_key'}, + }, + { 'category' => 'Rijndael+HMAC', 'subcategory' => 'client+server',