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



commit f4623358b1b4da92001ca5bba9aa0bab8a0cd475
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]