Date: Mon, 26 Nov 2018 16:37:45 +0000 (UTC) From: Conrad Meyer <cem@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r485945 - head/www/elinks/files Message-ID: <201811261637.wAQGbjSV086439@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811261637.wAQGbjSV086439>