Skip to content

Commit 12de863

Browse files
committed
Make the libcrypto detection fail the newer API.
OpenSSL 1.1 makes ECDSA_SIG opaque and our tests need access inside this object. The comparison tests against OpenSSL aren't important for most users, but the build failing is...
1 parent 2928420 commit 12de863

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build-aux/m4/bitcoin_secp.m4

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ if test x"$has_libcrypto" = x"yes" && test x"$has_openssl_ec" = x; then
4646
ECDSA_sign(0, NULL, 0, NULL, NULL, eckey);
4747
ECDSA_verify(0, NULL, 0, NULL, 0, eckey);
4848
EC_KEY_free(eckey);
49+
ECDSA_SIG *sig_openssl;
50+
sig_openssl = ECDSA_SIG_new();
51+
(void)sig_openssl->r;
52+
ECDSA_SIG_free(sig_openssl);
4953
]])],[has_openssl_ec=yes],[has_openssl_ec=no])
5054
AC_MSG_RESULT([$has_openssl_ec])
5155
fi

0 commit comments

Comments
 (0)