ds.h File Reference

#include <isc/lang.h>
#include <dns/types.h>

Go to the source code of this file.

Defines

#define DNS_DS_H   1
#define DNS_DSDIGEST_SHA1   (1)
#define DNS_DSDIGEST_SHA256   (2)
#define DNS_DSDIGEST_GOST   (3)
#define DNS_DSDIGEST_SHA384   (4)
#define DNS_DS_BUFFERSIZE   (52)

Functions

ISC_LANG_BEGINDECLS 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.


Define Documentation

#define DNS_DS_H   1

Definition at line 21 of file ds.h.

#define DNS_DSDIGEST_SHA1   (1)

Definition at line 27 of file ds.h.

Referenced by dlv_validatezonekey(), dns_ds_buildrdata(), dst_ds_digest_supported(), fromstruct_cds(), fromstruct_dlv(), fromstruct_ds(), fromtext_cds(), fromtext_dlv(), fromtext_ds(), fromwire_cds(), fromwire_dlv(), fromwire_ds(), loadds(), main(), validatezonekey(), and writeset().

#define DNS_DSDIGEST_SHA256   (2)

Definition at line 28 of file ds.h.

Referenced by dlv_validatezonekey(), dns_ds_buildrdata(), dst_ds_digest_supported(), fromstruct_cds(), fromstruct_dlv(), fromstruct_ds(), fromtext_cds(), fromtext_dlv(), fromtext_ds(), fromwire_cds(), fromwire_dlv(), fromwire_ds(), loadds(), main(), validatezonekey(), and writeset().

#define DNS_DSDIGEST_GOST   (3)

Definition at line 29 of file ds.h.

Referenced by dns_ds_buildrdata(), dst_ds_digest_supported(), fromstruct_cds(), fromstruct_dlv(), fromstruct_ds(), fromtext_cds(), fromtext_dlv(), fromtext_ds(), fromwire_cds(), fromwire_dlv(), fromwire_ds(), and main().

#define DNS_DSDIGEST_SHA384   (4)

Definition at line 30 of file ds.h.

Referenced by dns_ds_buildrdata(), dst_ds_digest_supported(), fromstruct_cds(), fromstruct_dlv(), fromstruct_ds(), fromtext_cds(), fromtext_dlv(), fromtext_ds(), fromwire_cds(), fromwire_dlv(), fromwire_ds(), and main().

#define DNS_DS_BUFFERSIZE   (52)

Definition at line 35 of file ds.h.

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


Function Documentation

ISC_LANG_BEGINDECLS 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:09 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha