diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2023-12-04 18:26:39 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2023-12-04 18:26:39 -0500 |
commit | 871f37517d53b35432dd076236d12eb451275ed8 (patch) | |
tree | 3ae5725481535bdfd9e8b7a0966aba382ff9d4d9 | |
parent | 2ca1b46b68dc7b8ab8a42e315d49857a2c0a868d (diff) | |
download | openssl_tpm2_engine-871f37517d53b35432dd076236d12eb451275ed8.tar.gz |
Fix dynamic_engine tests for openssl 3.2
Apparently openssl 3.2 no longer accepts the OPENSSL_ENGINE
environment variable for the location of the engines directory. This
breaks the dynamic engine test, so work around this by adding the
engine location to LD_LIBRARY_PATH.
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
-rwxr-xr-x | tests/dynamic_engine.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/dynamic_engine.sh b/tests/dynamic_engine.sh index 5012dad..a840b91 100755 --- a/tests/dynamic_engine.sh +++ b/tests/dynamic_engine.sh @@ -7,6 +7,7 @@ set -x unset OPENSSL_CONF export OPENSSL_ENGINES=${testdir}/../src/engine/.libs ln -s libtpm2.so ${OPENSSL_ENGINES}/tpm2.so +export LD_LIBRARY_PATH=${OPENSSL_ENGINES}:{LD_LIBRARY_PATH} testkey() { openssl pkey $ENGINE $INFORM -in key.tpm -pubout -out key.pub || exit 1 |