comparison src/event/ngx_event_openssl.h @ 8668:af6363758ef9 quic

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.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 22 Dec 2020 12:03:43 +0300
parents 71b7453fb11f
children 13c537def699
comparison
equal deleted inserted replaced
8667:a4c05aff8ec0 8668:af6363758ef9
21 #include <openssl/dh.h> 21 #include <openssl/dh.h>
22 #ifndef OPENSSL_NO_ENGINE 22 #ifndef OPENSSL_NO_ENGINE
23 #include <openssl/engine.h> 23 #include <openssl/engine.h>
24 #endif 24 #endif
25 #include <openssl/evp.h> 25 #include <openssl/evp.h>
26 #if (NGX_QUIC)
26 #ifdef OPENSSL_IS_BORINGSSL 27 #ifdef OPENSSL_IS_BORINGSSL
27 #include <openssl/hkdf.h> 28 #include <openssl/hkdf.h>
28 #include <openssl/chacha.h> 29 #include <openssl/chacha.h>
29 #else 30 #else
30 #include <openssl/kdf.h> 31 #include <openssl/kdf.h>
32 #endif
31 #endif 33 #endif
32 #include <openssl/hmac.h> 34 #include <openssl/hmac.h>
33 #ifndef OPENSSL_NO_OCSP 35 #ifndef OPENSSL_NO_OCSP
34 #include <openssl/ocsp.h> 36 #include <openssl/ocsp.h>
35 #endif 37 #endif