Skip to content

Commit

Permalink
www/elinks: Fix build with libressl
Browse files Browse the repository at this point in the history
PR:		277720
Approved by:	jailbird@fdf.net (maintainer)
  • Loading branch information
Zirias committed Mar 15, 2024
1 parent 0bec52e commit 87d80d5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions 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:

0 comments on commit 87d80d5

Please sign in to comment.