1*c9496f6bSchristos#!/bin/sh 2*c9496f6bSchristos 3*c9496f6bSchristosHERE="`echo $0 | sed -e 's|[^/]*$||'`" 4*c9496f6bSchristosOPENSSL="${HERE}../apps/openssl" 5*c9496f6bSchristos 6*c9496f6bSchristosif [ -d "${HERE}../engines" -a "x$OPENSSL_ENGINES" = "x" ]; then 7*c9496f6bSchristos OPENSSL_ENGINES="${HERE}../engines"; export OPENSSL_ENGINES 8*c9496f6bSchristosfi 9*c9496f6bSchristos 10*c9496f6bSchristosif [ -x "${OPENSSL}.exe" ]; then 11*c9496f6bSchristos # The original reason for this script existence is to work around 12*c9496f6bSchristos # certain caveats in run-time linker behaviour. On Windows platforms 13*c9496f6bSchristos # adjusting $PATH used to be sufficient, but with introduction of 14*c9496f6bSchristos # SafeDllSearchMode in XP/2003 the only way to get it right in 15*c9496f6bSchristos # *all* possible situations is to copy newly built .DLLs to apps/ 16*c9496f6bSchristos # and test/, which is now done elsewhere... The $PATH is adjusted 17*c9496f6bSchristos # for backward compatibility (and nostagical reasons:-). 18*c9496f6bSchristos if [ "$OSTYPE" != msdosdjgpp ]; then 19*c9496f6bSchristos PATH="${HERE}..:$PATH"; export PATH 20*c9496f6bSchristos fi 21*c9496f6bSchristos exec "${OPENSSL}.exe" "$@" 22*c9496f6bSchristoselif [ -x "${OPENSSL}" -a -x "${HERE}shlib_wrap.sh" ]; then 23*c9496f6bSchristos exec "${HERE}shlib_wrap.sh" "${OPENSSL}" "$@" 24*c9496f6bSchristoselse 25*c9496f6bSchristos exec "${OPENSSL}" "$@" # hope for the best... 26*c9496f6bSchristosfi 27