Skip to content

Commit

Permalink
Swap openssl base provider for default provider in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexleach committed Jul 10, 2024
1 parent 50a636b commit 0709d49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/integration/p11-tool.sh.nosetup
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ auth_myrsakey=$(echo "$yaml_myrsakey" | grep "object-auth" | cut -d' ' -f2-)

setup_asan

openssl dgst -provider tpm2 -provider base \
openssl dgst -provider tpm2 -provider default \
-sha256 -sigopt rsa_padding_mode:pss -sigopt rsa_pss_saltlen:-1 \
-sign "$TPM2_PKCS11_STORE/myrsakey.pem" -out ${tempdir}/sig -passin "pass:$auth_myrsakey" ${tempdir}/data

Expand Down Expand Up @@ -252,7 +252,7 @@ auth_myecckey=$(echo "$yaml_myecckey" | grep "object-auth" | cut -d' ' -f2-)

setup_asan

openssl dgst -provider tpm2 -provider base \
openssl dgst -provider tpm2 -provider default \
-sha1 -sign "$TPM2_PKCS11_STORE/myecckey.pem" -out ${tempdir}/sig -passin "pass:$auth_myecckey" ${tempdir}/data

openssl dgst -sha1 -verify ${tempdir}/eccpubkey.pem -signature ${tempdir}/sig ${tempdir}/data
Expand Down
2 changes: 1 addition & 1 deletion test/integration/scripts/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ check_openssl_version()
{
# do this in an if statement so it can fail and not cause
# set -e (execfail) to exit the script
if pkg-config --exists 'libcrypto < 3'; then
if pkg-config --max-version 3 --exists 'libcrypto'; then
OSSL3_DETECTED=0
else
OSSL3_DETECTED=1
Expand Down

0 comments on commit 0709d49

Please sign in to comment.