From 532a47ce1e67f6a7f8d5b1ff1031fe7fecc546e1 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Mon, 14 Nov 2016 02:17:51 +0300 Subject: [PATCH] test: fix building under openssl 1.1 (init functions has been deprecated) Refs: #397 --- test/regress_ssl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/regress_ssl.c b/test/regress_ssl.c index 2cec5a90..8a5524a8 100644 --- a/test/regress_ssl.c +++ b/test/regress_ssl.c @@ -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 } /* ====================