Avoid calling deprecated and unnecessary library initialization functions with openssl >= 1.1.0. Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
15 lines
327 B
Diff
15 lines
327 B
Diff
--- a/src/tls.c
|
|
+++ b/src/tls.c
|
|
@@ -63,10 +63,12 @@ static inline int tls_setup(shout_tls_t
|
|
{
|
|
SSL_METHOD *meth;
|
|
|
|
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
SSL_library_init();
|
|
SSL_load_error_strings();
|
|
SSLeay_add_all_algorithms();
|
|
SSLeay_add_ssl_algorithms();
|
|
+#endif
|
|
|
|
meth = TLSv1_client_method();
|
|
if (!meth)
|