Skip to content

Commit

Permalink
Making the python tolerant of multiple submissions of the same alg
Browse files Browse the repository at this point in the history
  • Loading branch information
ounsworth committed Jul 22, 2024
1 parent 02e5de3 commit 3835223
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test_certs_r3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ test_ta () {

# some artifacts submit multiple copies of the same cert as .pem, .der, etc. Just skip the second one
if [[ $alreadyTestedOIDs == *$oid* ]]; then
printf "Warning: %s has been submitted multiple times by this provider. Skipping" $oid
return
fi

Expand Down Expand Up @@ -66,8 +67,9 @@ for providerdir in $(ls -d $inputdir/*/); do
resultsfile=${outputdir}/${provider}_oqs-provider.csv
echo "key_algorithm_oid,test_result" > $resultsfile # CSV header row

alreadyTestedOIDs="" # for a guard to skip testing the same cert multiple times
# test each TA file
for tafile in $(find $unzipdir -name "*_ta.pem"); do
for tafile in $(find $unzipdir \( -iname "*_ta.pem" -o -iname "*_ta.der" -o -iname "*_ta.der.pem"); do
test_ta "$tafile" "$resultsfile"
done
done
Expand Down

0 comments on commit 3835223

Please sign in to comment.