# HG changeset patch # User Rosen Penev # Date 1556985637 0 # Node ID 8588b5fd084a794853981f92c52abc6aedb65df2 # Parent bf83410db8753d3aebe49546e72829231cebdd6e Fix compilation without deprecated OpenSSL 1.1 APIs committer: mcabber diff -r bf83410db875 -r 8588b5fd084a loudmouth/lm-ssl-openssl.c --- a/loudmouth/lm-ssl-openssl.c Sat Oct 13 10:58:32 2018 +0200 +++ b/loudmouth/lm-ssl-openssl.c Sat May 04 16:00:37 2019 +0000 @@ -362,9 +362,11 @@ /*const char *cert_file = NULL;*/ if (!initialized) { +#if OPENSSL_VERSION_NUMBER < 0x10100000L SSL_library_init(); /* FIXME: Is this needed when we are not in debug? */ SSL_load_error_strings(); +#endif initialized = TRUE; }