Browse Source

Use IANA normative names for DS hash algorithms

main
Lucas 5 months ago
parent
commit
36cfe2abe1
  1. 19
      util.c

19
util.c

@ -23,10 +23,14 @@ @@ -23,10 +23,14 @@
#define MINIMUM_LDNS_REVISION ((1<<16)|(7<<8)|(1))
ldns_lookup_table ldnssec_hashes[] = {
{ LDNS_SHA1, "SHA1" },
{ LDNS_SHA256, "SHA256" },
{ LDNS_HASH_GOST, "GOST" },
{ LDNS_SHA384, "SHA384" },
/*
* Normative names from DS-IANA:
* https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml
*/
{ LDNS_SHA1, "SHA-1" },
{ LDNS_SHA256, "SHA-256" },
{ LDNS_HASH_GOST, "GOST R 34.11-94" },
{ LDNS_SHA384, "SHA-384" },
{ 0, NULL },
};
@ -34,9 +38,10 @@ ldns_hash @@ -34,9 +38,10 @@ ldns_hash
ldnssec_get_hash_algorithm_by_name(const char *name)
{
static ldns_lookup_table aliases[] = {
{ LDNS_SHA1, "SHA-1" },
{ LDNS_SHA256, "SHA-256" },
{ LDNS_SHA384, "SHA-384" },
{ LDNS_SHA1, "SHA1" },
{ LDNS_SHA256, "SHA256" },
{ LDNS_HASH_GOST, "GOST" },
{ LDNS_SHA384, "SHA384" },
{ 0, NULL },
};
ldns_lookup_table *lt;

Loading…
Cancel
Save