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:
Dirk Wetter
2025-07-15 23:28:44 +02:00
parent 10af37029c
commit 88b7af8ad1

View File

@ -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"