tests: Allow test-rsa-sig-ver data files to be set on command line
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
2b4db417d5
commit
4ca8ef3df1
1 changed files with 9 additions and 2 deletions
|
@ -187,12 +187,19 @@ static int cavp_rsa_sig_ver(const char *fname)
|
|||
int main(int argc, char *argv[])
|
||||
{
|
||||
int ret = 0;
|
||||
int i;
|
||||
|
||||
wpa_debug_level = 0;
|
||||
wpa_debug_show_keys = 1;
|
||||
|
||||
if (cavp_rsa_sig_ver("CAVP/SigVer15_186-3.rsp"))
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (cavp_rsa_sig_ver(argv[i]))
|
||||
ret++;
|
||||
if (cavp_rsa_sig_ver("CAVP/SigVer15EMTest.txt"))
|
||||
}
|
||||
|
||||
if (argc < 2 && cavp_rsa_sig_ver("CAVP/SigVer15_186-3.rsp"))
|
||||
ret++;
|
||||
if (argc < 2 && cavp_rsa_sig_ver("CAVP/SigVer15EMTest.txt"))
|
||||
ret++;
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue