nsec3_50.c File Reference

#include <isc/iterated_hash.h>
#include <isc/base32.h>

Go to the source code of this file.

Defines

#define RRTYPE_NSEC3_ATTRIBUTES   DNS_RDATATYPEATTR_DNSSEC

Functions

static isc_result_t fromtext_nsec3 (ARGS_FROMTEXT)
static isc_result_t totext_nsec3 (ARGS_TOTEXT)
static isc_result_t fromwire_nsec3 (ARGS_FROMWIRE)
static isc_result_t towire_nsec3 (ARGS_TOWIRE)
static int compare_nsec3 (ARGS_COMPARE)
static isc_result_t fromstruct_nsec3 (ARGS_FROMSTRUCT)
static isc_result_t tostruct_nsec3 (ARGS_TOSTRUCT)
static void freestruct_nsec3 (ARGS_FREESTRUCT)
static isc_result_t additionaldata_nsec3 (ARGS_ADDLDATA)
static isc_result_t digest_nsec3 (ARGS_DIGEST)
static isc_boolean_t checkowner_nsec3 (ARGS_CHECKOWNER)
static isc_boolean_t checknames_nsec3 (ARGS_CHECKNAMES)
static int casecompare_nsec3 (ARGS_COMPARE)


Define Documentation

#define RRTYPE_NSEC3_ATTRIBUTES   DNS_RDATATYPEATTR_DNSSEC

Definition at line 43 of file nsec3_50.c.


Function Documentation

static isc_result_t fromtext_nsec3 ( ARGS_FROMTEXT   )  [inline, static]

Definition at line 46 of file nsec3_50.c.

References isc_tokenvalue_t::as_textregion, isc_tokenvalue_t::as_ulong, callbacks, DNS_AS_STR, dns_hashalg_fromtext(), DNS_R_TEXTTOOLONG, dns_rdatatype_fromtext(), isc_base32hexnp_decodestring(), isc_buffer_init, isc_buffer_usedlength, ISC_FALSE, isc_hex_decodestring(), isc_lex_getmastertoken(), isc_lex_ungettoken(), ISC_R_RANGE, ISC_R_SUCCESS, isc_tokentype_number, isc_tokentype_string, ISC_TRUE, isc_textregion::length, mem_tobuffer(), origin, rdclass, REQUIRE, RETERR, RETTOK, token, isc_token::type, uint16_tobuffer(), uint8_tobuffer(), UNUSED, and isc_token::value.

static isc_result_t totext_nsec3 ( ARGS_TOTEXT   )  [inline, static]

Definition at line 137 of file nsec3_50.c.

References isc_region::base, dns_rdata_toregion(), dns_rdatatype_isknown(), dns_rdatatype_totext(), DNS_STYLEFLAG_MULTILINE, hash, INSIST, isc_base32hexnp_totext(), ISC_FALSE, isc_hex_totext(), ISC_R_SUCCESS, isc_region_consume, ISC_TRUE, isc_region::length, REQUIRE, RETERR, str_totext(), uint16_fromregion(), and uint8_fromregion().

static isc_result_t fromwire_nsec3 ( ARGS_FROMWIRE   )  [inline, static]

Definition at line 241 of file nsec3_50.c.

References isc_region::base, DNS_R_EXTRADATA, DNS_R_FORMERR, isc_buffer_activeregion, isc_buffer_forward, ISC_FALSE, ISC_R_SUCCESS, isc_region_consume, ISC_TRUE, isc_region::length, mem_tobuffer(), rdclass, REQUIRE, RETERR, and UNUSED.

static isc_result_t towire_nsec3 ( ARGS_TOWIRE   )  [inline, static]

Definition at line 318 of file nsec3_50.c.

References isc_region::base, dns_rdata_toregion(), isc_region::length, mem_tobuffer(), REQUIRE, and UNUSED.

static int compare_nsec3 ( ARGS_COMPARE   )  [inline, static]

Definition at line 331 of file nsec3_50.c.

References dns_rdata_toregion(), isc_region_compare(), r1, r2, and REQUIRE.

Referenced by casecompare_nsec3().

static isc_result_t fromstruct_nsec3 ( ARGS_FROMSTRUCT   )  [inline, static]

Definition at line 347 of file nsec3_50.c.

References dns_hash_sha1, INSIST, ISC_FALSE, ISC_TRUE, mem_tobuffer(), rdclass, REQUIRE, RETERR, uint16_tobuffer(), uint8_tobuffer(), and UNUSED.

static isc_result_t tostruct_nsec3 ( ARGS_TOSTRUCT   )  [inline, static]

Definition at line 389 of file nsec3_50.c.

References isc_region::base, cleanup(), ISC_LINK_INIT, isc_mem_free, ISC_R_NOMEMORY, ISC_R_SUCCESS, isc_region_consume, isc_region::length, mctx, mem_maybedup(), REQUIRE, uint16_consume_fromregion(), and uint8_consume_fromregion().

static void freestruct_nsec3 ( ARGS_FREESTRUCT   )  [inline, static]

Definition at line 435 of file nsec3_50.c.

References isc_mem_free, and REQUIRE.

static isc_result_t additionaldata_nsec3 ( ARGS_ADDLDATA   )  [inline, static]

Definition at line 454 of file nsec3_50.c.

References arg, ISC_R_SUCCESS, REQUIRE, and UNUSED.

static isc_result_t digest_nsec3 ( ARGS_DIGEST   )  [inline, static]

Definition at line 465 of file nsec3_50.c.

References arg, digest, dns_rdata_toregion(), r, and REQUIRE.

static isc_boolean_t checkowner_nsec3 ( ARGS_CHECKOWNER   )  [inline, static]

Definition at line 475 of file nsec3_50.c.

References buffer, dns_name_getlabel(), isc_base32hexnp_decoderegion(), isc_buffer_init, ISC_FALSE, ISC_R_SUCCESS, isc_region_consume, ISC_TRUE, name, NSEC3_MAX_HASH_LENGTH, rdclass, REQUIRE, and UNUSED.

static isc_boolean_t checknames_nsec3 ( ARGS_CHECKNAMES   )  [inline, static]

Definition at line 499 of file nsec3_50.c.

References ISC_TRUE, REQUIRE, and UNUSED.

static int casecompare_nsec3 ( ARGS_COMPARE   )  [inline, static]

Definition at line 511 of file nsec3_50.c.

References compare_nsec3().


Generated on Tue Apr 28 17:41:12 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha