]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: enable USE_QUIC=1 for OpenSSL versions >= 3.5.0
authorIlia Shipitsin <chipitsine@gmail.com>
Mon, 7 Jul 2025 06:53:21 +0000 (08:53 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 7 Jul 2025 07:02:11 +0000 (09:02 +0200)
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.

.github/matrix.py

index efecb338f04e8962108130a67ae4f66c2ab40b78..996b79248d416ab9270ee094f697fc4346284ca0 100755 (executable)
@@ -232,8 +232,6 @@ def main(ref_name):
 
         for ssl in ssl_versions:
             flags = ["USE_OPENSSL=1"]
-            if ssl == "BORINGSSL=yes" or ssl == "QUICTLS=yes" or "LIBRESSL" in ssl or "WOLFSSL" in ssl or "AWS_LC" in ssl:
-                flags.append("USE_QUIC=1")
             if "WOLFSSL" in ssl:
                 flags.append("USE_OPENSSL_WOLFSSL=1")
             if "AWS_LC" in ssl:
@@ -246,6 +244,15 @@ def main(ref_name):
             if "OPENSSL" in ssl and "latest" in ssl:
                 ssl = determine_latest_openssl(ssl)
 
+            openssl_supports_quic = False
+            try:
+              openssl_supports_quic = version.Version(ssl.split("OPENSSL_VERSION=",1)[1]) >= version.Version("3.5.0")
+            except:
+              pass
+
+            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:
+                flags.append("USE_QUIC=1")
+
             matrix.append(
                 {
                     "name": "{}, {}, ssl={}".format(os, CC, clean_ssl(ssl)),