Fix compilation without deprecated OpenSSL 1.1 APIs
authorRosen Penev <rosenp@gmail.com>
Sat, 04 May 2019 16:00:37 +0000
changeset 732 8588b5fd084a
parent 731 bf83410db875
child 733 3a3f9df8b9fd
Fix compilation without deprecated OpenSSL 1.1 APIs committer: mcabber <lm@freakysoft.de>
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;
     }