diff options
Diffstat (limited to 'src/pubkey.cpp')
-rw-r--r-- | src/pubkey.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pubkey.cpp b/src/pubkey.cpp index 59b73f9..9e89cde 100644 --- a/src/pubkey.cpp +++ b/src/pubkey.cpp @@ -108,7 +108,7 @@ optional<SecretKey> SecretKey::fromData(const Stored<PublicKey> & pub, const vec keyData.resize(keyLen); EVP_PKEY_get_raw_public_key(pub->key.get(), keyData.data(), &keyLen); - if (EVP_PKEY_cmp(pkey.get(), pub->key.get()) != 1) + if( EVP_PKEY_eq( pkey.get(), pub->key.get() ) != 1 ) return nullopt; pub.ref().storage().storeKey(pub.ref(), sdata); |