test: fix building under openssl 1.1 (init functions has been deprecated)

Refs: #397
This commit is contained in:
Azat Khuzhin 2016-11-14 02:17:51 +03:00
parent 122bf144cf
commit 532a47ce1e

View File

@ -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
}
/* ====================