]> git.kaiwu.me - nginx.git/commitdiff
QUIC: adjusted OpenSSL 3.5 QUIC API feature test.
authorSergey Kandaurov <pluknet@nginx.com>
Sun, 22 Jun 2025 16:40:05 +0000 (20:40 +0400)
committerpluknet <pluknet@nginx.com>
Thu, 3 Jul 2025 18:50:25 +0000 (22:50 +0400)
A bug with the "quic_transport_parameters" extension and SNI described
in cedb855d7 is now fixed in the OpenSSL 3.5.1 release, as requested
in https://github.com/openssl/openssl/pull/27706.

src/event/quic/ngx_event_quic.h

index 335d8719187dcf8259b07a4c1dad33e091861020..bab085f4626d0f969cea4885d4edb096d164659f 100644 (file)
 #include <ngx_core.h>
 
 
-#ifdef OSSL_RECORD_PROTECTION_LEVEL_NONE
-#ifndef NGX_QUIC_OPENSSL_API
-#define NGX_QUIC_BORINGSSL_API               1
-#define NGX_QUIC_OPENSSL_COMPAT              1
-#endif
+#if (OPENSSL_VERSION_NUMBER >= 0x30500010L)
+#define NGX_QUIC_OPENSSL_API                 1
 
 #elif (defined SSL_R_MISSING_QUIC_TRANSPORT_PARAMETERS_EXTENSION)
 #define NGX_QUIC_QUICTLS_API                 1