Skip to content

Commit

Permalink
configure: Improved checking if OpenSSL is too old for lib-dcrypt
Browse files Browse the repository at this point in the history
Some OpenSSL versions had EC_KEY_new, but not other needed functions.
  • Loading branch information
sirainen committed Oct 22, 2016
1 parent 85e2e56 commit d6c1b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -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)
Expand Down

0 comments on commit d6c1b8c

Please sign in to comment.