mirror of
https://github.com/cygnusxi/CurecoinSource.git
synced 2025-07-27 07:34:41 +02:00
Add openssl 1.0 ECDSA_SIG_get0
This commit is contained in:
parent
130e36d4ed
commit
d99365b387
10
src/key.h
10
src/key.h
@ -38,6 +38,16 @@
|
||||
// see www.keylength.com
|
||||
// script supports up to 75 for single byte push
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER < 0x1010000
|
||||
void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps)
|
||||
{
|
||||
if (pr != NULL)
|
||||
*pr = sig->r;
|
||||
if (ps != NULL)
|
||||
*ps = sig->s;
|
||||
}
|
||||
#endif
|
||||
|
||||
class key_error : public std::runtime_error
|
||||
{
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user