From: W.C.A. Wijngaards Date: Mon, 8 Feb 2016 15:35:03 +0000 (+0100) Subject: RR type CSYNC support. X-Git-Tag: release-1.7.0-rc1~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc7fefbd8a3740c6400e1115adf2feeeef751376;p=thirdparty%2Fldns.git RR type CSYNC support. --- diff --git a/ldns/rr.h b/ldns/rr.h index dbbed1a6..a3a79a0b 100644 --- a/ldns/rr.h +++ b/ldns/rr.h @@ -180,6 +180,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_HIP = 55, /* RFC 5205 */ @@ -193,6 +194,7 @@ enum ldns_enum_rr_type LDNS_RR_TYPE_CDNSKEY = 60, /* RFC 7344 */ /** draft-ietf-dane-openpgpkey */ LDNS_RR_TYPE_OPENPGPKEY = 61, + LDNS_RR_TYPE_CSYNC = 62, /* RFC 7477 */ LDNS_RR_TYPE_SPF = 99, /* RFC 4408 */ diff --git a/rr.c b/rr.c index 3cb2ee26..d239b02e 100644 --- a/rr.c +++ b/rr.c @@ -1943,6 +1943,9 @@ static const ldns_rdf_type type_talink_wireformat[] = { /*@unused@*/ static const ldns_rdf_type type_openpgpkey_wireformat[] = { LDNS_RDF_TYPE_B64 }; +static const ldns_rdf_type type_csync_wireformat[] = { + LDNS_RDF_TYPE_INT32, LDNS_RDF_TYPE_INT16, LDNS_RDF_TYPE_NSEC +}; /* 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*/ @@ -2174,7 +2177,7 @@ static ldns_rr_descriptor rdata_field_descriptors[] = { {LDNS_RR_TYPE_NULL, "TYPE61", 1, 1, type_0_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 }, #endif -{LDNS_RR_TYPE_NULL, "TYPE62", 1, 1, type_0_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 }, +{LDNS_RR_TYPE_CSYNC, "CSYNC", 3, 3, type_csync_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 },