Skip to content

Commit

Permalink
check for OpenSSL ecdsa support
Browse files Browse the repository at this point in the history
  • Loading branch information
mind04 committed May 11, 2016
1 parent af17de8 commit 4627ea0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion m4/ax_check_openssl.m4
Expand Up @@ -109,7 +109,20 @@ AC_DEFUN([AX_CHECK_OPENSSL], [
[AC_LANG_PROGRAM([#include <openssl/crypto.h>], [CRYPTO_free(NULL)])],
[
AC_MSG_RESULT([yes])
$1
openssl_ecdsa=yes
AC_CHECK_FUNC(ECDSA_do_sign,
[
AC_CHECK_DECLS([NID_X9_62_prime256v1, NID_secp384r1], [ : ], [ openssl_ecdsa=no ], [AC_INCLUDES_DEFAULT
#include <openssl/evp.h>
])
], [
openssl_ecdsa=no
])
AS_IF([test "x$openssl_ecdsa" = "xyes"], [
$1
], [
$2
])
], [
AC_MSG_RESULT([no])
$2
Expand Down

0 comments on commit 4627ea0

Please sign in to comment.