[test suite] add Rijndael+HMAC test for F-Droid Fwknop2 client written by Jonathan Bennett

This commit is contained in:
Michael Rash 2015-06-16 18:32:19 -07:00
parent e0778a2d37
commit 4d3c472116
4 changed files with 34 additions and 1 deletions

View File

@ -125,6 +125,7 @@ EXTRA_DIST = \
python/fko.py \
test/conf/gpg_dirs.tar.gz \
test/conf/hmac_android_access.conf \
test/conf/hmac_android_fdroid_access.conf \
test/conf/android_access.conf \
test/conf/android_legacy_iv_access.conf \
test/conf/base64_key_access.conf \

View File

@ -0,0 +1,4 @@
SOURCE ANY
KEY testfwknop
HMAC_KEY testhmac
FW_ACCESS_TIMEOUT 3

View File

@ -453,6 +453,7 @@ our %cf = (
"${fw_conf_prefix}_no_flush_init_or_exit" => "$conf_dir/${fw_conf_prefix}_no_flush_init_or_exit_fwknopd.conf",
'ipfw_active_expire' => "$conf_dir/ipfw_active_expire_equal_fwknopd.conf",
'hmac_android_access' => "$conf_dir/hmac_android_access.conf",
'hmac_android_fdroid_access' => "$conf_dir/hmac_android_fdroid_access.conf",
'android_access' => "$conf_dir/android_access.conf",
'android_legacy_iv_access' => "$conf_dir/android_legacy_iv_access.conf",
'dual_key_access' => "$conf_dir/dual_key_usage_access.conf",

View File

@ -368,6 +368,33 @@
'fw_rule_created' => $NEW_RULE_REQUIRED,
'fw_rule_removed' => $NEW_RULE_REMOVED,
},
{
'category' => 'Rijndael+HMAC',
'subcategory' => 'Android compatibility',
'detail' => 'F-Droid Fwknop2 2015-06-16',
'function' => \&os_compatibility,
'no_ip_check' => 1,
'pkt' =>
'9OBA' .
'YI4pRmsVz1AXyO1M' .
'zkbx0RdUx6C+zHXM' .
'9aegQZFkYl0agWNI' .
'Wqh2kbIlbUvqq1NG' .
'47cp3AyccBG4+6SX' .
'Qpe4G9JvDgtcYc6D' .
'QaG1pT48zi+6BDvn' .
'V3K2eojdaPTIIdFR' .
'n75c278iCdxue/WW' .
'54iK1n07GtNSl8xy' .
'jTBiC4dlEfGpYbM7' .
'FIGmIciVZo3PZOxt' .
'apdF8Ml9SRwHwka/' .
'pCS+3hKnjbUOk',
'fwknopd_cmdline' => "$fwknopdCmd -c $cf{'disable_aging'} -a $cf{'hmac_android_fdroid_access'} " .
"-d $default_digest_file -p $default_pid_file $intf_str",
'server_positive_output_matches' => [qr/with expire time/],
'fw_rule_created' => $NEW_RULE_REQUIRED,
'fw_rule_removed' => $NEW_RULE_REMOVED,
},
);