From bb2f021704f06909952dfcae45c212b1a496189a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sun, 13 Oct 2024 21:29:01 +0200 Subject: Update to OpenSSL 3.0 API Changelog: Require OpenSSL 3.0 or newer --- src/pubkey.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pubkey.cpp') 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::fromData(const Stored & 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); -- cgit v1.2.3