elinks: fix build with libressl-2.5 (patch from FreeBSD)

This commit is contained in:
Alessio Sergi 2017-04-12 11:20:56 +02:00
parent b79a61ad2b
commit 51323c5aca

View file

@ -0,0 +1,11 @@
--- src/network/ssl/socket.c.orig 2017-02-08 12:49:43 UTC
+++ 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".