Mercurial > nginx
changeset 9459:f0919241f8a4
QUIC: localized OpenSSL headers used for QUIC protection.
| author | Sergey Kandaurov <pluknet@nginx.com> |
|---|---|
| date | Wed, 30 Jul 2025 16:09:21 +0400 |
| parents | a248091b0e30 |
| children | 849669320d99 |
| files | src/event/ngx_event_openssl.h src/event/quic/ngx_event_quic_protection.c |
| diffstat | 2 files changed, 6 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/event/ngx_event_openssl.h Mon Sep 22 19:55:16 2025 +0400 +++ b/src/event/ngx_event_openssl.h Wed Jul 30 16:09:21 2025 +0400 @@ -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>
--- a/src/event/quic/ngx_event_quic_protection.c Mon Sep 22 19:55:16 2025 +0400 +++ b/src/event/quic/ngx_event_quic_protection.c Wed Jul 30 16:09:21 2025 +0400 @@ -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 */
