summaryrefslogtreecommitdiff
path: root/rr.c
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 /rr.c
parent9829147582f66ab78b2035c1485c16cebe897477 (diff)
downloadldns-4f8c53b0072cc8aa850175621b2c4bd0bd754f1c.tar.gz
ZONEMD
Diffstat (limited to 'rr.c')
-rw-r--r--rr.c6
1 files changed, 6 insertions, 0 deletions
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 },