]> git.ipfire.org Git - thirdparty/bind9.git/commit
cleanup: more consistent abbreviated DS digest type mnemonics
authorTony Finch <dot@dotat.at>
Wed, 2 Oct 2019 18:43:09 +0000 (19:43 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 10 Oct 2019 16:31:39 +0000 (12:31 -0400)
commitb770ea976d96fb089d88cc940782e97ffe83e05c
tree62c98f61d1b60151995e771cfb635542d8a23612
parent8c33b127412bb18b8b128ba9821ef633179dc998
cleanup: more consistent abbreviated DS digest type mnemonics

BIND supports the non-standard DNSKEY algorithm mnemonic ECDSA256
everywhere ECDSAP256SHA256 is allowed, and allows algorithm numbers
interchangeably with mnemonics. This is all done in one place by the
dns_secalg_fromtext() function.

DS digest types were less consistent: the rdata parser does not allow
abbreviations like SHA1, but the dnssec-* command line tools do; and
the command line tools do not alow numeric types though that is the
norm in rdata.

The command line tools now use the dns_dsdigest_fromtext() function
instead of rolling their own variant, and dns_dsdigest_fromtext() now
knows about abbreviated digest type mnemonics.
bin/dnssec/dnssectool.c
lib/dns/rcode.c