1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[ssl] Show OpenSSL version

This commit is contained in:
Witold Filipczyk 2021-12-31 15:22:07 +01:00
parent c019efba2c
commit 7935a4f2aa

View File

@ -77,6 +77,8 @@ socket_SSL_ex_data_dup(CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from,
return 1; /* allow SSL_dup() */ return 1; /* allow SSL_dup() */
} }
static char opensslversion[64];
static void static void
init_openssl(struct module *module) init_openssl(struct module *module)
{ {
@ -105,6 +107,8 @@ init_openssl(struct module *module)
NULL, NULL,
socket_SSL_ex_data_dup, socket_SSL_ex_data_dup,
NULL); NULL);
strncpy(opensslversion, SSLeay_version(OPENSSL_VERSION), 63);
module->name = opensslversion;
} }
static void static void