]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
configure: Detect SSL_COMP_free_compression_methods() by linking
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 28 Jun 2016 21:37:09 +0000 (00:37 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 29 Jun 2016 15:35:52 +0000 (18:35 +0300)
Fixes using libressl.

configure.ac
src/lib-ssl-iostream/dovecot-openssl-common.c

index 39b0c86abe5dada018c22364d59ba15f8e0faeb0..e3283d0ee3968be38dc81b3b0187f5eb852c1366 100644 (file)
@@ -1692,6 +1692,9 @@ if test $want_openssl != no && test $have_ssl = no; then
     AC_CHECK_LIB(ssl, SSL_get_servername, [
       AC_DEFINE(HAVE_SSL_GET_SERVERNAME,, [Build with TLS hostname support])
     ],, $SSL_LIBS)
+    AC_CHECK_LIB(ssl, SSL_COMP_free_compression_methods, [
+      AC_DEFINE(HAVE_SSL_COMP_FREE_COMPRESSION_METHODS,, [Build with SSL_COMP_free_compression_methods() support])
+    ],, $SSL_LIBS)
   fi
 fi
 AM_CONDITIONAL(BUILD_OPENSSL, test "$have_openssl" = "yes")
index 2e1b8a03c3305edeadfc6eb7a4ddacaa3e1e053b..8e54ec74451b8b1badd4fcdf71d7ecadfa04faee 100644 (file)
@@ -71,7 +71,7 @@ bool dovecot_openssl_common_global_unref(void)
 #if OPENSSL_VERSION_NUMBER < 0x10001000L
        OBJ_cleanup();
 #endif
-#if OPENSSL_VERSION_NUMBER >= 0x10002000L
+#ifdef HAVE_SSL_COMP_FREE_COMPRESSION_METHODS
        SSL_COMP_free_compression_methods();
 #endif
        ENGINE_cleanup();