Skip to content

Commit d8c867a

Browse files
chipitsinewlallemand
authored andcommitted
CI: enable USE_QUIC=1 for OpenSSL versions >= 3.5.0
OpenSSL 3.5.0 introduced experimental support for QUIC. This change enables the use_quic option when a compatible version of OpenSSL is detected, allowing QUIC-based functionality to be leveraged where applicable. Feature remains disabled for earlier versions to ensure compatibility.
1 parent 198d422 commit d8c867a

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/matrix.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@ def main(ref_name):
232232

233233
for ssl in ssl_versions:
234234
flags = ["USE_OPENSSL=1"]
235-
if ssl == "BORINGSSL=yes" or ssl == "QUICTLS=yes" or "LIBRESSL" in ssl or "WOLFSSL" in ssl or "AWS_LC" in ssl:
236-
flags.append("USE_QUIC=1")
237235
if "WOLFSSL" in ssl:
238236
flags.append("USE_OPENSSL_WOLFSSL=1")
239237
if "AWS_LC" in ssl:
@@ -246,6 +244,15 @@ def main(ref_name):
246244
if "OPENSSL" in ssl and "latest" in ssl:
247245
ssl = determine_latest_openssl(ssl)
248246

247+
openssl_supports_quic = False
248+
try:
249+
openssl_supports_quic = version.Version(ssl.split("OPENSSL_VERSION=",1)[1]) >= version.Version("3.5.0")
250+
except:
251+
pass
252+
253+
if ssl == "BORINGSSL=yes" or ssl == "QUICTLS=yes" or "LIBRESSL" in ssl or "WOLFSSL" in ssl or "AWS_LC" in ssl or openssl_supports_quic:
254+
flags.append("USE_QUIC=1")
255+
249256
matrix.append(
250257
{
251258
"name": "{}, {}, ssl={}".format(os, CC, clean_ssl(ssl)),

0 commit comments

Comments
 (0)