]> git.kaiwu.me - nginx.git/commitdiff
QUIC: fixed build with OpenSSL < 1.1.1.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 22 Dec 2020 09:03:43 +0000 (12:03 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 22 Dec 2020 09:03:43 +0000 (12:03 +0300)
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.

src/event/ngx_event_openssl.h

index afccb52d7a88caeed3e4d3114de89eefed1707bb..3a0bbfdbad542c583c377fbb9315d1ec53108309 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>