]> git.kaiwu.me - nginx.git/commitdiff
QUIC: localized OpenSSL headers used for QUIC protection.
authorSergey Kandaurov <pluknet@nginx.com>
Wed, 30 Jul 2025 12:09:21 +0000 (16:09 +0400)
committerpluknet <pluknet@nginx.com>
Thu, 25 Sep 2025 15:28:36 +0000 (19:28 +0400)
src/event/ngx_event_openssl.h
src/event/quic/ngx_event_quic_protection.c

index 9943ee43054f078a2975035f93b343c81a47ca17..3e5483791d47db742ef186517e93396629582e4e 100644 (file)
 #include <openssl/engine.h>
 #endif
 #include <openssl/evp.h>
-#if (NGX_QUIC)
-#ifdef OPENSSL_IS_BORINGSSL
-#include <openssl/hkdf.h>
-#include <openssl/chacha.h>
-#else
-#include <openssl/kdf.h>
-#endif
-#endif
 #include <openssl/hmac.h>
 #ifndef OPENSSL_NO_OCSP
 #include <openssl/ocsp.h>
index 885843d72d842af746b42f8e5c80bb84c6e6b808..c94d6ea31beee8d3227b5210d1f63a9a3b6111c3 100644 (file)
@@ -8,6 +8,12 @@
 #include <ngx_core.h>
 #include <ngx_event.h>
 #include <ngx_event_quic_connection.h>
+#ifdef OPENSSL_IS_BORINGSSL
+#include <openssl/hkdf.h>
+#include <openssl/chacha.h>
+#else
+#include <openssl/kdf.h>
+#endif
 
 
 /* RFC 9001, 5.4.1.  Header Protection Application: 5-byte mask */