mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-31 19:45:43 +00:00
Replace EVP_PKEY_cmp with EVP_PKEY_eq
EVP_PKEY_cmp was made obsolete in OpenSSL. The main reason is that the return value is not coherent with other *_cmp functions. So it was replaced by EVP_PKEY_eq, which does the same. Rename to avoid a deprecation warning on newer OpenSSL releases. Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
This commit is contained in:
parent
8a19611049
commit
58d375e5ea
@ -72,7 +72,11 @@ static int verify_pubkey(X509* cert, const char *key, size_t key_size)
|
||||
goto finish;
|
||||
}
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x30000000
|
||||
ret = EVP_PKEY_eq(orig_pubkey, cert_pubkey);
|
||||
#else
|
||||
ret = EVP_PKEY_cmp(orig_pubkey, cert_pubkey);
|
||||
#endif
|
||||
|
||||
if (ret == 1) {
|
||||
spice_debug("public keys match");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user