aboutsummaryrefslogtreecommitdiffstats
path: root/main/elinks/libressl-2.5.patch
blob: 6b8c73032bd49ea06eb0f8972ff81d86732b1565 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/network/ssl/socket.c.orig	2017-02-08 12:49:43 UTC
+++ b/src/network/ssl/socket.c
@@ -67,7 +67,7 @@ static void
 ssl_set_no_tls(struct socket *socket)
 {
 #ifdef CONFIG_OPENSSL
-	((ssl_t *) socket->ssl)->options |= SSL_OP_NO_TLSv1;
+	SSL_set_options((ssl_t *) socket->ssl, SSL_OP_NO_TLSv1);
 #elif defined(CONFIG_GNUTLS)
 	{
 		/* GnuTLS does not support SSLv2 because it is "insecure".