cds_59.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_CDS_ATTRIBUTES   0

Functions

static isc_result_t fromtext_cds (ARGS_FROMTEXT)
static isc_result_t totext_cds (ARGS_TOTEXT)
static isc_result_t fromwire_cds (ARGS_FROMWIRE)
static isc_result_t towire_cds (ARGS_TOWIRE)
static int compare_cds (ARGS_COMPARE)
static isc_result_t fromstruct_cds (ARGS_FROMSTRUCT)
static isc_result_t tostruct_cds (ARGS_TOSTRUCT)
static void freestruct_cds (ARGS_FREESTRUCT)
static isc_result_t additionaldata_cds (ARGS_ADDLDATA)
static isc_result_t digest_cds (ARGS_DIGEST)
static isc_boolean_t checkowner_cds (ARGS_CHECKOWNER)
static isc_boolean_t checknames_cds (ARGS_CHECKNAMES)
static int casecompare_cds (ARGS_COMPARE)


Define Documentation

#define RRTYPE_CDS_ATTRIBUTES   0

Definition at line 22 of file cds_59.c.


Function Documentation

static isc_result_t fromtext_cds ( ARGS_FROMTEXT   )  [inline, static]

Definition at line 32 of file cds_59.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_cds ( ARGS_TOTEXT   )  [inline, static]

Definition at line 96 of file cds_59.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_cds ( ARGS_FROMWIRE   )  [inline, static]

Definition at line 152 of file cds_59.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_cds ( ARGS_TOWIRE   )  [inline, static]

Definition at line 201 of file cds_59.c.

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

static int compare_cds ( ARGS_COMPARE   )  [inline, static]

Definition at line 214 of file cds_59.c.

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

Referenced by casecompare_cds().

static isc_result_t fromstruct_cds ( ARGS_FROMSTRUCT   )  [inline, static]

Definition at line 230 of file cds_59.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_cds ( ARGS_TOSTRUCT   )  [inline, static]

Definition at line 265 of file cds_59.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_cds ( ARGS_FREESTRUCT   )  [inline, static]

Definition at line 296 of file cds_59.c.

References isc_mem_free, and REQUIRE.

static isc_result_t additionaldata_cds ( ARGS_ADDLDATA   )  [inline, static]

Definition at line 311 of file cds_59.c.

References arg, ISC_R_SUCCESS, REQUIRE, and UNUSED.

static isc_result_t digest_cds ( ARGS_DIGEST   )  [inline, static]

Definition at line 322 of file cds_59.c.

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

static isc_boolean_t checkowner_cds ( ARGS_CHECKOWNER   )  [inline, static]

Definition at line 333 of file cds_59.c.

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

static isc_boolean_t checknames_cds ( ARGS_CHECKNAMES   )  [inline, static]

Definition at line 346 of file cds_59.c.

References ISC_TRUE, REQUIRE, and UNUSED.

static int casecompare_cds ( ARGS_COMPARE   )  [inline, static]

Definition at line 358 of file cds_59.c.

References compare_cds().


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