mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-10 05:03:26 +01:00
Fix obsolete OpenSSL API usage
EVP_dss1() was deprecated and EVP_sha1() is the direct replacement. Upstream libunbound already has this patch. Note that I haven't added a test for HAVE_EVP_DSS1 since that was deprecated quite a long time ago in OpenSSL, there's really no reason to support it.
This commit is contained in:
parent
6c72d6a058
commit
5e5b8512d6
4
external/unbound/validator/val_secalgo.c
vendored
4
external/unbound/validator/val_secalgo.c
vendored
@ -345,7 +345,11 @@ setup_key_digest(int algo, EVP_PKEY** evp_key, const EVP_MD** digest_type,
|
|||||||
"EVP_PKEY_assign_DSA failed");
|
"EVP_PKEY_assign_DSA failed");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#ifdef HAVE_EVP_DSS1
|
||||||
*digest_type = EVP_dss1();
|
*digest_type = EVP_dss1();
|
||||||
|
#else
|
||||||
|
*digest_type = EVP_sha1();
|
||||||
|
#endif
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case LDNS_RSASHA1:
|
case LDNS_RSASHA1:
|
||||||
|
Loading…
Reference in New Issue
Block a user