mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
14 lines
508 B
Diff
14 lines
508 B
Diff
diff --git a/lib/usual/tls/tls.c b/lib/usual/tls/tls.c
|
|
index 9c6f6b9..a480fa4 100644
|
|
--- a/lib/usual/tls/tls.c
|
|
+++ b/lib/usual/tls/tls.c
|
|
@@ -287,7 +287,7 @@ tls_info_callback(const SSL *ssl, int where, int rc)
|
|
{
|
|
struct tls *ctx = SSL_get_app_data(ssl);
|
|
|
|
-#ifdef USE_LIBSSL_INTERNALS
|
|
+#if defined(USE_LIBSSL_INTERNALS) && LIBRESSL_VERSION_NUMBER < 0x2050100fL
|
|
if (!(ctx->state & TLS_HANDSHAKE_COMPLETE) && ssl->s3) {
|
|
/* steal info about used DH key */
|
|
if (ssl->s3->tmp.dh && !ctx->used_dh_bits) {
|