[glib-networking/wip/nacho/openssl-fix: 9/9] openssl: use SSL_OP_NO_RENEGOTIATION if defined



commit 0a60640a23c4876a128c01e4fb4798ba5a762334
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Mon Sep 24 10:20:49 2018 +0200

    openssl: use SSL_OP_NO_RENEGOTIATION if defined

 tls/openssl/gtlsserverconnection-openssl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tls/openssl/gtlsserverconnection-openssl.c b/tls/openssl/gtlsserverconnection-openssl.c
index 2a3d66b..450b5da 100644
--- a/tls/openssl/gtlsserverconnection-openssl.c
+++ b/tls/openssl/gtlsserverconnection-openssl.c
@@ -311,7 +311,7 @@ g_tls_server_connection_openssl_initable_init (GInitable       *initable,
             SSL_OP_NO_SSLv3 |
             SSL_OP_NO_TLSv1;
 
-#if OPENSSL_VERSION_NUMBER >= 0x10200000L && !defined (LIBRESSL_VERSION_NUMBER)
+#ifdef SSL_OP_NO_RENEGOTIATION
   options |= SSL_OP_NO_RENEGOTIATION;
 #endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]