Date: Fri, 15 Mar 2024 18:35:12 GMT From: Felix Palmen <zirias@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 87d80d5ee36f - main - www/elinks: Fix build with libressl Message-ID: <202403151835.42FIZCPJ067329@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by zirias: URL: https://cgit.FreeBSD.org/ports/commit/?id=87d80d5ee36f4780d6cf5bce4147f3df891f7b09 commit 87d80d5ee36f4780d6cf5bce4147f3df891f7b09 Author: Felix Palmen <zirias@FreeBSD.org> AuthorDate: 2024-03-15 07:10:11 +0000 Commit: Felix Palmen <zirias@FreeBSD.org> CommitDate: 2024-03-15 18:35:03 +0000 www/elinks: Fix build with libressl PR: 277720 Approved by: jailbird@fdf.net (maintainer) --- www/elinks/files/patch-src_network_ssl_ssl.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/www/elinks/files/patch-src_network_ssl_ssl.c b/www/elinks/files/patch-src_network_ssl_ssl.c new file mode 100644 index 000000000000..88ef5625a3ac --- /dev/null +++ b/www/elinks/files/patch-src_network_ssl_ssl.c @@ -0,0 +1,18 @@ +--- src/network/ssl/ssl.c.orig 2024-03-15 07:07:07 UTC ++++ src/network/ssl/ssl.c +@@ -61,9 +61,15 @@ int socket_SSL_ex_data_idx = -1; + /** Prevent SSL_dup() if the SSL is associated with struct socket. + * We cannot copy struct socket and it doesn't have a reference count + * either. */ ++#ifdef LIBRESSL_VERSION_NUMBER + static int ++socket_SSL_ex_data_dup(CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, ++ WSK from_d, int idx, long argl, void *argp) ++#else ++static int + socket_SSL_ex_data_dup(CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from, + WSK from_d, int idx, long argl, void *argp) ++#endif + { + /* The documentation of from_d in RSA_get_ex_new_index(3) + * is a bit unclear. The caller does something like:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202403151835.42FIZCPJ067329>