mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00: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
1 changed files with 4 additions and 0 deletions
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 a new issue