aboutsummaryrefslogtreecommitdiff
path: root/lib/dns/rdata/generic/caa_257.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dns/rdata/generic/caa_257.c')
-rw-r--r--lib/dns/rdata/generic/caa_257.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/dns/rdata/generic/caa_257.c b/lib/dns/rdata/generic/caa_257.c
index 993e3267e623..648f4afdc3b6 100644
--- a/lib/dns/rdata/generic/caa_257.c
+++ b/lib/dns/rdata/generic/caa_257.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -45,7 +45,7 @@ fromtext_caa(ARGS_FROMTEXT) {
isc_uint8_t flags;
unsigned int i;
- REQUIRE(type == 257);
+ REQUIRE(type == dns_rdatatype_caa);
UNUSED(type);
UNUSED(rdclass);
@@ -68,7 +68,7 @@ fromtext_caa(ARGS_FROMTEXT) {
ISC_FALSE));
tr = token.value.as_textregion;
for (i = 0; i < tr.length; i++)
- if (!alphanumeric[(unsigned int) tr.base[i]])
+ if (!alphanumeric[(unsigned char) tr.base[i]])
RETTOK(DNS_R_SYNTAX);
RETERR(uint8_tobuffer(tr.length, target));
RETERR(mem_tobuffer(target, tr.base, tr.length));
@@ -93,7 +93,7 @@ totext_caa(ARGS_TOTEXT) {
UNUSED(tctx);
- REQUIRE(rdata->type == 257);
+ REQUIRE(rdata->type == dns_rdatatype_caa);
REQUIRE(rdata->length >= 3U);
REQUIRE(rdata->data != NULL);
@@ -124,7 +124,7 @@ fromwire_caa(ARGS_FROMWIRE) {
isc_region_t sr;
unsigned int len, i;
- REQUIRE(type == 257);
+ REQUIRE(type == dns_rdatatype_caa);
UNUSED(type);
UNUSED(rdclass);
@@ -167,7 +167,7 @@ static inline isc_result_t
towire_caa(ARGS_TOWIRE) {
isc_region_t region;
- REQUIRE(rdata->type == 257);
+ REQUIRE(rdata->type == dns_rdatatype_caa);
REQUIRE(rdata->length >= 3U);
REQUIRE(rdata->data != NULL);
@@ -183,7 +183,7 @@ compare_caa(ARGS_COMPARE) {
REQUIRE(rdata1->type == rdata2->type);
REQUIRE(rdata1->rdclass == rdata2->rdclass);
- REQUIRE(rdata1->type == 257);
+ REQUIRE(rdata1->type == dns_rdatatype_caa);
REQUIRE(rdata1->length >= 3U);
REQUIRE(rdata2->length >= 3U);
REQUIRE(rdata1->data != NULL);
@@ -200,7 +200,7 @@ fromstruct_caa(ARGS_FROMSTRUCT) {
isc_region_t region;
unsigned int i;
- REQUIRE(type == 257);
+ REQUIRE(type == dns_rdatatype_caa);
REQUIRE(source != NULL);
REQUIRE(caa->common.rdtype == type);
REQUIRE(caa->common.rdclass == rdclass);
@@ -243,7 +243,7 @@ tostruct_caa(ARGS_TOSTRUCT) {
dns_rdata_caa_t *caa = target;
isc_region_t sr;
- REQUIRE(rdata->type == 257);
+ REQUIRE(rdata->type == dns_rdatatype_caa);
REQUIRE(target != NULL);
REQUIRE(rdata->length >= 3U);
REQUIRE(rdata->data != NULL);
@@ -297,7 +297,7 @@ freestruct_caa(ARGS_FREESTRUCT) {
dns_rdata_caa_t *caa = (dns_rdata_caa_t *) source;
REQUIRE(source != NULL);
- REQUIRE(caa->common.rdtype == 257);
+ REQUIRE(caa->common.rdtype == dns_rdatatype_caa);
if (caa->mctx == NULL)
return;
@@ -311,7 +311,7 @@ freestruct_caa(ARGS_FREESTRUCT) {
static inline isc_result_t
additionaldata_caa(ARGS_ADDLDATA) {
- REQUIRE(rdata->type == 257);
+ REQUIRE(rdata->type == dns_rdatatype_caa);
REQUIRE(rdata->data != NULL);
REQUIRE(rdata->length >= 3U);
@@ -326,7 +326,7 @@ static inline isc_result_t
digest_caa(ARGS_DIGEST) {
isc_region_t r;
- REQUIRE(rdata->type == 257);
+ REQUIRE(rdata->type == dns_rdatatype_caa);
REQUIRE(rdata->data != NULL);
REQUIRE(rdata->length >= 3U);
@@ -338,7 +338,7 @@ digest_caa(ARGS_DIGEST) {
static inline isc_boolean_t
checkowner_caa(ARGS_CHECKOWNER) {
- REQUIRE(type == 257);
+ REQUIRE(type == dns_rdatatype_caa);
UNUSED(name);
UNUSED(type);
@@ -351,7 +351,7 @@ checkowner_caa(ARGS_CHECKOWNER) {
static inline isc_boolean_t
checknames_caa(ARGS_CHECKNAMES) {
- REQUIRE(rdata->type == 257);
+ REQUIRE(rdata->type == dns_rdatatype_caa);
REQUIRE(rdata->data != NULL);
REQUIRE(rdata->length >= 3U);