diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2020-12-22 12:03:43 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2020-12-22 12:03:43 +0300 |
commit | 71f9b41c7fa1a5700f196bb4f4fee255b986ff4d (patch) | |
tree | c23ce5a5101dbedceb6786c55329fac693d1c270 /src | |
parent | 2bc8ee653517f61c047d3519d451fbc718a6313d (diff) | |
download | nginx-71f9b41c7fa1a5700f196bb4f4fee255b986ff4d.tar.gz nginx-71f9b41c7fa1a5700f196bb4f4fee255b986ff4d.zip |
QUIC: fixed build with OpenSSL < 1.1.1.
The <openssl/kdf.h> header is available since OpenSSL 1.1.0, and HKDF API
used for separate Extract and Expand steps in TLSv1.3 - since OpenSSL 1.1.1.
Diffstat (limited to 'src')
-rw-r--r-- | src/event/ngx_event_openssl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/ngx_event_openssl.h b/src/event/ngx_event_openssl.h index afccb52d7..3a0bbfdba 100644 --- a/src/event/ngx_event_openssl.h +++ b/src/event/ngx_event_openssl.h @@ -23,12 +23,14 @@ #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> |