mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
test: fix building under openssl 1.1 (init functions has been deprecated)
Refs: #397
This commit is contained in:
parent
122bf144cf
commit
532a47ce1e
@ -186,6 +186,7 @@ get_ssl_ctx(void)
|
||||
void
|
||||
init_ssl(void)
|
||||
{
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
SSL_library_init();
|
||||
ERR_load_crypto_strings();
|
||||
SSL_load_error_strings();
|
||||
@ -193,6 +194,7 @@ init_ssl(void)
|
||||
if (SSLeay() != OPENSSL_VERSION_NUMBER) {
|
||||
TT_DECLARE("WARN", ("Version mismatch for openssl: compiled with %lx but running with %lx", (unsigned long)OPENSSL_VERSION_NUMBER, (unsigned long) SSLeay()));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/* ====================
|
||||
|
Loading…
x
Reference in New Issue
Block a user