aboutsummaryrefslogtreecommitdiff
path: root/databases/pgbouncer/files/patch-lib_usual_tls_tls.c
blob: 3bede1b5cfdb7655c42d4bb9509a5f2de24b7d2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- lib/usual/tls/tls.c.orig	2017-05-01 17:37:49 UTC
+++ lib/usual/tls/tls.c
@@ -287,7 +287,7 @@ tls_info_callback(const SSL *ssl, int wh
 {
 	struct tls *ctx = SSL_get_app_data(ssl);
 
-#ifdef USE_LIBSSL_INTERNALS
+#if defined(USE_LIBSSL_INTERNALS) && (!defined(LIBRESSL_VERSION_NUMBER) || 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) {