summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Toorop <willem@nlnetlabs.nl>2019-01-17 11:51:48 +0100
committerWillem Toorop <willem@nlnetlabs.nl>2019-01-17 11:51:48 +0100
commit4f8c53b0072cc8aa850175621b2c4bd0bd754f1c (patch)
tree28e666e762383154ee21df3a1b4291d06ea510c5
parent9829147582f66ab78b2035c1485c16cebe897477 (diff)
downloadldns-4f8c53b0072cc8aa850175621b2c4bd0bd754f1c.tar.gz
ZONEMD
-rw-r--r--ldns/rr.h3
-rw-r--r--rr.c6
2 files changed, 8 insertions, 1 deletions
diff --git a/ldns/rr.h b/ldns/rr.h
index 59c7ce67..5039d73c 100644
--- a/ldns/rr.h
+++ b/ldns/rr.h
@@ -177,7 +177,7 @@ enum ldns_enum_rr_type
LDNS_RR_TYPE_NSEC3PARAM = 51, /* RFC 5155 */
LDNS_RR_TYPE_NSEC3PARAMS = 51,
LDNS_RR_TYPE_TLSA = 52, /* RFC 6698 */
- LDNS_RR_TYPE_SMIMEA = 53, /* draft-ietf-dane-smime */
+ LDNS_RR_TYPE_SMIMEA = 53, /* RFC 8162 */
LDNS_RR_TYPE_HIP = 55, /* RFC 5205 */
@@ -191,6 +191,7 @@ enum ldns_enum_rr_type
LDNS_RR_TYPE_CDNSKEY = 60, /* RFC 7344 */
LDNS_RR_TYPE_OPENPGPKEY = 61, /* RFC 7929 */
LDNS_RR_TYPE_CSYNC = 62, /* RFC 7477 */
+ LDNS_RR_TYPE_ZONEMD = 63, /* draft-wessels-dns-zone-digest */
LDNS_RR_TYPE_SPF = 99, /* RFC 4408 */
diff --git a/rr.c b/rr.c
index 7d74fea4..e7b54b9d 100644
--- a/rr.c
+++ b/rr.c
@@ -1959,6 +1959,11 @@ static const ldns_rdf_type type_openpgpkey_wireformat[] = {
static const ldns_rdf_type type_csync_wireformat[] = {
LDNS_RDF_TYPE_INT32, LDNS_RDF_TYPE_INT16, LDNS_RDF_TYPE_NSEC
};
+static const ldns_rdf_type type_zonemd_wireformat[] = {
+ LDNS_RDF_TYPE_INT32,
+ LDNS_RDF_TYPE_INT8, LDNS_RDF_TYPE_INT8, LDNS_RDF_TYPE_HEX
+};
+
/* nsec3 is some vars, followed by same type of data of nsec */
static const ldns_rdf_type type_nsec3_wireformat[] = {
/* LDNS_RDF_TYPE_NSEC3_VARS, LDNS_RDF_TYPE_NSEC3_NEXT_OWNER, LDNS_RDF_TYPE_NSEC*/
@@ -2201,6 +2206,7 @@ static ldns_rr_descriptor rdata_field_descriptors[] = {
#endif
{LDNS_RR_TYPE_CSYNC, "CSYNC", 3, 3, type_csync_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 },
+{LDNS_RR_TYPE_ZONEMD, "ZONEMD", 4, 4, type_zonemd_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 },
{LDNS_RR_TYPE_NULL, "TYPE63", 1, 1, type_0_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 },
{LDNS_RR_TYPE_NULL, "TYPE64", 1, 1, type_0_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 },
{LDNS_RR_TYPE_NULL, "TYPE65", 1, 1, type_0_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 },