mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 22:33:40 +01:00
check that provided openssl is executable, fall back to system one if not
This commit is contained in:
parent
26aa8f9408
commit
d5685da796
@ -468,6 +468,12 @@ debug "Port: $PORT"
|
|||||||
TARGET=$HOST:$PORT
|
TARGET=$HOST:$PORT
|
||||||
debug "target: $TARGET"
|
debug "target: $TARGET"
|
||||||
|
|
||||||
|
# test our openssl is usable
|
||||||
|
tmp="$($OPENSSLBIN -h 2>&1 1>/dev/null)"
|
||||||
|
if [ $? -gt 0 ]; then
|
||||||
|
OPENSSLBIN=$(which openssl)
|
||||||
|
echo "custom openssl not executable, falling back to system one from $OPENSSLBIN"
|
||||||
|
fi
|
||||||
|
|
||||||
SCLIENTARGS=$(sed -e s,${TEMPTARGET},,<<<"${@}")
|
SCLIENTARGS=$(sed -e s,${TEMPTARGET},,<<<"${@}")
|
||||||
debug "sclientargs: $SCLIENTARGS"
|
debug "sclientargs: $SCLIENTARGS"
|
||||||
|
Loading…
Reference in New Issue
Block a user