diff options
Diffstat (limited to 'testcode/streamtcp.c')
-rw-r--r-- | testcode/streamtcp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testcode/streamtcp.c b/testcode/streamtcp.c index f5eb8fc48b1da..b494507def265 100644 --- a/testcode/streamtcp.c +++ b/testcode/streamtcp.c @@ -410,7 +410,9 @@ int main(int argc, char** argv) return 1; } if(usessl) { +#if OPENSSL_VERSION_NUMBER < 0x10100000 || !defined(HAVE_OPENSSL_INIT_SSL) ERR_load_SSL_strings(); +#endif #if OPENSSL_VERSION_NUMBER < 0x10100000 || !defined(HAVE_OPENSSL_INIT_CRYPTO) OpenSSL_add_all_algorithms(); #else @@ -421,7 +423,7 @@ int main(int argc, char** argv) #if OPENSSL_VERSION_NUMBER < 0x10100000 || !defined(HAVE_OPENSSL_INIT_SSL) (void)SSL_library_init(); #else - (void)OPENSSL_init_ssl(0, NULL); + (void)OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS, NULL); #endif } send_em(svr, udp, usessl, noanswer, argc, argv); |