aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2023-12-04 18:26:39 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2023-12-04 18:26:39 -0500
commit871f37517d53b35432dd076236d12eb451275ed8 (patch)
tree3ae5725481535bdfd9e8b7a0966aba382ff9d4d9
parent2ca1b46b68dc7b8ab8a42e315d49857a2c0a868d (diff)
downloadopenssl_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-xtests/dynamic_engine.sh1
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