1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Compilation fix for OpenSSL-1.1

This commit is contained in:
Witold Filipczyk 2017-03-06 17:39:36 +01:00
parent e957e60d5c
commit 54ebe365b7

View File

@ -81,7 +81,9 @@ static void
ssl_set_no_tls(struct socket *socket)
{
#ifdef CONFIG_OPENSSL
((ssl_t *) socket->ssl)->options |= SSL_OP_NO_TLSv1;
#ifdef SSL_OP_NO_TLSv1
SSL_set_options((ssl_t *)socket->ssl, SSL_OP_NO_TLSv1);
#endif
#elif defined(CONFIG_GNUTLS)
/* There is another gnutls_priority_set_direct call elsewhere
* in ELinks. If you change the priorities here, please check
@ -453,7 +455,7 @@ ssl_connect(struct socket *socket)
(SSL *) socket->ssl,
client_cert);
#else
SSL_CTX *ctx = ((SSL *) socket->ssl)->ctx;
SSL_CTX *ctx = SSL_get_SSL_CTX((SSL *) socket->ssl);
SSL_CTX_use_certificate_chain_file(ctx, client_cert);
SSL_CTX_use_PrivateKey_file(ctx, client_cert,