Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ounsworth committed Nov 2, 2024
1 parent 6f45f42 commit 25a7a08
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/bc.cmd

This file was deleted.

1 change: 0 additions & 1 deletion src/oqs.cmd

This file was deleted.

28 changes: 19 additions & 9 deletions src/test_certs_r4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ if [ $# -lt 1 ]; then
fi

verifier=$1
verifierCmd=$(cat ./src/${verifier}.cmd)

echo "DEBUG: verifiercmd: $verifierCmd"

if [ $verifier == "bc" ] || [ $verifier == "oqs"]; then
# verifier is supported
else
echo "ERROR: verifier \"$verifier\" not supported"
exit -1
fi

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

# The actual openssl command that is the heart of this script
ossl_output=$(eval $verifierCmd)
ossl_status=$?
if [ $verifier == "bc" ]; then
output=$(verify_r3.sh $(pwd)/$tafile 2>&1)
status=$?
elif [ $verifier == "oqs" ]; then
output=$(openssl verify -check_ss_sig -verbose -CAfile $tafile $tafile 2>&1)
status=$?
else
echo "ERROR: verifier \"$verifier\" not supported"
exit -1
fi

# log it to file and to stdout
echo "$ossl_output" >> $logfile
echo "$ossl_output"
echo "$output" >> $logfile
echo "$output"


# test for an error and print a link in the results CSV file
if [[ $ossl_status -ne 0 ]]; then
if [[ $status -ne 0 ]]; then
echo "Certificate Validation Result: FAIL"
echo $oid,N >> $resultsfile
else
Expand Down

0 comments on commit 25a7a08

Please sign in to comment.