dsdigest.h File Reference

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

Go to the source code of this file.

Defines

#define DNS_DSDIGEST_H   1
#define DNS_DSDIGEST_FORMATSIZE   20

Functions

ISC_LANG_BEGINDECLS isc_result_t dns_dsdigest_fromtext (dns_dsdigest_t *dsdigestp, isc_textregion_t *source)
 Convert the text 'source' refers to into a DS/DLV digest type value. The text may contain either a mnemonic digest name or a decimal digest number.
isc_result_t dns_dsdigest_totext (dns_dsdigest_t dsdigest, isc_buffer_t *target)
 Put a textual representation of the DS/DLV digest type 'dsdigest' into 'target'.
void dns_dsdigest_format (dns_dsdigest_t typ, char *cp, unsigned int size)
 Wrapper for dns_dsdigest_totext(), writing text into 'cp'.


Detailed Description

Definition in file dsdigest.h.


Define Documentation

#define DNS_DSDIGEST_H   1

Definition at line 20 of file dsdigest.h.

#define DNS_DSDIGEST_FORMATSIZE   20

Definition at line 68 of file dsdigest.h.


Function Documentation

ISC_LANG_BEGINDECLS isc_result_t dns_dsdigest_fromtext ( dns_dsdigest_t dsdigestp,
isc_textregion_t source 
)

Convert the text 'source' refers to into a DS/DLV digest type value. The text may contain either a mnemonic digest name or a decimal digest number.

Requires:

Returns:

Definition at line 422 of file rcode.c.

References dns_mnemonic_fromtext(), ISC_R_SUCCESS, RETERR, and keyflag::value.

Referenced by disable_ds_digests(), disabled_ds_digests(), fromtext_cds(), and fromtext_ds().

isc_result_t dns_dsdigest_totext ( dns_dsdigest_t  dsdigest,
isc_buffer_t target 
)

Put a textual representation of the DS/DLV digest type 'dsdigest' into 'target'.

Requires:

Ensures, if the result is success: Returns:

Definition at line 430 of file rcode.c.

References dns_mnemonic_totext().

Referenced by dns_dsdigest_format().

void dns_dsdigest_format ( dns_dsdigest_t  typ,
char *  cp,
unsigned int  size 
)

Wrapper for dns_dsdigest_totext(), writing text into 'cp'.

Definition at line 435 of file rcode.c.

References isc_region::base, dns_dsdigest_totext(), isc_buffer_init, isc_buffer_usedregion, ISC_R_SUCCESS, isc_region::length, r, and REQUIRE.


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