changeset 9429:ceb120f18bab

QUIC: adjusted OpenSSL 3.5 QUIC API feature test. 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.
author Sergey Kandaurov <pluknet@nginx.com>
date Sun, 22 Jun 2025 20:40:05 +0400
parents 07f9a1d2efaf
children 644e6351d996
files src/event/quic/ngx_event_quic.h
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic.h	Tue Jun 24 22:46:00 2025 +0400
+++ b/src/event/quic/ngx_event_quic.h	Sun Jun 22 20:40:05 2025 +0400
@@ -12,11 +12,8 @@
 #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