aboutsummaryrefslogtreecommitdiff
path: root/src/key.h
diff options
context:
space:
mode:
authorAndrew Poelstra <asp11@sfu.ca>2014-06-02 16:21:03 -0700
committerWladimir J. van der Laan <laanwj@gmail.com>2014-08-18 15:34:29 +0200
commitf6f4c83382665df656f3f0d8bcb55831a354d45c (patch)
tree609ecad67c93c5f627140f14cb5aa018c2706ae7 /src/key.h
parent23826316d4eb6a1930c91b097b07905edf79a3e5 (diff)
downloadbitcoin-f6f4c83382665df656f3f0d8bcb55831a354d45c.tar.xz
key.cpp: fail with a friendlier message on missing ssl EC support
Previously if bitcoind is linked with an OpenSSL which is compiled without EC support, this is seen as an assertion failure "pKey != NULL" at key.cpp:134, which occurs after several seconds. It is an esoteric piece of knowledge to interpret this as "oops, I linked with the wrong OpenSSL", and because of the delay it may not even be noticed. The new output is : OpenSSL appears to lack support for elliptic curve cryptography. For more information, visit https://en.bitcoin.it/wiki/OpenSSL_and_EC_Libraries : Initialization sanity check failed. Bitcoin Core is shutting down. which occurs immediately after attempted startup. This also blocks in an InitSanityCheck() function which currently only checks for EC support but should eventually do more. See #4081. Rebased-From: 4a09e1d
Diffstat (limited to 'src/key.h')
-rw-r--r--src/key.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/key.h b/src/key.h
index cf1165d3d0..67206ba914 100644
--- a/src/key.h
+++ b/src/key.h
@@ -307,4 +307,7 @@ struct CExtKey {
void SetMaster(const unsigned char *seed, unsigned int nSeedLen);
};
+/** Check that required EC support is available at runtime */
+bool ECC_InitSanityCheck(void);
+
#endif