summaryrefslogtreecommitdiff
path: root/util/opensslwrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/opensslwrap.sh')
-rwxr-xr-xutil/opensslwrap.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/opensslwrap.sh b/util/opensslwrap.sh
index 91d29e2b87..b27cbb897f 100755
--- a/util/opensslwrap.sh
+++ b/util/opensslwrap.sh
@@ -3,6 +3,10 @@
HERE="`echo $0 | sed -e 's|[^/]*$||'`"
OPENSSL="${HERE}../apps/openssl"
+if [ -d "${HERE}../engines" -a "x$OPENSSL_ENGINES" = "x" ]; then
+ OPENSSL_ENGINES="${HERE}../engines"; export OPENSSL_ENGINES
+fi
+
if [ -x "${OPENSSL}.exe" ]; then
# The original reason for this script existence is to work around
# certain caveats in run-time linker behaviour. On Windows platforms