mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
test: allow to run init_ssl() multiple times
This commit is contained in:
parent
4ca417afa4
commit
a4cdc3c5e8
@ -150,6 +150,11 @@ get_ssl_ctx(void)
|
||||
void
|
||||
init_ssl(void)
|
||||
{
|
||||
static int initialized;
|
||||
if (initialized)
|
||||
return;
|
||||
initialized = 1;
|
||||
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || \
|
||||
(defined(LIBRESSL_VERSION_NUMBER) && \
|
||||
LIBRESSL_VERSION_NUMBER < 0x20700000L)
|
||||
|
Loading…
x
Reference in New Issue
Block a user