diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2025-07-30 16:09:21 +0400 |
|---|---|---|
| committer | pluknet <pluknet@nginx.com> | 2025-09-25 19:28:36 +0400 |
| commit | 4c9ae11dff0da5ae76c0e4b6571ce30f7f8024bc (patch) | |
| tree | 7320b2777648385efb2c88e8d6072d9ebb84c90a /src | |
| parent | 7f9ced0ce0d70ae60f46ef3ed759efa75e711db4 (diff) | |
| download | nginx-4c9ae11dff0da5ae76c0e4b6571ce30f7f8024bc.tar.gz nginx-4c9ae11dff0da5ae76c0e4b6571ce30f7f8024bc.tar.bz2 | |
QUIC: localized OpenSSL headers used for QUIC protection.
Diffstat (limited to 'src')
| -rw-r--r-- | src/event/ngx_event_openssl.h | 8 | ||||
| -rw-r--r-- | 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 */ |
