]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
configure: Improved checking if OpenSSL is too old for lib-dcrypt
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 22 Oct 2016 09:58:40 +0000 (12:58 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 22 Oct 2016 09:58:40 +0000 (12:58 +0300)
Some OpenSSL versions had EC_KEY_new, but not other needed functions.

configure.ac

index 75e34f3ef5defedc3626fe44228f32f57ba23ab4..12d2156805b207e7e06f486d8d58cbbaec11e11b 100644 (file)
@@ -1716,7 +1716,7 @@ if test $want_openssl != no && test $have_ssl = no; then
     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)
-    AC_CHECK_LIB(ssl, [EC_KEY_new],
+    AC_CHECK_LIB(ssl, [EVP_PKEY_CTX_set_ec_paramgen_curve_nid],
        [build_dcrypt_openssl="yes"],
        AC_MSG_WARN([No ECC support in OpenSSL - not enabling dcrypt]),
     $SSL_LIBS)