secalg.h File Reference

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

Go to the source code of this file.

Defines

#define DNS_SECALG_H   1
#define DNS_SECALG_FORMATSIZE   20

Functions

ISC_LANG_BEGINDECLS isc_result_t dns_secalg_fromtext (dns_secalg_t *secalgp, isc_textregion_t *source)
 Convert the text 'source' refers to into a DNSSEC security algorithm value. The text may contain either a mnemonic algorithm name or a decimal algorithm number.
isc_result_t dns_secalg_totext (dns_secalg_t secalg, isc_buffer_t *target)
 Put a textual representation of the DNSSEC security algorithm 'secalg' into 'target'.
void dns_secalg_format (dns_secalg_t alg, char *cp, unsigned int size)
 Wrapper for dns_secalg_totext(), writing text into 'cp'.


Detailed Description

Definition in file secalg.h.


Define Documentation

#define DNS_SECALG_H   1

Definition at line 21 of file secalg.h.

#define DNS_SECALG_FORMATSIZE   20

Definition at line 69 of file secalg.h.

Referenced by dns_dnssec_findzonekeys2(), dns_dnssec_keylistfromrdataset(), dns_private_totext(), main(), mkey_dumpzone(), and ns_server_signing().


Function Documentation

ISC_LANG_BEGINDECLS isc_result_t dns_secalg_fromtext ( dns_secalg_t secalgp,
isc_textregion_t source 
)

Convert the text 'source' refers to into a DNSSEC security algorithm value. The text may contain either a mnemonic algorithm name or a decimal algorithm number.

Requires:

Returns:

Definition at line 326 of file rcode.c.

References dns_mnemonic_fromtext(), ISC_R_SUCCESS, and RETERR.

Referenced by disable_algorithms(), disabled_algorithms(), fromtext_cdnskey(), fromtext_cds(), fromtext_cert(), fromtext_dnskey(), fromtext_ds(), fromtext_key(), fromtext_keydata(), fromtext_rrsig(), fromtext_sig(), and main().

isc_result_t dns_secalg_totext ( dns_secalg_t  secalg,
isc_buffer_t target 
)

Put a textual representation of the DNSSEC security algorithm 'secalg' into 'target'.

Requires:

Ensures, if the result is success: Returns:

Definition at line 334 of file rcode.c.

References dns_mnemonic_totext().

Referenced by dns_secalg_format(), and totext_cert().

void dns_secalg_format ( dns_secalg_t  alg,
char *  cp,
unsigned int  size 
)

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

Definition at line 339 of file rcode.c.

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

Referenced by del_sigs(), dns_dnssec_findzonekeys2(), dns_dnssec_keylistfromrdataset(), dns_private_totext(), dst_key_format(), main(), mkey_dumpzone(), publish_key(), remove_key(), sig_format(), totext_cdnskey(), totext_dnskey(), totext_keydata(), verifyset(), and verifyzone().


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