aboutsummaryrefslogtreecommitdiff
path: root/openssl/vendor/0.9.8d/util/opensslwrap.sh
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2006-10-09 16:00:16 +0000
committerRob Austein <sra@hactrn.net>2006-10-09 16:00:16 +0000
commiteb9264fc2ef786e8c4e3d430834b9b9e9e0b9c0a (patch)
treea72b0dcff12c4934f29502390553f0b2305b05fa /openssl/vendor/0.9.8d/util/opensslwrap.sh
parent3a6e89edc0a52c58e2c08d3de4e360de777f14a7 (diff)
OpenSSL 0.9.8d base code import
svn path=/openssl/vendor/0.9.8d/CHANGES; revision=373
Diffstat (limited to 'openssl/vendor/0.9.8d/util/opensslwrap.sh')
-rwxr-xr-xopenssl/vendor/0.9.8d/util/opensslwrap.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/openssl/vendor/0.9.8d/util/opensslwrap.sh b/openssl/vendor/0.9.8d/util/opensslwrap.sh
new file mode 100755
index 00000000..91d29e2b
--- /dev/null
+++ b/openssl/vendor/0.9.8d/util/opensslwrap.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+HERE="`echo $0 | sed -e 's|[^/]*$||'`"
+OPENSSL="${HERE}../apps/openssl"
+
+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
+ # adjusting $PATH used to be sufficient, but with introduction of
+ # SafeDllSearchMode in XP/2003 the only way to get it right in
+ # *all* possible situations is to copy newly built .DLLs to apps/
+ # and test/, which is now done elsewhere... The $PATH is adjusted
+ # for backward compatibility (and nostagical reasons:-).
+ if [ "$OSTYPE" != msdosdjgpp ]; then
+ PATH="${HERE}..:$PATH"; export PATH
+ fi
+ exec "${OPENSSL}.exe" "$@"
+elif [ -x "${OPENSSL}" -a -x "${HERE}shlib_wrap.sh" ]; then
+ exec "${HERE}shlib_wrap.sh" "${OPENSSL}" "$@"
+else
+ exec "${OPENSSL}" "$@" # hope for the best...
+fi