1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

Revert "[ssl] Test commit. Now there is no warning"

This reverts commit 2cf17a731f.
This commit is contained in:
Witold Filipczyk 2022-01-09 15:50:23 +01:00
parent 350c6a2cf0
commit 00bc37d8a4

View File

@ -55,7 +55,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)
void *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:
@ -66,7 +66,7 @@ socket_SSL_ex_data_dup(CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from,
*
* i.e., from_d always points to a pointer, even though
* it is just a void * in the prototype. */
struct socket *socket = *from_d;
struct socket *socket = *(void **) from_d;
assert(idx == socket_SSL_ex_data_idx);
if_assert_failed return 0;