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.
This commit is contained in:
Sergey Kandaurov 2020-12-22 12:03:43 +03:00
parent 2bc8ee6535
commit 71f9b41c7f

View File

@ -23,12 +23,14 @@
#include <openssl/engine.h> #include <openssl/engine.h>
#endif #endif
#include <openssl/evp.h> #include <openssl/evp.h>
#if (NGX_QUIC)
#ifdef OPENSSL_IS_BORINGSSL #ifdef OPENSSL_IS_BORINGSSL
#include <openssl/hkdf.h> #include <openssl/hkdf.h>
#include <openssl/chacha.h> #include <openssl/chacha.h>
#else #else
#include <openssl/kdf.h> #include <openssl/kdf.h>
#endif #endif
#endif
#include <openssl/hmac.h> #include <openssl/hmac.h>
#ifndef OPENSSL_NO_OCSP #ifndef OPENSSL_NO_OCSP
#include <openssl/ocsp.h> #include <openssl/ocsp.h>