1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

[openssl] Another try to get rid of warning

This commit is contained in:
Witold Filipczyk 2022-01-09 15:58:24 +01:00
parent 00bc37d8a4
commit fb9cc73c20

View File

@ -47,6 +47,12 @@
#define PATH_MAX 256 /* according to my /usr/include/bits/posix1_lim.h */
#endif
#if OPENSSL_VERSION_MAJOR >= 3
#define WSK void **
#else
#define WSK void *
#endif
static SSL_CTX *context = NULL;
int socket_SSL_ex_data_idx = -1;
@ -55,7 +61,7 @@ int socket_SSL_ex_data_idx = -1;
* either. */
static int
socket_SSL_ex_data_dup(CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from,
void *from_d, int idx, long argl, void *argp)
WSK from_d, int idx, long argl, void *argp)
{
/* The documentation of from_d in RSA_get_ex_new_index(3)
* is a bit unclear. The caller does something like: