diff options
Diffstat (limited to 'lib/dns/rdata/generic/cert_37.c')
-rw-r--r-- | lib/dns/rdata/generic/cert_37.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/dns/rdata/generic/cert_37.c b/lib/dns/rdata/generic/cert_37.c index a03290a60a02..b9c171d6c392 100644 --- a/lib/dns/rdata/generic/cert_37.c +++ b/lib/dns/rdata/generic/cert_37.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004, 2005, 2007, 2009, 2011, 2012 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004, 2005, 2007, 2009, 2011, 2012, 2015 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1999-2003 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -32,7 +32,7 @@ fromtext_cert(ARGS_FROMTEXT) { dns_secalg_t secalg; dns_cert_t cert; - REQUIRE(type == 37); + REQUIRE(type == dns_rdatatype_cert); UNUSED(type); UNUSED(rdclass); @@ -74,7 +74,7 @@ totext_cert(ARGS_TOTEXT) { char buf[sizeof("64000 ")]; unsigned int n; - REQUIRE(rdata->type == 37); + REQUIRE(rdata->type == dns_rdatatype_cert); REQUIRE(rdata->length != 0); UNUSED(tctx); @@ -123,7 +123,7 @@ static inline isc_result_t fromwire_cert(ARGS_FROMWIRE) { isc_region_t sr; - REQUIRE(type == 37); + REQUIRE(type == dns_rdatatype_cert); UNUSED(type); UNUSED(rdclass); @@ -142,7 +142,7 @@ static inline isc_result_t towire_cert(ARGS_TOWIRE) { isc_region_t sr; - REQUIRE(rdata->type == 37); + REQUIRE(rdata->type == dns_rdatatype_cert); REQUIRE(rdata->length != 0); UNUSED(cctx); @@ -158,7 +158,7 @@ compare_cert(ARGS_COMPARE) { REQUIRE(rdata1->type == rdata2->type); REQUIRE(rdata1->rdclass == rdata2->rdclass); - REQUIRE(rdata1->type == 37); + REQUIRE(rdata1->type == dns_rdatatype_cert); REQUIRE(rdata1->length != 0); REQUIRE(rdata2->length != 0); @@ -171,7 +171,7 @@ static inline isc_result_t fromstruct_cert(ARGS_FROMSTRUCT) { dns_rdata_cert_t *cert = source; - REQUIRE(type == 37); + REQUIRE(type == dns_rdatatype_cert); REQUIRE(source != NULL); REQUIRE(cert->common.rdtype == type); REQUIRE(cert->common.rdclass == rdclass); @@ -191,7 +191,7 @@ tostruct_cert(ARGS_TOSTRUCT) { dns_rdata_cert_t *cert = target; isc_region_t region; - REQUIRE(rdata->type == 37); + REQUIRE(rdata->type == dns_rdatatype_cert); REQUIRE(target != NULL); REQUIRE(rdata->length != 0); @@ -222,7 +222,7 @@ freestruct_cert(ARGS_FREESTRUCT) { dns_rdata_cert_t *cert = source; REQUIRE(cert != NULL); - REQUIRE(cert->common.rdtype == 37); + REQUIRE(cert->common.rdtype == dns_rdatatype_cert); if (cert->mctx == NULL) return; @@ -234,7 +234,7 @@ freestruct_cert(ARGS_FREESTRUCT) { static inline isc_result_t additionaldata_cert(ARGS_ADDLDATA) { - REQUIRE(rdata->type == 37); + REQUIRE(rdata->type == dns_rdatatype_cert); UNUSED(rdata); UNUSED(add); @@ -247,7 +247,7 @@ static inline isc_result_t digest_cert(ARGS_DIGEST) { isc_region_t r; - REQUIRE(rdata->type == 37); + REQUIRE(rdata->type == dns_rdatatype_cert); dns_rdata_toregion(rdata, &r); @@ -257,7 +257,7 @@ digest_cert(ARGS_DIGEST) { static inline isc_boolean_t checkowner_cert(ARGS_CHECKOWNER) { - REQUIRE(type == 37); + REQUIRE(type == dns_rdatatype_cert); UNUSED(name); UNUSED(type); @@ -270,7 +270,7 @@ checkowner_cert(ARGS_CHECKOWNER) { static inline isc_boolean_t checknames_cert(ARGS_CHECKNAMES) { - REQUIRE(rdata->type == 37); + REQUIRE(rdata->type == dns_rdatatype_cert); UNUSED(rdata); UNUSED(owner); |