mirror of
https://github.com/curl/curl.git
synced 2026-04-15 09:31:42 +03:00
openssl: use SSL_CTX_set_keylog_callback with LibreSSL 3.5.0
LibreSSL 3.5.0 (2022-02-24) added support for `SSL_CTX_set_keylog_callback`. Ref: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.5.0-relnotes.txt Reviewed-by: Jay Satiro Closes #11615
This commit is contained in:
parent
762740f4e5
commit
e43474b472
1 changed files with 3 additions and 2 deletions
|
|
@ -190,11 +190,12 @@
|
|||
* Whether SSL_CTX_set_keylog_callback is available.
|
||||
* OpenSSL: supported since 1.1.1 https://github.com/openssl/openssl/pull/2287
|
||||
* BoringSSL: supported since d28f59c27bac (committed 2015-11-19)
|
||||
* LibreSSL: unsupported in at least 2.7.2 (explicitly check for it since it
|
||||
* lies and pretends to be OpenSSL 2.0.0).
|
||||
* LibreSSL: supported since 3.5.0 (released 2022-02-24)
|
||||
*/
|
||||
#if (OPENSSL_VERSION_NUMBER >= 0x10101000L && \
|
||||
!defined(LIBRESSL_VERSION_NUMBER)) || \
|
||||
(defined(LIBRESSL_VERSION_NUMBER) && \
|
||||
LIBRESSL_VERSION_NUMBER >= 0x3050000fL) || \
|
||||
defined(OPENSSL_IS_BORINGSSL)
|
||||
#define HAVE_KEYLOG_CALLBACK
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue