Allow opensslwrap.sh to access engines from build tree.
authorAndy Polyakov <appro@openssl.org>
Fri, 29 Dec 2006 10:53:09 +0000 (10:53 +0000)
committerAndy Polyakov <appro@openssl.org>
Fri, 29 Dec 2006 10:53:09 +0000 (10:53 +0000)
util/opensslwrap.sh

index 91d29e2..6f9f7ff 100755 (executable)
@@ -3,6 +3,10 @@
 HERE="`echo $0 | sed -e 's|[^/]*$||'`"
 OPENSSL="${HERE}../apps/openssl"
 
+if [ -d "${HERE}../engines" ]; 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