mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[openssl] Another try to get rid of warning
This commit is contained in:
parent
00bc37d8a4
commit
fb9cc73c20
@ -47,6 +47,12 @@
|
|||||||
#define PATH_MAX 256 /* according to my /usr/include/bits/posix1_lim.h */
|
#define PATH_MAX 256 /* according to my /usr/include/bits/posix1_lim.h */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if OPENSSL_VERSION_MAJOR >= 3
|
||||||
|
#define WSK void **
|
||||||
|
#else
|
||||||
|
#define WSK void *
|
||||||
|
#endif
|
||||||
|
|
||||||
static SSL_CTX *context = NULL;
|
static SSL_CTX *context = NULL;
|
||||||
int socket_SSL_ex_data_idx = -1;
|
int socket_SSL_ex_data_idx = -1;
|
||||||
|
|
||||||
@ -55,7 +61,7 @@ int socket_SSL_ex_data_idx = -1;
|
|||||||
* either. */
|
* either. */
|
||||||
static int
|
static int
|
||||||
socket_SSL_ex_data_dup(CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from,
|
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)
|
/* The documentation of from_d in RSA_get_ex_new_index(3)
|
||||||
* is a bit unclear. The caller does something like:
|
* is a bit unclear. The caller does something like:
|
||||||
|
Loading…
Reference in New Issue
Block a user