Commit 0a1dd0cf authored by Philipp Schafft's avatar Philipp Schafft
Browse files

Update: Do not run SSL_library_init() et al if OpenSSL is too new

parent 0697e5d6
...@@ -88,10 +88,12 @@ static inline int tls_setup(shout_tls_t *tls) ...@@ -88,10 +88,12 @@ static inline int tls_setup(shout_tls_t *tls)
{ {
SSL_METHOD *meth; SSL_METHOD *meth;
#if OPENSSL_VERSION_NUMBER < 0x10100000L
SSL_library_init(); SSL_library_init();
SSL_load_error_strings(); SSL_load_error_strings();
SSLeay_add_all_algorithms(); SSLeay_add_all_algorithms();
SSLeay_add_ssl_algorithms(); SSLeay_add_ssl_algorithms();
#endif
meth = TLSv1_client_method(); meth = TLSv1_client_method();
if (!meth) if (!meth)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment