1999-02-04 01:06:40 +00:00
|
|
|
/*
|
2011-03-05 23:52:31 +00:00
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
1999-09-15 23:03:43 +00:00
|
|
|
*
|
1999-02-04 01:06:40 +00:00
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
2021-06-03 08:37:05 +02:00
|
|
|
*
|
1999-02-04 01:06:40 +00:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-02-23 09:53:12 +01:00
|
|
|
*
|
1999-02-04 01:06:40 +00:00
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
* information regarding copyright ownership.
|
|
|
|
*/
|
|
|
|
|
1999-05-05 00:19:04 +00:00
|
|
|
#ifndef RDATA_ANY_255_TSIG_250_C
|
|
|
|
#define RDATA_ANY_255_TSIG_250_C
|
2000-03-16 21:50:14 +00:00
|
|
|
|
2000-04-28 22:40:10 +00:00
|
|
|
#define RRTYPE_TSIG_ATTRIBUTES \
|
|
|
|
(DNS_RDATATYPEATTR_META | DNS_RDATATYPEATTR_NOTQUESTION)
|
2000-04-07 03:54:52 +00:00
|
|
|
|
2021-10-11 13:43:12 +02:00
|
|
|
static isc_result_t
|
2000-10-25 05:44:10 +00:00
|
|
|
fromtext_any_tsig(ARGS_FROMTEXT) {
|
1999-02-04 01:06:40 +00:00
|
|
|
isc_token_t token;
|
2018-03-28 14:19:37 +02:00
|
|
|
uint64_t sigtime;
|
1999-02-04 01:06:40 +00:00
|
|
|
isc_buffer_t buffer;
|
2000-05-25 00:46:32 +00:00
|
|
|
dns_rcode_t rcode;
|
|
|
|
long i;
|
1999-02-04 01:06:40 +00:00
|
|
|
char *e;
|
|
|
|
|
2015-08-17 12:23:35 +05:30
|
|
|
REQUIRE(type == dns_rdatatype_tsig);
|
|
|
|
REQUIRE(rdclass == dns_rdataclass_any);
|
1999-02-04 01:06:40 +00:00
|
|
|
|
2001-03-16 22:53:20 +00:00
|
|
|
UNUSED(type);
|
2000-12-01 01:40:59 +00:00
|
|
|
UNUSED(rdclass);
|
2001-07-16 03:06:53 +00:00
|
|
|
UNUSED(callbacks);
|
2000-12-01 01:40:59 +00:00
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Algorithm Name.
|
|
|
|
*/
|
2000-11-08 01:56:15 +00:00
|
|
|
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string,
|
2018-04-17 08:29:14 -07:00
|
|
|
false));
|
103. [func] libisc buffer API changes for <isc/buffer.h>:
Added:
isc_buffer_base(b) (pointer)
isc_buffer_current(b) (pointer)
isc_buffer_active(b) (pointer)
isc_buffer_used(b) (pointer)
isc_buffer_length(b) (int)
isc_buffer_usedlength(b) (int)
isc_buffer_consumedlength(b) (int)
isc_buffer_remaininglength(b) (int)
isc_buffer_activelength(b) (int)
isc_buffer_availablelength(b) (int)
Removed:
ISC_BUFFER_USEDCOUNT(b)
ISC_BUFFER_AVAILABLECOUNT(b)
isc_buffer_type(b)
Changed names:
isc_buffer_used(b, r) ->
isc_buffer_usedregion(b, r)
isc_buffer_available(b, r) ->
isc_buffer_available_region(b, r)
isc_buffer_consumed(b, r) ->
isc_buffer_consumedregion(b, r)
isc_buffer_active(b, r) ->
isc_buffer_activeregion(b, r)
isc_buffer_remaining(b, r) ->
isc_buffer_remainingregion(b, r)
Buffer types were removed, so the ISC_BUFFERTYPE_*
macros are no more, and the type argument to
isc_buffer_init and isc_buffer_allocate were removed.
isc_buffer_putstr is now void (instead of isc_result_t)
and requires that the caller ensure that there
is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
|
|
|
buffer_fromregion(&buffer, &token.value.as_region);
|
2015-09-18 07:43:43 +10:00
|
|
|
if (origin == NULL) {
|
|
|
|
origin = dns_rootname;
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
2025-02-22 00:11:38 -08:00
|
|
|
RETTOK(dns_name_wirefromtext(&buffer, origin, options, target));
|
1999-02-04 01:06:40 +00:00
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Time Signed: 48 bits.
|
|
|
|
*/
|
2000-11-08 01:56:15 +00:00
|
|
|
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string,
|
2018-04-17 08:29:14 -07:00
|
|
|
false));
|
2018-03-21 16:09:08 +00:00
|
|
|
sigtime = strtoull(DNS_AS_STR(token), &e, 10);
|
1999-02-04 01:06:40 +00:00
|
|
|
if (*e != 0) {
|
2001-03-06 22:11:18 +00:00
|
|
|
RETTOK(DNS_R_SYNTAX);
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
1999-02-04 01:06:40 +00:00
|
|
|
if ((sigtime >> 48) != 0) {
|
2001-03-06 22:11:18 +00:00
|
|
|
RETTOK(ISC_R_RANGE);
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
2018-03-28 14:19:37 +02:00
|
|
|
RETERR(uint16_tobuffer((uint16_t)(sigtime >> 32), target));
|
|
|
|
RETERR(uint32_tobuffer((uint32_t)(sigtime & 0xffffffffU), target));
|
1999-02-04 01:06:40 +00:00
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Fudge.
|
|
|
|
*/
|
2000-11-08 01:56:15 +00:00
|
|
|
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
|
2018-04-17 08:29:14 -07:00
|
|
|
false));
|
2003-07-25 00:01:16 +00:00
|
|
|
if (token.value.as_ulong > 0xffffU) {
|
2001-03-06 22:11:18 +00:00
|
|
|
RETTOK(ISC_R_RANGE);
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
1999-02-04 01:06:40 +00:00
|
|
|
RETERR(uint16_tobuffer(token.value.as_ulong, target));
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Signature Size.
|
|
|
|
*/
|
2000-11-08 01:56:15 +00:00
|
|
|
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
|
2018-04-17 08:29:14 -07:00
|
|
|
false));
|
2003-07-25 00:01:16 +00:00
|
|
|
if (token.value.as_ulong > 0xffffU) {
|
2001-03-06 22:11:18 +00:00
|
|
|
RETTOK(ISC_R_RANGE);
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
1999-02-04 01:06:40 +00:00
|
|
|
RETERR(uint16_tobuffer(token.value.as_ulong, target));
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Signature.
|
|
|
|
*/
|
|
|
|
RETERR(isc_base64_tobuffer(lexer, target, (int)token.value.as_ulong));
|
1999-02-04 01:06:40 +00:00
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Original ID.
|
|
|
|
*/
|
2000-11-08 01:56:15 +00:00
|
|
|
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
|
2018-04-17 08:29:14 -07:00
|
|
|
false));
|
2003-07-25 00:01:16 +00:00
|
|
|
if (token.value.as_ulong > 0xffffU) {
|
2001-03-06 22:11:18 +00:00
|
|
|
RETTOK(ISC_R_RANGE);
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
1999-02-04 01:06:40 +00:00
|
|
|
RETERR(uint16_tobuffer(token.value.as_ulong, target));
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Error.
|
|
|
|
*/
|
2000-11-08 01:56:15 +00:00
|
|
|
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string,
|
2018-04-17 08:29:14 -07:00
|
|
|
false));
|
2000-05-25 00:46:32 +00:00
|
|
|
if (dns_tsigrcode_fromtext(&rcode, &token.value.as_textregion) !=
|
2022-11-02 19:33:14 +01:00
|
|
|
ISC_R_SUCCESS)
|
|
|
|
{
|
2002-01-21 01:07:32 +00:00
|
|
|
i = strtol(DNS_AS_STR(token), &e, 10);
|
2000-05-25 00:46:32 +00:00
|
|
|
if (*e != 0) {
|
2001-03-06 22:11:18 +00:00
|
|
|
RETTOK(DNS_R_UNKNOWN);
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
2000-05-25 00:46:32 +00:00
|
|
|
if (i < 0 || i > 0xffff) {
|
2001-03-06 22:11:18 +00:00
|
|
|
RETTOK(ISC_R_RANGE);
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
2000-05-25 00:46:32 +00:00
|
|
|
rcode = (dns_rcode_t)i;
|
|
|
|
}
|
|
|
|
RETERR(uint16_tobuffer(rcode, target));
|
1999-02-04 01:06:40 +00:00
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Other Len.
|
|
|
|
*/
|
2000-11-08 01:56:15 +00:00
|
|
|
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
|
2018-04-17 08:29:14 -07:00
|
|
|
false));
|
2003-07-25 00:01:16 +00:00
|
|
|
if (token.value.as_ulong > 0xffffU) {
|
2001-03-06 22:11:18 +00:00
|
|
|
RETTOK(ISC_R_RANGE);
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
1999-02-04 01:06:40 +00:00
|
|
|
RETERR(uint16_tobuffer(token.value.as_ulong, target));
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Other Data.
|
|
|
|
*/
|
|
|
|
return isc_base64_tobuffer(lexer, target, (int)token.value.as_ulong);
|
1999-02-04 01:06:40 +00:00
|
|
|
}
|
|
|
|
|
2021-10-11 13:43:12 +02:00
|
|
|
static isc_result_t
|
2000-06-01 18:26:56 +00:00
|
|
|
totext_any_tsig(ARGS_TOTEXT) {
|
1999-02-04 01:06:40 +00:00
|
|
|
isc_region_t sr;
|
|
|
|
isc_region_t sigr;
|
2012-10-17 12:48:12 +11:00
|
|
|
char buf[sizeof(" 281474976710655 ")];
|
1999-02-05 05:15:16 +00:00
|
|
|
char *bufp;
|
1999-02-04 01:06:40 +00:00
|
|
|
dns_name_t name;
|
|
|
|
dns_name_t prefix;
|
2018-03-28 14:19:37 +02:00
|
|
|
uint64_t sigtime;
|
1999-02-04 01:06:40 +00:00
|
|
|
unsigned short n;
|
2023-08-15 18:52:17 -07:00
|
|
|
unsigned int opts;
|
1999-02-04 01:06:40 +00:00
|
|
|
|
2015-08-17 12:23:35 +05:30
|
|
|
REQUIRE(rdata->type == dns_rdatatype_tsig);
|
|
|
|
REQUIRE(rdata->rdclass == dns_rdataclass_any);
|
2000-10-25 05:44:10 +00:00
|
|
|
REQUIRE(rdata->length != 0);
|
1999-02-04 01:06:40 +00:00
|
|
|
|
|
|
|
dns_rdata_toregion(rdata, &sr);
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Algorithm Name.
|
|
|
|
*/
|
2025-02-21 12:09:39 +01:00
|
|
|
dns_name_init(&name);
|
|
|
|
dns_name_init(&prefix);
|
1999-02-04 01:06:40 +00:00
|
|
|
dns_name_fromregion(&name, &sr);
|
2023-08-15 18:52:17 -07:00
|
|
|
opts = name_prefix(&name, tctx->origin, &prefix) ? DNS_NAME_OMITFINALDOT
|
|
|
|
: 0;
|
|
|
|
RETERR(dns_name_totext(&prefix, opts, target));
|
1999-02-04 01:06:40 +00:00
|
|
|
RETERR(str_totext(" ", target));
|
|
|
|
isc_region_consume(&sr, name_length(&name));
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Time Signed.
|
|
|
|
*/
|
2018-03-28 14:19:37 +02:00
|
|
|
sigtime = ((uint64_t)sr.base[0] << 40) | ((uint64_t)sr.base[1] << 32) |
|
|
|
|
((uint64_t)sr.base[2] << 24) | ((uint64_t)sr.base[3] << 16) |
|
|
|
|
((uint64_t)sr.base[4] << 8) | (uint64_t)sr.base[5];
|
1999-02-04 01:06:40 +00:00
|
|
|
isc_region_consume(&sr, 6);
|
2001-11-27 01:56:32 +00:00
|
|
|
bufp = &buf[sizeof(buf) - 1];
|
1999-02-05 05:15:16 +00:00
|
|
|
*bufp-- = 0;
|
|
|
|
*bufp-- = ' ';
|
|
|
|
do {
|
2022-06-24 22:11:02 +01:00
|
|
|
*bufp-- = '0' + sigtime % 10;
|
1999-02-05 05:15:16 +00:00
|
|
|
sigtime /= 10;
|
|
|
|
} while (sigtime != 0);
|
|
|
|
bufp++;
|
|
|
|
RETERR(str_totext(bufp, target));
|
1999-02-04 01:06:40 +00:00
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Fudge.
|
|
|
|
*/
|
1999-02-04 01:06:40 +00:00
|
|
|
n = uint16_fromregion(&sr);
|
|
|
|
isc_region_consume(&sr, 2);
|
2017-10-03 14:54:19 +11:00
|
|
|
snprintf(buf, sizeof(buf), "%u ", n);
|
1999-02-04 01:06:40 +00:00
|
|
|
RETERR(str_totext(buf, target));
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Signature Size.
|
|
|
|
*/
|
1999-02-04 01:06:40 +00:00
|
|
|
n = uint16_fromregion(&sr);
|
|
|
|
isc_region_consume(&sr, 2);
|
2017-10-03 14:54:19 +11:00
|
|
|
snprintf(buf, sizeof(buf), "%u", n);
|
1999-02-04 01:06:40 +00:00
|
|
|
RETERR(str_totext(buf, target));
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Signature.
|
|
|
|
*/
|
2018-09-14 15:49:51 +10:00
|
|
|
if (n != 0U) {
|
|
|
|
REQUIRE(n <= sr.length);
|
|
|
|
sigr = sr;
|
|
|
|
sigr.length = n;
|
|
|
|
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0) {
|
|
|
|
RETERR(str_totext(" (", target));
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
2018-09-14 15:49:51 +10:00
|
|
|
RETERR(str_totext(tctx->linebreak, target));
|
|
|
|
if (tctx->width == 0) { /* No splitting */
|
|
|
|
RETERR(isc_base64_totext(&sigr, 60, "", target));
|
|
|
|
} else {
|
|
|
|
RETERR(isc_base64_totext(&sigr, tctx->width - 2,
|
|
|
|
tctx->linebreak, target));
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
2018-09-14 15:49:51 +10:00
|
|
|
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0) {
|
|
|
|
RETERR(str_totext(" ) ", target));
|
|
|
|
} else {
|
|
|
|
RETERR(str_totext(" ", target));
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
2018-09-14 15:49:51 +10:00
|
|
|
isc_region_consume(&sr, n);
|
|
|
|
} else {
|
1999-06-08 20:41:31 +00:00
|
|
|
RETERR(str_totext(" ", target));
|
2018-09-14 15:49:51 +10:00
|
|
|
}
|
1999-02-04 01:06:40 +00:00
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Original ID.
|
|
|
|
*/
|
1999-02-04 01:06:40 +00:00
|
|
|
n = uint16_fromregion(&sr);
|
|
|
|
isc_region_consume(&sr, 2);
|
2017-10-03 14:54:19 +11:00
|
|
|
snprintf(buf, sizeof(buf), "%u ", n);
|
1999-02-04 01:06:40 +00:00
|
|
|
RETERR(str_totext(buf, target));
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Error.
|
|
|
|
*/
|
1999-02-04 01:06:40 +00:00
|
|
|
n = uint16_fromregion(&sr);
|
|
|
|
isc_region_consume(&sr, 2);
|
2012-10-05 06:57:05 +10:00
|
|
|
RETERR(dns_tsigrcode_totext((dns_rcode_t)n, target));
|
1999-02-04 01:06:40 +00:00
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Other Size.
|
|
|
|
*/
|
1999-02-04 01:06:40 +00:00
|
|
|
n = uint16_fromregion(&sr);
|
|
|
|
isc_region_consume(&sr, 2);
|
2017-10-03 14:54:19 +11:00
|
|
|
snprintf(buf, sizeof(buf), " %u ", n);
|
1999-02-04 01:06:40 +00:00
|
|
|
RETERR(str_totext(buf, target));
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Other.
|
|
|
|
*/
|
2011-03-05 19:39:07 +00:00
|
|
|
if (tctx->width == 0) { /* No splitting */
|
|
|
|
return isc_base64_totext(&sr, 60, "", target);
|
|
|
|
} else {
|
|
|
|
return isc_base64_totext(&sr, 60, " ", target);
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
1999-02-04 01:06:40 +00:00
|
|
|
}
|
|
|
|
|
2021-10-11 13:43:12 +02:00
|
|
|
static isc_result_t
|
2000-06-01 18:26:56 +00:00
|
|
|
fromwire_any_tsig(ARGS_FROMWIRE) {
|
1999-02-04 01:06:40 +00:00
|
|
|
isc_region_t sr;
|
|
|
|
dns_name_t name;
|
|
|
|
unsigned long n;
|
|
|
|
|
2015-08-17 12:23:35 +05:30
|
|
|
REQUIRE(type == dns_rdatatype_tsig);
|
|
|
|
REQUIRE(rdclass == dns_rdataclass_any);
|
2000-08-01 01:33:37 +00:00
|
|
|
|
2001-03-16 22:53:20 +00:00
|
|
|
UNUSED(type);
|
2000-12-01 01:40:59 +00:00
|
|
|
UNUSED(rdclass);
|
|
|
|
|
2022-05-05 16:36:52 +01:00
|
|
|
dctx = dns_decompress_setpermitted(dctx, false);
|
1999-02-24 06:31:35 +00:00
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Algorithm Name.
|
|
|
|
*/
|
2025-02-21 12:09:39 +01:00
|
|
|
dns_name_init(&name);
|
2022-11-09 17:10:59 +00:00
|
|
|
RETERR(dns_name_fromwire(&name, source, dctx, target));
|
1999-02-04 01:06:40 +00:00
|
|
|
|
103. [func] libisc buffer API changes for <isc/buffer.h>:
Added:
isc_buffer_base(b) (pointer)
isc_buffer_current(b) (pointer)
isc_buffer_active(b) (pointer)
isc_buffer_used(b) (pointer)
isc_buffer_length(b) (int)
isc_buffer_usedlength(b) (int)
isc_buffer_consumedlength(b) (int)
isc_buffer_remaininglength(b) (int)
isc_buffer_activelength(b) (int)
isc_buffer_availablelength(b) (int)
Removed:
ISC_BUFFER_USEDCOUNT(b)
ISC_BUFFER_AVAILABLECOUNT(b)
isc_buffer_type(b)
Changed names:
isc_buffer_used(b, r) ->
isc_buffer_usedregion(b, r)
isc_buffer_available(b, r) ->
isc_buffer_available_region(b, r)
isc_buffer_consumed(b, r) ->
isc_buffer_consumedregion(b, r)
isc_buffer_active(b, r) ->
isc_buffer_activeregion(b, r)
isc_buffer_remaining(b, r) ->
isc_buffer_remainingregion(b, r)
Buffer types were removed, so the ISC_BUFFERTYPE_*
macros are no more, and the type argument to
isc_buffer_init and isc_buffer_allocate were removed.
isc_buffer_putstr is now void (instead of isc_result_t)
and requires that the caller ensure that there
is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
|
|
|
isc_buffer_activeregion(source, &sr);
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Time Signed + Fudge.
|
|
|
|
*/
|
1999-02-04 01:06:40 +00:00
|
|
|
if (sr.length < 8) {
|
2000-04-06 22:03:35 +00:00
|
|
|
return ISC_R_UNEXPECTEDEND;
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
1999-02-04 01:06:40 +00:00
|
|
|
RETERR(mem_tobuffer(target, sr.base, 8));
|
|
|
|
isc_region_consume(&sr, 8);
|
|
|
|
isc_buffer_forward(source, 8);
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Signature Length + Signature.
|
|
|
|
*/
|
1999-02-04 01:06:40 +00:00
|
|
|
if (sr.length < 2) {
|
2000-04-06 22:03:35 +00:00
|
|
|
return ISC_R_UNEXPECTEDEND;
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
1999-02-04 01:06:40 +00:00
|
|
|
n = uint16_fromregion(&sr);
|
|
|
|
if (sr.length < n + 2) {
|
2000-04-06 22:03:35 +00:00
|
|
|
return ISC_R_UNEXPECTEDEND;
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
1999-02-04 01:06:40 +00:00
|
|
|
RETERR(mem_tobuffer(target, sr.base, n + 2));
|
|
|
|
isc_region_consume(&sr, n + 2);
|
|
|
|
isc_buffer_forward(source, n + 2);
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Original ID + Error.
|
|
|
|
*/
|
1999-02-04 01:06:40 +00:00
|
|
|
if (sr.length < 4) {
|
2000-04-06 22:03:35 +00:00
|
|
|
return ISC_R_UNEXPECTEDEND;
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
1999-02-04 01:06:40 +00:00
|
|
|
RETERR(mem_tobuffer(target, sr.base, 4));
|
|
|
|
isc_region_consume(&sr, 4);
|
|
|
|
isc_buffer_forward(source, 4);
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Other Length + Other.
|
|
|
|
*/
|
1999-02-04 01:06:40 +00:00
|
|
|
if (sr.length < 2) {
|
2000-04-06 22:03:35 +00:00
|
|
|
return ISC_R_UNEXPECTEDEND;
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
1999-02-04 01:06:40 +00:00
|
|
|
n = uint16_fromregion(&sr);
|
|
|
|
if (sr.length < n + 2) {
|
2000-04-06 22:03:35 +00:00
|
|
|
return ISC_R_UNEXPECTEDEND;
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
1999-02-04 01:06:40 +00:00
|
|
|
isc_buffer_forward(source, n + 2);
|
|
|
|
return mem_tobuffer(target, sr.base, n + 2);
|
|
|
|
}
|
|
|
|
|
2021-10-11 13:43:12 +02:00
|
|
|
static isc_result_t
|
2000-06-01 18:26:56 +00:00
|
|
|
towire_any_tsig(ARGS_TOWIRE) {
|
1999-02-04 01:06:40 +00:00
|
|
|
isc_region_t sr;
|
|
|
|
dns_name_t name;
|
|
|
|
|
2015-08-17 12:23:35 +05:30
|
|
|
REQUIRE(rdata->type == dns_rdatatype_tsig);
|
|
|
|
REQUIRE(rdata->rdclass == dns_rdataclass_any);
|
2000-10-25 05:44:10 +00:00
|
|
|
REQUIRE(rdata->length != 0);
|
1999-02-04 01:06:40 +00:00
|
|
|
|
2022-05-05 14:52:44 +01:00
|
|
|
dns_compress_setpermitted(cctx, false);
|
1999-02-04 01:06:40 +00:00
|
|
|
dns_rdata_toregion(rdata, &sr);
|
2025-02-21 12:09:39 +01:00
|
|
|
dns_name_init(&name);
|
1999-02-04 01:06:40 +00:00
|
|
|
dns_name_fromregion(&name, &sr);
|
2025-02-21 18:14:55 -08:00
|
|
|
RETERR(dns_name_towire(&name, cctx, target));
|
1999-02-04 01:06:40 +00:00
|
|
|
isc_region_consume(&sr, name_length(&name));
|
|
|
|
return mem_tobuffer(target, sr.base, sr.length);
|
|
|
|
}
|
|
|
|
|
2021-10-11 13:43:12 +02:00
|
|
|
static int
|
2000-06-01 18:26:56 +00:00
|
|
|
compare_any_tsig(ARGS_COMPARE) {
|
1999-02-04 01:06:40 +00:00
|
|
|
isc_region_t r1;
|
|
|
|
isc_region_t r2;
|
|
|
|
dns_name_t name1;
|
|
|
|
dns_name_t name2;
|
2000-03-20 22:44:36 +00:00
|
|
|
int order;
|
1999-02-04 01:06:40 +00:00
|
|
|
|
|
|
|
REQUIRE(rdata1->type == rdata2->type);
|
1999-08-02 22:18:31 +00:00
|
|
|
REQUIRE(rdata1->rdclass == rdata2->rdclass);
|
2015-08-17 12:23:35 +05:30
|
|
|
REQUIRE(rdata1->type == dns_rdatatype_tsig);
|
|
|
|
REQUIRE(rdata1->rdclass == dns_rdataclass_any);
|
2000-10-25 05:44:10 +00:00
|
|
|
REQUIRE(rdata1->length != 0);
|
|
|
|
REQUIRE(rdata2->length != 0);
|
2000-08-01 01:33:37 +00:00
|
|
|
|
1999-02-04 01:06:40 +00:00
|
|
|
dns_rdata_toregion(rdata1, &r1);
|
|
|
|
dns_rdata_toregion(rdata2, &r2);
|
2025-02-21 12:09:39 +01:00
|
|
|
dns_name_init(&name1);
|
|
|
|
dns_name_init(&name2);
|
1999-02-04 01:06:40 +00:00
|
|
|
dns_name_fromregion(&name1, &r1);
|
|
|
|
dns_name_fromregion(&name2, &r2);
|
2000-03-20 22:44:36 +00:00
|
|
|
order = dns_name_rdatacompare(&name1, &name2);
|
|
|
|
if (order != 0) {
|
|
|
|
return order;
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
1999-02-04 01:06:40 +00:00
|
|
|
isc_region_consume(&r1, name_length(&name1));
|
|
|
|
isc_region_consume(&r2, name_length(&name2));
|
2002-01-05 07:05:28 +00:00
|
|
|
return isc_region_compare(&r1, &r2);
|
1999-02-04 01:06:40 +00:00
|
|
|
}
|
|
|
|
|
2021-10-11 13:43:12 +02:00
|
|
|
static isc_result_t
|
2000-06-01 18:26:56 +00:00
|
|
|
fromstruct_any_tsig(ARGS_FROMSTRUCT) {
|
2000-05-22 12:38:12 +00:00
|
|
|
dns_rdata_any_tsig_t *tsig = source;
|
1999-08-20 18:56:24 +00:00
|
|
|
isc_region_t tr;
|
1999-02-04 01:06:40 +00:00
|
|
|
|
2015-08-17 12:23:35 +05:30
|
|
|
REQUIRE(type == dns_rdatatype_tsig);
|
|
|
|
REQUIRE(rdclass == dns_rdataclass_any);
|
2019-09-27 10:40:51 +02:00
|
|
|
REQUIRE(tsig != NULL);
|
2000-05-22 12:38:12 +00:00
|
|
|
REQUIRE(tsig->common.rdclass == rdclass);
|
|
|
|
REQUIRE(tsig->common.rdtype == type);
|
1999-08-20 18:56:24 +00:00
|
|
|
|
2001-03-16 22:53:20 +00:00
|
|
|
UNUSED(type);
|
2000-12-01 01:40:59 +00:00
|
|
|
UNUSED(rdclass);
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Algorithm Name.
|
|
|
|
*/
|
2000-05-05 18:15:02 +00:00
|
|
|
RETERR(name_tobuffer(&tsig->algorithm, target));
|
1999-08-20 18:56:24 +00:00
|
|
|
|
103. [func] libisc buffer API changes for <isc/buffer.h>:
Added:
isc_buffer_base(b) (pointer)
isc_buffer_current(b) (pointer)
isc_buffer_active(b) (pointer)
isc_buffer_used(b) (pointer)
isc_buffer_length(b) (int)
isc_buffer_usedlength(b) (int)
isc_buffer_consumedlength(b) (int)
isc_buffer_remaininglength(b) (int)
isc_buffer_activelength(b) (int)
isc_buffer_availablelength(b) (int)
Removed:
ISC_BUFFER_USEDCOUNT(b)
ISC_BUFFER_AVAILABLECOUNT(b)
isc_buffer_type(b)
Changed names:
isc_buffer_used(b, r) ->
isc_buffer_usedregion(b, r)
isc_buffer_available(b, r) ->
isc_buffer_available_region(b, r)
isc_buffer_consumed(b, r) ->
isc_buffer_consumedregion(b, r)
isc_buffer_active(b, r) ->
isc_buffer_activeregion(b, r)
isc_buffer_remaining(b, r) ->
isc_buffer_remainingregion(b, r)
Buffer types were removed, so the ISC_BUFFERTYPE_*
macros are no more, and the type argument to
isc_buffer_init and isc_buffer_allocate were removed.
isc_buffer_putstr is now void (instead of isc_result_t)
and requires that the caller ensure that there
is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
|
|
|
isc_buffer_availableregion(target, &tr);
|
1999-08-20 18:56:24 +00:00
|
|
|
if (tr.length < 6 + 2 + 2) {
|
2000-04-06 22:03:35 +00:00
|
|
|
return ISC_R_NOSPACE;
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
1999-08-20 18:56:24 +00:00
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Time Signed: 48 bits.
|
|
|
|
*/
|
2018-03-28 14:19:37 +02:00
|
|
|
RETERR(uint16_tobuffer((uint16_t)(tsig->timesigned >> 32), target));
|
|
|
|
RETERR(uint32_tobuffer((uint32_t)(tsig->timesigned & 0xffffffffU),
|
1999-10-08 22:48:13 +00:00
|
|
|
target));
|
1999-08-20 18:56:24 +00:00
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Fudge.
|
|
|
|
*/
|
1999-08-20 18:56:24 +00:00
|
|
|
RETERR(uint16_tobuffer(tsig->fudge, target));
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Signature Size.
|
|
|
|
*/
|
1999-08-20 18:56:24 +00:00
|
|
|
RETERR(uint16_tobuffer(tsig->siglen, target));
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Signature.
|
|
|
|
*/
|
2000-05-22 12:38:12 +00:00
|
|
|
RETERR(mem_tobuffer(target, tsig->signature, tsig->siglen));
|
1999-08-20 18:56:24 +00:00
|
|
|
|
103. [func] libisc buffer API changes for <isc/buffer.h>:
Added:
isc_buffer_base(b) (pointer)
isc_buffer_current(b) (pointer)
isc_buffer_active(b) (pointer)
isc_buffer_used(b) (pointer)
isc_buffer_length(b) (int)
isc_buffer_usedlength(b) (int)
isc_buffer_consumedlength(b) (int)
isc_buffer_remaininglength(b) (int)
isc_buffer_activelength(b) (int)
isc_buffer_availablelength(b) (int)
Removed:
ISC_BUFFER_USEDCOUNT(b)
ISC_BUFFER_AVAILABLECOUNT(b)
isc_buffer_type(b)
Changed names:
isc_buffer_used(b, r) ->
isc_buffer_usedregion(b, r)
isc_buffer_available(b, r) ->
isc_buffer_available_region(b, r)
isc_buffer_consumed(b, r) ->
isc_buffer_consumedregion(b, r)
isc_buffer_active(b, r) ->
isc_buffer_activeregion(b, r)
isc_buffer_remaining(b, r) ->
isc_buffer_remainingregion(b, r)
Buffer types were removed, so the ISC_BUFFERTYPE_*
macros are no more, and the type argument to
isc_buffer_init and isc_buffer_allocate were removed.
isc_buffer_putstr is now void (instead of isc_result_t)
and requires that the caller ensure that there
is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
|
|
|
isc_buffer_availableregion(target, &tr);
|
1999-08-20 18:56:24 +00:00
|
|
|
if (tr.length < 2 + 2 + 2) {
|
2000-04-06 22:03:35 +00:00
|
|
|
return ISC_R_NOSPACE;
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
1999-08-20 18:56:24 +00:00
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Original ID.
|
|
|
|
*/
|
1999-08-20 18:56:24 +00:00
|
|
|
RETERR(uint16_tobuffer(tsig->originalid, target));
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Error.
|
|
|
|
*/
|
1999-08-20 18:56:24 +00:00
|
|
|
RETERR(uint16_tobuffer(tsig->error, target));
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Other Len.
|
|
|
|
*/
|
1999-08-20 18:56:24 +00:00
|
|
|
RETERR(uint16_tobuffer(tsig->otherlen, target));
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Other Data.
|
|
|
|
*/
|
2000-05-22 12:38:12 +00:00
|
|
|
return mem_tobuffer(target, tsig->other, tsig->otherlen);
|
1999-02-04 01:06:40 +00:00
|
|
|
}
|
|
|
|
|
2021-10-11 13:43:12 +02:00
|
|
|
static isc_result_t
|
2000-06-01 18:26:56 +00:00
|
|
|
tostruct_any_tsig(ARGS_TOSTRUCT) {
|
1999-08-20 18:56:24 +00:00
|
|
|
dns_rdata_any_tsig_t *tsig;
|
|
|
|
dns_name_t alg;
|
|
|
|
isc_region_t sr;
|
1999-02-04 01:06:40 +00:00
|
|
|
|
2015-08-17 12:23:35 +05:30
|
|
|
REQUIRE(rdata->type == dns_rdatatype_tsig);
|
|
|
|
REQUIRE(rdata->rdclass == dns_rdataclass_any);
|
2000-10-25 05:44:10 +00:00
|
|
|
REQUIRE(rdata->length != 0);
|
2000-08-01 01:33:37 +00:00
|
|
|
|
1999-08-20 18:56:24 +00:00
|
|
|
tsig = (dns_rdata_any_tsig_t *)target;
|
|
|
|
tsig->common.rdclass = rdata->rdclass;
|
|
|
|
tsig->common.rdtype = rdata->type;
|
|
|
|
ISC_LINK_INIT(&tsig->common, link);
|
2000-05-19 13:04:45 +00:00
|
|
|
|
1999-08-20 18:56:24 +00:00
|
|
|
dns_rdata_toregion(rdata, &sr);
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Algorithm Name.
|
|
|
|
*/
|
2025-02-21 12:09:39 +01:00
|
|
|
dns_name_init(&alg);
|
1999-08-20 18:56:24 +00:00
|
|
|
dns_name_fromregion(&alg, &sr);
|
2025-02-21 12:09:39 +01:00
|
|
|
dns_name_init(&tsig->algorithm);
|
2021-10-06 12:57:24 +02:00
|
|
|
name_duporclone(&alg, mctx, &tsig->algorithm);
|
2000-08-01 01:33:37 +00:00
|
|
|
|
1999-10-07 21:49:39 +00:00
|
|
|
isc_region_consume(&sr, name_length(&tsig->algorithm));
|
1999-08-20 18:56:24 +00:00
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Time Signed.
|
|
|
|
*/
|
2000-05-19 13:04:45 +00:00
|
|
|
INSIST(sr.length >= 6);
|
2018-03-28 14:19:37 +02:00
|
|
|
tsig->timesigned = ((uint64_t)sr.base[0] << 40) |
|
|
|
|
((uint64_t)sr.base[1] << 32) |
|
|
|
|
((uint64_t)sr.base[2] << 24) |
|
|
|
|
((uint64_t)sr.base[3] << 16) |
|
|
|
|
((uint64_t)sr.base[4] << 8) | (uint64_t)sr.base[5];
|
1999-08-20 18:56:24 +00:00
|
|
|
isc_region_consume(&sr, 6);
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Fudge.
|
|
|
|
*/
|
1999-08-20 18:56:24 +00:00
|
|
|
tsig->fudge = uint16_fromregion(&sr);
|
|
|
|
isc_region_consume(&sr, 2);
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Signature Size.
|
|
|
|
*/
|
1999-08-20 18:56:24 +00:00
|
|
|
tsig->siglen = uint16_fromregion(&sr);
|
|
|
|
isc_region_consume(&sr, 2);
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Signature.
|
|
|
|
*/
|
2000-05-19 13:04:45 +00:00
|
|
|
INSIST(sr.length >= tsig->siglen);
|
2001-06-21 04:00:47 +00:00
|
|
|
tsig->signature = mem_maybedup(mctx, sr.base, tsig->siglen);
|
|
|
|
isc_region_consume(&sr, tsig->siglen);
|
1999-08-20 18:56:24 +00:00
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Original ID.
|
|
|
|
*/
|
1999-08-20 18:56:24 +00:00
|
|
|
tsig->originalid = uint16_fromregion(&sr);
|
|
|
|
isc_region_consume(&sr, 2);
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Error.
|
|
|
|
*/
|
1999-08-20 18:56:24 +00:00
|
|
|
tsig->error = uint16_fromregion(&sr);
|
|
|
|
isc_region_consume(&sr, 2);
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Other Size.
|
|
|
|
*/
|
1999-08-20 18:56:24 +00:00
|
|
|
tsig->otherlen = uint16_fromregion(&sr);
|
|
|
|
isc_region_consume(&sr, 2);
|
|
|
|
|
2000-05-13 22:50:49 +00:00
|
|
|
/*
|
|
|
|
* Other.
|
|
|
|
*/
|
2000-05-19 13:04:45 +00:00
|
|
|
INSIST(sr.length == tsig->otherlen);
|
2001-06-21 04:00:47 +00:00
|
|
|
tsig->other = mem_maybedup(mctx, sr.base, tsig->otherlen);
|
1999-08-20 18:56:24 +00:00
|
|
|
|
2000-05-19 13:04:45 +00:00
|
|
|
tsig->mctx = mctx;
|
2000-04-06 22:03:35 +00:00
|
|
|
return ISC_R_SUCCESS;
|
1999-02-04 01:06:40 +00:00
|
|
|
}
|
1999-05-07 03:24:15 +00:00
|
|
|
|
2021-10-11 13:43:12 +02:00
|
|
|
static void
|
2000-06-01 18:26:56 +00:00
|
|
|
freestruct_any_tsig(ARGS_FREESTRUCT) {
|
1999-08-20 18:56:24 +00:00
|
|
|
dns_rdata_any_tsig_t *tsig = (dns_rdata_any_tsig_t *)source;
|
1999-05-07 03:24:15 +00:00
|
|
|
|
2019-09-27 10:40:51 +02:00
|
|
|
REQUIRE(tsig != NULL);
|
2015-08-17 12:23:35 +05:30
|
|
|
REQUIRE(tsig->common.rdtype == dns_rdatatype_tsig);
|
|
|
|
REQUIRE(tsig->common.rdclass == dns_rdataclass_any);
|
1999-05-07 03:24:15 +00:00
|
|
|
|
2000-05-19 13:04:45 +00:00
|
|
|
if (tsig->mctx == NULL) {
|
|
|
|
return;
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
2000-05-19 13:04:45 +00:00
|
|
|
|
1999-10-07 21:49:39 +00:00
|
|
|
dns_name_free(&tsig->algorithm, tsig->mctx);
|
2000-03-16 23:13:02 +00:00
|
|
|
if (tsig->signature != NULL) {
|
2000-05-19 13:04:45 +00:00
|
|
|
isc_mem_free(tsig->mctx, tsig->signature);
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
2000-03-16 23:13:02 +00:00
|
|
|
if (tsig->other != NULL) {
|
2000-05-19 13:04:45 +00:00
|
|
|
isc_mem_free(tsig->mctx, tsig->other);
|
2020-02-13 21:48:23 +01:00
|
|
|
}
|
2000-05-19 13:04:45 +00:00
|
|
|
tsig->mctx = NULL;
|
1999-05-07 03:24:15 +00:00
|
|
|
}
|
1999-08-02 22:18:31 +00:00
|
|
|
|
2021-10-11 13:43:12 +02:00
|
|
|
static isc_result_t
|
2000-06-01 18:26:56 +00:00
|
|
|
additionaldata_any_tsig(ARGS_ADDLDATA) {
|
2015-08-17 12:23:35 +05:30
|
|
|
REQUIRE(rdata->type == dns_rdatatype_tsig);
|
|
|
|
REQUIRE(rdata->rdclass == dns_rdataclass_any);
|
1999-08-02 22:18:31 +00:00
|
|
|
|
2000-04-28 01:24:18 +00:00
|
|
|
UNUSED(rdata);
|
2019-07-05 16:20:20 +10:00
|
|
|
UNUSED(owner);
|
2000-03-16 21:50:14 +00:00
|
|
|
UNUSED(add);
|
|
|
|
UNUSED(arg);
|
1999-08-02 22:18:31 +00:00
|
|
|
|
2000-04-06 22:03:35 +00:00
|
|
|
return ISC_R_SUCCESS;
|
1999-08-02 22:18:31 +00:00
|
|
|
}
|
|
|
|
|
2021-10-11 13:43:12 +02:00
|
|
|
static isc_result_t
|
2000-06-01 18:26:56 +00:00
|
|
|
digest_any_tsig(ARGS_DIGEST) {
|
2015-08-17 12:23:35 +05:30
|
|
|
REQUIRE(rdata->type == dns_rdatatype_tsig);
|
|
|
|
REQUIRE(rdata->rdclass == dns_rdataclass_any);
|
1999-08-31 22:05:55 +00:00
|
|
|
|
2000-04-28 01:24:18 +00:00
|
|
|
UNUSED(rdata);
|
2000-03-16 21:50:14 +00:00
|
|
|
UNUSED(digest);
|
|
|
|
UNUSED(arg);
|
1999-08-31 22:05:55 +00:00
|
|
|
|
2000-04-06 22:03:35 +00:00
|
|
|
return ISC_R_NOTIMPLEMENTED;
|
1999-08-31 22:05:55 +00:00
|
|
|
}
|
|
|
|
|
2021-10-11 13:43:12 +02:00
|
|
|
static bool
|
2004-02-27 20:41:51 +00:00
|
|
|
checkowner_any_tsig(ARGS_CHECKOWNER) {
|
2015-08-17 12:23:35 +05:30
|
|
|
REQUIRE(type == dns_rdatatype_tsig);
|
|
|
|
REQUIRE(rdclass == dns_rdataclass_any);
|
2004-02-27 20:41:51 +00:00
|
|
|
|
|
|
|
UNUSED(name);
|
|
|
|
UNUSED(type);
|
|
|
|
UNUSED(rdclass);
|
|
|
|
UNUSED(wildcard);
|
|
|
|
|
2018-04-17 08:29:14 -07:00
|
|
|
return true;
|
2004-02-27 20:41:51 +00:00
|
|
|
}
|
|
|
|
|
2021-10-11 13:43:12 +02:00
|
|
|
static bool
|
2004-02-27 20:41:51 +00:00
|
|
|
checknames_any_tsig(ARGS_CHECKNAMES) {
|
2015-08-17 12:23:35 +05:30
|
|
|
REQUIRE(rdata->type == dns_rdatatype_tsig);
|
|
|
|
REQUIRE(rdata->rdclass == dns_rdataclass_any);
|
2004-02-27 20:41:51 +00:00
|
|
|
|
|
|
|
UNUSED(rdata);
|
|
|
|
UNUSED(owner);
|
|
|
|
UNUSED(bad);
|
|
|
|
|
2018-04-17 08:29:14 -07:00
|
|
|
return true;
|
2004-02-27 20:41:51 +00:00
|
|
|
}
|
|
|
|
|
2021-10-11 13:43:12 +02:00
|
|
|
static int
|
2009-12-04 21:09:34 +00:00
|
|
|
casecompare_any_tsig(ARGS_COMPARE) {
|
|
|
|
return compare_any_tsig(rdata1, rdata2);
|
|
|
|
}
|
|
|
|
|
1999-05-05 00:19:04 +00:00
|
|
|
#endif /* RDATA_ANY_255_TSIG_250_C */
|