SSL: fixed build with OPENSSL_NO_DEPRECATED.

This commit is contained in:
Sergey Kandaurov 2025-04-16 20:50:29 +04:00 committed by pluknet
parent 9785db9bd5
commit 4f8bc0b282

View File

@ -83,6 +83,17 @@
#endif
#ifdef OPENSSL_NO_DEPRECATED_3_4
#define SSL_SESSION_get_time(s) SSL_SESSION_get_time_ex(s)
#define SSL_SESSION_set_time(s, t) SSL_SESSION_set_time_ex(s, t)
#endif
#ifdef OPENSSL_NO_DEPRECATED_3_0
#define EVP_CIPHER_CTX_cipher(c) EVP_CIPHER_CTX_get0_cipher(c)
#endif
typedef struct ngx_ssl_ocsp_s ngx_ssl_ocsp_t;