]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
RR type CSYNC support.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 8 Feb 2016 15:35:03 +0000 (16:35 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 8 Feb 2016 15:35:03 +0000 (16:35 +0100)
ldns/rr.h
rr.c

index dbbed1a65d60a14b6f57b1f78d0e234ee1c49fc9..a3a79a0bf5187298afbb79dced857820600b7a70 100644 (file)
--- 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 3cb2ee269ff8210505217e59dfcfade74da534fe..d239b02e7537e39d559e0678106f8a7deee72268 100644 (file)
--- 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 },