]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conf-ssl.h
Fix compilation without deprecated OpenSSL APIs (#252)
[ngircd-alex.git] / src / ngircd / conf-ssl.h
index c23737979a21e7043d1eed7ed488524b83742112..af715af8c7c1b773680b63f14890663962467623 100644 (file)
 #ifdef HAVE_LIBSSL
 #define SSL_SUPPORT
 #include <openssl/ssl.h>
 #ifdef HAVE_LIBSSL
 #define SSL_SUPPORT
 #include <openssl/ssl.h>
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#define OpenSSL_version SSLeay_version
+#define OPENSSL_VERSION SSLEAY_VERSION
+#endif
 #endif
 #ifdef HAVE_LIBGNUTLS
 #define SSL_SUPPORT
 #endif
 #ifdef HAVE_LIBGNUTLS
 #define SSL_SUPPORT