check.h File Reference

#include <isc/lang.h>
#include <isc/types.h>
#include <isccfg/cfg.h>

Go to the source code of this file.

Defines

#define BIND9_CHECK_H   1

Functions

ISC_LANG_BEGINDECLS isc_result_t bind9_check_namedconf (const cfg_obj_t *config, isc_log_t *logctx, isc_mem_t *mctx)
 Check the syntactic validity of a configuration parse tree generated from a named.conf file.
isc_result_t bind9_check_key (const cfg_obj_t *config, isc_log_t *logctx)
 Same as bind9_check_namedconf(), but for a single 'key' statement.


Detailed Description

Definition in file check.h.


Define Documentation

#define BIND9_CHECK_H   1

Definition at line 21 of file check.h.


Function Documentation

ISC_LANG_BEGINDECLS isc_result_t bind9_check_namedconf ( const cfg_obj_t config,
isc_log_t logctx,
isc_mem_t mctx 
)

Check the syntactic validity of a configuration parse tree generated from a named.conf file.

Requires:

Returns:

Definition at line 3104 of file check.c.

References isc_symvalue::as_cpointer, isc_textregion::base, bind9_check_controls(), bind9_check_logging(), cfg_list_first(), cfg_list_next(), cfg_listelt_value(), cfg_map_get(), cfg_obj_asstring(), cfg_obj_file(), cfg_obj_isstring(), cfg_obj_line(), cfg_obj_log(), cfg_tuple_get(), check_dual_stack(), check_options(), check_order(), check_viewconf(), DE_CONST, dns_rdataclass_fromtext(), ISC_FALSE, ISC_LOG_ERROR, ISC_R_EXISTS, ISC_R_FAILURE, ISC_R_SUCCESS, isc_symexists_reject, isc_symtab_create(), isc_symtab_define(), isc_symtab_destroy(), isc_symtab_lookup(), ISC_TRUE, key, isc_textregion::length, name, optlevel_options, r, RUNTIME_CHECK, and symtab.

Referenced by load_configuration(), and main().

isc_result_t bind9_check_key ( const cfg_obj_t config,
isc_log_t logctx 
)

Same as bind9_check_namedconf(), but for a single 'key' statement.

Definition at line 2173 of file check.c.

References algorithm, algorithms, cfg_map_get(), cfg_map_getname(), cfg_obj_asstring(), cfg_obj_log(), digestbits, isc_base64_decodestring(), isc_buffer_init, ISC_LOG_ERROR, ISC_LOG_WARNING, isc_parse_uint16(), ISC_R_FAILURE, ISC_R_NOTFOUND, ISC_R_RANGE, ISC_R_SUCCESS, isc_result_totext(), name, and keyalgorithms::name.

Referenced by check_keylist(), and get_rndckey().


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