mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-09-17 09:22:54 +02:00
Try harder to find OPENSSL2
This commit adds an improvement so that e.g. under MacOS /opt/homebrew/bin/openssl is automatically taken as $OPENSSL so that also QUIC works out of the box for MacOS. Formally for at least MacOS with silicon CPUs OPENSSL was equal to OPENSSL2 and LibreSSL in /usr/bin/openssl doesn't have QUIC support (up to version 15.5 of MacoOS at least).
This commit is contained in:
@ -20946,7 +20946,12 @@ find_openssl_binary() {
|
||||
initialize_engine
|
||||
|
||||
openssl_location="$(type -p $OPENSSL)"
|
||||
|
||||
|
||||
# kludge for e.g. MacOS and brew
|
||||
if [[ $OPENSSL == $OPENSSL2 ]]; then
|
||||
OPENSSL2=$(type -a openssl | grep -v /usr/bin/openssl | awk '{ print $NF }')
|
||||
fi
|
||||
|
||||
[[ -n "$GIT_REL" ]] && \
|
||||
cwd="$PWD" || \
|
||||
cwd="$RUN_DIR"
|
||||
|
Reference in New Issue
Block a user