File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,8 @@ HAS_TLS12=false
342342HAS_TLS13=false
343343HAS_QUIC=false
344344HAS2_QUIC=false # for automagically determined second OPENSSL version
345+ HAS_EARLYDATA=false
346+ HAS2_EARLYDATA=false
345347HAS_X448=false
346348HAS_X25519=false
347349HAS_SIGALGS=false
@@ -21125,17 +21127,24 @@ find_openssl_binary() {
2112521127 $OPENSSL s_client -tls1_3 -sigalgs PSS+SHA256:PSS+SHA384 $NXCONNECT </dev/null 2>&1 | grep -aiq "unknown option" || HAS_SIGALGS=true
2112621128 fi
2112721129
21130+ #reminder: at some point of time we should check $OPENSSL first, then $OPENSSL2
2112821131 if [[ -x $OPENSSL2 ]] && OPENSSL_CONF='' $OPENSSL2 s_client -quic 2>&1 | grep -qi 'QUIC requires ALPN'; then
21129- HAS2_QUIC="true"
21130- elif OPENSSL_CONF='' $OPENSSL s_client -quic 2>&1 | grep -qi 'QUIC requires ALPN'; then
21131- HAS_QUIC="true"
21132+ HAS2_QUIC=true
21133+ elif $OPENSSL s_client -quic 2>&1 | grep -qi 'QUIC requires ALPN'; then
21134+ HAS_QUIC=true
21135+ fi
21136+
21137+ # Kind of fine this way as openssl 1.1.1 supports early_data, came with tls 1.3
21138+ if $OPENSSL s_client -help 2>&1 | grep -q early_data ; then
21139+ HAS_EARLYDATA=true
21140+ elif OPENSSL_CONF='' $OPENSS2 s_client --help 2>&1 | grep -q early_data ; then
21141+ HAS2_EARLYDATA=true
2113221142 fi
2113321143
2113421144 $OPENSSL s_client -noservername </dev/null 2>&1 | grep -aiq "unknown option" || HAS_NOSERVERNAME=true
2113521145 $OPENSSL s_client -ciphersuites </dev/null 2>&1 | grep -aiq "unknown option" || HAS_CIPHERSUITES=true
2113621146 $OPENSSL s_client -comp </dev/null 2>&1 | grep -aiq "unknown option" || HAS_COMP=true
2113721147 $OPENSSL s_client -no_comp </dev/null 2>&1 | grep -aiq "unknown option" || HAS_NO_COMP=true
21138-
2113921148 $OPENSSL ciphers @SECLEVEL=0:ALL > /dev/null 2> /dev/null && HAS_SECLEVEL=true
2114021149
2114121150 OPENSSL_NR_CIPHERS=$(count_ciphers "$(actually_supported_osslciphers 'ALL:COMPLEMENTOFALL' 'ALL')")
You can’t perform that action at this time.
0 commit comments