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:
hyc 2017-04-12 23:56:23 +01:00
parent 6c72d6a058
commit 5e5b8512d6

View File

@ -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: