commit - 2924b3d52ac2ab89e3bc517a1f664ec056a45edd
commit + daa88b765111b14047c97256bd2a9a2daabe123b
blob - 34094a485180cc9874085daf4d45a2b8ae31aefb
blob + 56139968ff01e7e56d226081dc0c594852462010
--- configure.ng
+++ configure.ng
LDFLAGS="-L$withval/lib $LDFLAGS"
fi
AC_CHECK_LIB(crypto, BIO_s_mem)
- AC_CHECK_LIB(ssl, SSL_library_init)
- AC_CHECK_FUNCS(SSL_library_init, x_ssl_openssl=yes,
+ AC_CHECK_LIB(ssl, SSL_new)
+ AC_CHECK_FUNCS(SSL_new, x_ssl_openssl=yes,
AC_MSG_ERROR([Can't enable openssl])
)
fi
blob - 2cb734d4c7378439065e552ff6c999b0b85e7ddf
blob + 705c29d5baf855d2954b884a42feaf480b5cec1c
--- src/ngircd/conn-ssl.c
+++ src/ngircd/conn-ssl.c
#ifdef HAVE_LIBSSL
SSL_CTX *newctx;
+#if OPENSSL_API_COMPAT < 0x10100000L
if (!ssl_ctx) {
SSL_library_init();
SSL_load_error_strings();
}
+#endif
if (!RAND_status()) {
Log(LOG_ERR, "OpenSSL PRNG not seeded: /dev/urandom missing?");