From 82503bec99307c265034c6d3aa1b9b2903627751 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. --- lib/dns/dnssec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns/dnssec.c b/lib/dns/dnssec.c index c6a4034962..f92d3bbe63 100644 --- a/lib/dns/dnssec.c +++ b/lib/dns/dnssec.c @@ -1487,6 +1487,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; }