Skip to content

Commit 25a7a08

Browse files
committed
debugging
1 parent 6f45f42 commit 25a7a08

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

src/bc.cmd

-1
This file was deleted.

src/oqs.cmd

-1
This file was deleted.

src/test_certs_r4.sh

+19-9
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ if [ $# -lt 1 ]; then
66
fi
77

88
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
1315

1416
certsdir_r4="artifacts_certs_r4"
1517
certszip_r4="artifacts_certs_r4.zip"
@@ -57,16 +59,24 @@ test_ta () {
5759
printf "\nTesting %s\n" $tafile >> $logfile
5860

5961
# 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
6272

6373
# log it to file and to stdout
64-
echo "$ossl_output" >> $logfile
65-
echo "$ossl_output"
74+
echo "$output" >> $logfile
75+
echo "$output"
6676

6777

6878
# 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
7080
echo "Certificate Validation Result: FAIL"
7181
echo $oid,N >> $resultsfile
7282
else

0 commit comments

Comments
 (0)