@@ -6,10 +6,12 @@ if [ $# -lt 1 ]; then
6
6
fi
7
7
8
8
verifier=$1
9
- verifierCmd=$( cat ./src/${verifier} .cmd)
10
-
11
- echo " DEBUG: verifiercmd: $verifierCmd "
12
-
9
+ if [ $verifier == " bc" ] || [ $verifier == " oqs" ]; then
10
+ # verifier is supported
11
+ else
12
+ echo " ERROR: verifier \" $verifier \" not supported"
13
+ exit -1
14
+ fi
13
15
14
16
certsdir_r4=" artifacts_certs_r4"
15
17
certszip_r4=" artifacts_certs_r4.zip"
@@ -57,16 +59,24 @@ test_ta () {
57
59
printf " \nTesting %s\n" $tafile >> $logfile
58
60
59
61
# The actual openssl command that is the heart of this script
60
- ossl_output=$( eval $verifierCmd )
61
- ossl_status=$?
62
+ if [ $verifier == " bc" ]; then
63
+ output=$( verify_r3.sh $( pwd) /$tafile 2>&1 )
64
+ status=$?
65
+ elif [ $verifier == " oqs" ]; then
66
+ output=$( openssl verify -check_ss_sig -verbose -CAfile $tafile $tafile 2>&1 )
67
+ status=$?
68
+ else
69
+ echo " ERROR: verifier \" $verifier \" not supported"
70
+ exit -1
71
+ fi
62
72
63
73
# log it to file and to stdout
64
- echo " $ossl_output " >> $logfile
65
- echo " $ossl_output "
74
+ echo " $output " >> $logfile
75
+ echo " $output "
66
76
67
77
68
78
# test for an error and print a link in the results CSV file
69
- if [[ $ossl_status -ne 0 ]]; then
79
+ if [[ $status -ne 0 ]]; then
70
80
echo " Certificate Validation Result: FAIL"
71
81
echo $oid ,N >> $resultsfile
72
82
else
0 commit comments