aboutsummaryrefslogtreecommitdiff
path: root/www/elinks
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2018-11-26 16:37:45 +0000
committerConrad Meyer <cem@FreeBSD.org>2018-11-26 16:37:45 +0000
commitaaf5878582b1160b0c3b9bed2f439641b9a0f9f2 (patch)
tree8009b368b1ee734214369ff9ddd859b185de7244 /www/elinks
parent2eaa31ec1d34d850f172713ee2a2275d2a482848 (diff)
downloadports-aaf5878582b1160b0c3b9bed2f439641b9a0f9f2.tar.gz
ports-aaf5878582b1160b0c3b9bed2f439641b9a0f9f2.zip
www/elinks: Fix build on OpenSSL 1.1.1
Use the provided getter routine instead of directly accessing the contents of the SSL struct, which is no longer exported as part of the ABI. Reviewed by: beat@ Approved by: beat@ Differential Revision: https://reviews.freebsd.org/D18325
Notes
Notes: svn path=/head/; revision=485945
Diffstat (limited to 'www/elinks')
-rw-r--r--www/elinks/files/patch-src_network_ssl_socket.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/www/elinks/files/patch-src_network_ssl_socket.c b/www/elinks/files/patch-src_network_ssl_socket.c
index 66395cd74ed3..fa498a3570e9 100644
--- a/www/elinks/files/patch-src_network_ssl_socket.c
+++ b/www/elinks/files/patch-src_network_ssl_socket.c
@@ -9,3 +9,12 @@
#elif defined(CONFIG_GNUTLS)
{
/* GnuTLS does not support SSLv2 because it is "insecure".
+@@ -145,7 +145,7 @@
+ }
+
+ if (client_cert) {
+- SSL_CTX *ctx = ((SSL *) socket->ssl)->ctx;
++ SSL_CTX *ctx = SSL_get_SSL_CTX(socket->ssl);
+
+ SSL_CTX_use_certificate_chain_file(ctx, client_cert);
+ SSL_CTX_use_PrivateKey_file(ctx, client_cert,