ds.c File Reference

#include <config.h>
#include <string.h>
#include <isc/buffer.h>
#include <isc/region.h>
#include <isc/sha1.h>
#include <isc/sha2.h>
#include <isc/util.h>
#include <dns/ds.h>
#include <dns/fixedname.h>
#include <dns/name.h>
#include <dns/rdata.h>
#include <dns/rdatastruct.h>
#include <dns/result.h>
#include <dst/dst.h>

Go to the source code of this file.

Functions

isc_result_t dns_ds_buildrdata (dns_name_t *owner, dns_rdata_t *key, unsigned int digest_type, unsigned char *buffer, dns_rdata_t *rdata)
 Build the rdata of a DS record.


Detailed Description

Definition in file ds.c.


Function Documentation

isc_result_t dns_ds_buildrdata ( dns_name_t owner,
dns_rdata_t key,
unsigned int  digest_type,
unsigned char *  buffer,
dns_rdata_t rdata 
)

Build the rdata of a DS record.

Requires:

Ensures:

Definition at line 46 of file ds.c.

References isc_region::base, digest, DNS_DS_BUFFERSIZE, DNS_DSDIGEST_GOST, DNS_DSDIGEST_SHA1, DNS_DSDIGEST_SHA256, DNS_DSDIGEST_SHA384, dns_fixedname_init, dns_fixedname_name, dns_name_downcase(), dns_name_toregion(), dns_rdata_fromstruct(), dns_rdata_toregion(), dst_ds_digest_supported(), dst_region_computeid(), INSIST, isc_buffer_init, ISC_GOST_DIGESTLENGTH, ISC_R_NOTIMPLEMENTED, ISC_SHA1_DIGESTLENGTH, isc_sha1_final(), isc_sha1_init(), isc_sha1_update(), ISC_SHA256_DIGESTLENGTH, isc_sha256_final(), isc_sha256_init(), isc_sha256_update(), ISC_SHA384_DIGESTLENGTH, isc_sha384_final(), isc_sha384_init(), isc_sha384_update(), isc_region::length, name, r, dns_rdata::rdclass, REQUIRE, RETERR, and dns_rdata::type.

Referenced by emit(), keyfromds(), loadds(), and writeset().


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