fix bug converting 'null' private key to variant
This commit is contained in:
parent
a1c8138b38
commit
154a8ab628
1 changed files with 5 additions and 0 deletions
|
|
@ -299,6 +299,11 @@ struct ssl_bignum
|
|||
|
||||
fc::sha256 private_key::get_secret()const
|
||||
{
|
||||
if( !my->_key )
|
||||
{
|
||||
return fc::sha256();
|
||||
}
|
||||
|
||||
fc::sha256 sec;
|
||||
const BIGNUM* bn = EC_KEY_get0_private_key(my->_key);
|
||||
if( bn == NULL )
|
||||
|
|
|
|||
Loading…
Reference in a new issue