svn commit: r485945 - head/www/elinks/files
Conrad Meyer
cem at FreeBSD.org
Mon Nov 26 16:37:46 UTC 2018
Author: cem (src committer)
Date: Mon Nov 26 16:37:45 2018
New Revision: 485945
URL: https://svnweb.freebsd.org/changeset/ports/485945
Log:
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
Modified:
head/www/elinks/files/patch-src_network_ssl_socket.c
Modified: head/www/elinks/files/patch-src_network_ssl_socket.c
==============================================================================
--- head/www/elinks/files/patch-src_network_ssl_socket.c Mon Nov 26 16:13:15 2018 (r485944)
+++ head/www/elinks/files/patch-src_network_ssl_socket.c Mon Nov 26 16:37:45 2018 (r485945)
@@ -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,
More information about the svn-ports-all
mailing list