Skip to content

Commit 88b7af8

Browse files
committed
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).
1 parent 10af370 commit 88b7af8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

testssl.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20946,7 +20946,12 @@ find_openssl_binary() {
2094620946
initialize_engine
2094720947

2094820948
openssl_location="$(type -p $OPENSSL)"
20949-
20949+
20950+
# kludge for e.g. MacOS and brew
20951+
if [[ $OPENSSL == $OPENSSL2 ]]; then
20952+
OPENSSL2=$(type -a openssl | grep -v /usr/bin/openssl | awk '{ print $NF }')
20953+
fi
20954+
2095020955
[[ -n "$GIT_REL" ]] && \
2095120956
cwd="$PWD" || \
2095220957
cwd="$RUN_DIR"

0 commit comments

Comments
 (0)