aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhyc <hyc@symas.com>2017-04-12 23:56:23 +0100
committerhyc <hyc@symas.com>2017-04-12 23:56:23 +0100
commit5e5b8512d6797db10ce215ca18cf64e0449d0f38 (patch)
tree8c70df7130ebb01a969a5612e63bf25f26c04804
parentFix Android recognition (diff)
downloadmonero-5e5b8512d6797db10ce215ca18cf64e0449d0f38.tar.xz
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.
-rw-r--r--external/unbound/validator/val_secalgo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/external/unbound/validator/val_secalgo.c b/external/unbound/validator/val_secalgo.c
index 7c8d7b287..256c3ff92 100644
--- a/external/unbound/validator/val_secalgo.c
+++ b/external/unbound/validator/val_secalgo.c
@@ -345,7 +345,11 @@ setup_key_digest(int algo, EVP_PKEY** evp_key, const EVP_MD** digest_type,
"EVP_PKEY_assign_DSA failed");
return 0;
}
+#ifdef HAVE_EVP_DSS1
*digest_type = EVP_dss1();
+#else
+ *digest_type = EVP_sha1();
+#endif
break;
case LDNS_RSASHA1: