]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence a spurious warning during key generation
authorEvan Hunt <each@isc.org>
Tue, 7 Feb 2023 20:37:25 +0000 (12:37 -0800)
committerEvan Hunt <each@isc.org>
Tue, 7 Feb 2023 20:37:47 +0000 (12:37 -0800)
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

index c6a4034962fce3d84f2b8fc5f9080fc6a5b0969f..f92d3bbe635bb466bbc606c27110e403706d54dc 100644 (file)
@@ -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;
                        }