From bc3be6dc29ea63289c1e6c75c57eefe3df0ce8e3 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Tue, 7 Feb 2023 12:37:25 -0800 Subject: [PATCH] silence a spurious warning during key generation when generating a key, if a DH key already existed for the same name, a spurious warning message was generated saying "bad key type". this is fixed. (cherry picked from commit 82503bec99307c265034c6d3aa1b9b2903627751) --- lib/dns/dnssec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns/dnssec.c b/lib/dns/dnssec.c index 97003a9afa..b59ac6a16e 100644 --- a/lib/dns/dnssec.c +++ b/lib/dns/dnssec.c @@ -1489,6 +1489,7 @@ dns_dnssec_findmatchingkeys(const dns_name_t *origin, const char *directory, case DST_ALG_HMACSHA256: case DST_ALG_HMACSHA384: case DST_ALG_HMACSHA512: + case DST_ALG_DH: if (result == DST_R_BADKEYTYPE) { continue; }