[nginx] QUIC: localized OpenSSL headers used for QUIC protection.
noreply at nginx.com
noreply at nginx.com
Thu Sep 25 15:29:02 UTC 2025
details: https://github.com/nginx/nginx/commit/4c9ae11dff0da5ae76c0e4b6571ce30f7f8024bc
branches: master
commit: 4c9ae11dff0da5ae76c0e4b6571ce30f7f8024bc
user: Sergey Kandaurov <pluknet at nginx.com>
date: Wed, 30 Jul 2025 16:09:21 +0400
description:
QUIC: localized OpenSSL headers used for QUIC protection.
---
src/event/ngx_event_openssl.h | 8 --------
src/event/quic/ngx_event_quic_protection.c | 6 ++++++
2 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/src/event/ngx_event_openssl.h b/src/event/ngx_event_openssl.h
index 9943ee430..3e5483791 100644
--- a/src/event/ngx_event_openssl.h
+++ b/src/event/ngx_event_openssl.h
@@ -26,14 +26,6 @@
#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>
diff --git a/src/event/quic/ngx_event_quic_protection.c b/src/event/quic/ngx_event_quic_protection.c
index 885843d72..c94d6ea31 100644
--- a/src/event/quic/ngx_event_quic_protection.c
+++ b/src/event/quic/ngx_event_quic_protection.c
@@ -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 */
More information about the nginx-devel
mailing list