ds_43.c File Reference

#include <isc/sha1.h>
#include <isc/sha2.h>
#include <dns/ds.h>
#include "dst_gost.h"

Go to the source code of this file.

Defines

#define RRTYPE_DS_ATTRIBUTES   (DNS_RDATATYPEATTR_DNSSEC|DNS_RDATATYPEATTR_ATPARENT)

Functions

static isc_result_t fromtext_ds (ARGS_FROMTEXT)
static isc_result_t totext_ds (ARGS_TOTEXT)
static isc_result_t fromwire_ds (ARGS_FROMWIRE)
static isc_result_t towire_ds (ARGS_TOWIRE)
static int compare_ds (ARGS_COMPARE)
static isc_result_t fromstruct_ds (ARGS_FROMSTRUCT)
static isc_result_t tostruct_ds (ARGS_TOSTRUCT)
static void freestruct_ds (ARGS_FREESTRUCT)
static isc_result_t additionaldata_ds (ARGS_ADDLDATA)
static isc_result_t digest_ds (ARGS_DIGEST)
static isc_boolean_t checkowner_ds (ARGS_CHECKOWNER)
static isc_boolean_t checknames_ds (ARGS_CHECKNAMES)
static int casecompare_ds (ARGS_COMPARE)


Define Documentation

#define RRTYPE_DS_ATTRIBUTES   (DNS_RDATATYPEATTR_DNSSEC|DNS_RDATATYPEATTR_ATPARENT)

Definition at line 25 of file ds_43.c.


Function Documentation

static isc_result_t fromtext_ds ( ARGS_FROMTEXT   )  [inline, static]

Definition at line 36 of file ds_43.c.

References isc_tokenvalue_t::as_textregion, isc_tokenvalue_t::as_ulong, callbacks, dns_dsdigest_fromtext(), DNS_DSDIGEST_GOST, DNS_DSDIGEST_SHA1, DNS_DSDIGEST_SHA256, DNS_DSDIGEST_SHA384, dns_secalg_fromtext(), ISC_FALSE, ISC_GOST_DIGESTLENGTH, isc_hex_tobuffer(), isc_lex_getmastertoken(), ISC_R_RANGE, ISC_SHA1_DIGESTLENGTH, ISC_SHA256_DIGESTLENGTH, ISC_SHA384_DIGESTLENGTH, isc_tokentype_number, isc_tokentype_string, mem_tobuffer(), origin, rdclass, REQUIRE, RETERR, RETTOK, token, uint16_tobuffer(), UNUSED, and isc_token::value.

static isc_result_t totext_ds ( ARGS_TOTEXT   )  [inline, static]

Definition at line 100 of file ds_43.c.

References dns_rdata_toregion(), DNS_STYLEFLAG_MULTILINE, DNS_STYLEFLAG_NOCRYPTO, isc_hex_totext(), ISC_R_SUCCESS, isc_region_consume, REQUIRE, RETERR, str_totext(), uint16_fromregion(), uint8_fromregion(), and UNUSED.

static isc_result_t fromwire_ds ( ARGS_FROMWIRE   )  [inline, static]

Definition at line 156 of file ds_43.c.

References isc_region::base, DNS_DSDIGEST_GOST, DNS_DSDIGEST_SHA1, DNS_DSDIGEST_SHA256, DNS_DSDIGEST_SHA384, isc_buffer_activeregion, isc_buffer_forward, ISC_GOST_DIGESTLENGTH, ISC_R_UNEXPECTEDEND, ISC_SHA1_DIGESTLENGTH, ISC_SHA256_DIGESTLENGTH, ISC_SHA384_DIGESTLENGTH, isc_region::length, mem_tobuffer(), rdclass, REQUIRE, and UNUSED.

static isc_result_t towire_ds ( ARGS_TOWIRE   )  [inline, static]

Definition at line 205 of file ds_43.c.

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

static int compare_ds ( ARGS_COMPARE   )  [inline, static]

Definition at line 218 of file ds_43.c.

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

Referenced by casecompare_ds().

static isc_result_t fromstruct_ds ( ARGS_FROMSTRUCT   )  [inline, static]

Definition at line 234 of file ds_43.c.

References DNS_DSDIGEST_GOST, DNS_DSDIGEST_SHA1, DNS_DSDIGEST_SHA256, DNS_DSDIGEST_SHA384, ISC_GOST_DIGESTLENGTH, ISC_SHA1_DIGESTLENGTH, ISC_SHA256_DIGESTLENGTH, ISC_SHA384_DIGESTLENGTH, mem_tobuffer(), rdclass, REQUIRE, RETERR, uint16_tobuffer(), uint8_tobuffer(), and UNUSED.

static isc_result_t tostruct_ds ( ARGS_TOSTRUCT   )  [inline, static]

Definition at line 269 of file ds_43.c.

References isc_region::base, dns_rdata_toregion(), ISC_LINK_INIT, ISC_R_NOMEMORY, ISC_R_SUCCESS, isc_region_consume, isc_region::length, mctx, mem_maybedup(), REQUIRE, uint16_fromregion(), and uint8_fromregion().

static void freestruct_ds ( ARGS_FREESTRUCT   )  [inline, static]

Definition at line 300 of file ds_43.c.

References isc_mem_free, and REQUIRE.

static isc_result_t additionaldata_ds ( ARGS_ADDLDATA   )  [inline, static]

Definition at line 315 of file ds_43.c.

References arg, ISC_R_SUCCESS, REQUIRE, and UNUSED.

static isc_result_t digest_ds ( ARGS_DIGEST   )  [inline, static]

Definition at line 326 of file ds_43.c.

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

static isc_boolean_t checkowner_ds ( ARGS_CHECKOWNER   )  [inline, static]

Definition at line 337 of file ds_43.c.

References ISC_TRUE, name, rdclass, REQUIRE, and UNUSED.

static isc_boolean_t checknames_ds ( ARGS_CHECKNAMES   )  [inline, static]

Definition at line 350 of file ds_43.c.

References ISC_TRUE, REQUIRE, and UNUSED.

static int casecompare_ds ( ARGS_COMPARE   )  [inline, static]

Definition at line 362 of file ds_43.c.

References compare_ds().


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