#include <config.h>
#include <isc/buffer.h>
#include <isc/string.h>
#include <isc/mem.h>
#include <isccfg/cfg.h>
#include <dns/fixedname.h>
#include <dns/keyvalues.h>
#include <dns/name.h>
#include <dns/tkey.h>
#include <dst/gssapi.h>
#include <named/tkeyconf.h>
#include <named/log.h>
Go to the source code of this file.
Defines | |
#define | RETERR(x) |
#define | LOG(msg) |
Functions | |
isc_result_t | ns_tkeyctx_fromconfig (const cfg_obj_t *options, isc_mem_t *mctx, isc_entropy_t *ectx, dns_tkeyctx_t **tctxp) |
Create a TKEY context and configure it, including the default DH key and default domain, according to 'options'. |
Definition in file tkeyconf.c.
#define RETERR | ( | x | ) |
Value:
do { \ result = (x); \ if (result != ISC_R_SUCCESS) \ goto failure; \ } while (0)
Definition at line 39 of file tkeyconf.c.
#define LOG | ( | msg | ) |
Value:
isc_log_write(ns_g_lctx, \ NS_LOGCATEGORY_GENERAL, \ NS_LOGMODULE_SERVER, \ ISC_LOG_ERROR, \ "%s", msg)
Definition at line 46 of file tkeyconf.c.
isc_result_t ns_tkeyctx_fromconfig | ( | const cfg_obj_t * | options, | |
isc_mem_t * | mctx, | |||
isc_entropy_t * | ectx, | |||
dns_tkeyctx_t ** | tctxp | |||
) |
Create a TKEY context and configure it, including the default DH key and default domain, according to 'options'.
Requires:
Definition at line 54 of file tkeyconf.c.
References cfg_map_get(), cfg_obj_asstring(), cfg_obj_asuint32(), cfg_tuple_get(), dns_tkeyctx::dhkey, dns_fixedname_init, dns_fixedname_name, DNS_KEYALG_DH, dns_name_dup(), dns_name_fromtext(), dns_name_init(), dns_rootname, dns_tkeyctx_create(), dns_tkeyctx_destroy(), dns_tkeyctx::domain, dst_gssapi_acquirecred(), dst_key_fromfile(), DST_TYPE_KEY, DST_TYPE_PRIVATE, DST_TYPE_PUBLIC, dns_tkeyctx::gssapi_keytab, dns_tkeyctx::gsscred, isc_buffer_add, isc_buffer_constinit, ISC_FALSE, isc_mem_get, isc_mem_strdup, ISC_R_NOMEMORY, ISC_R_SUCCESS, name, RETERR, and s.
Referenced by load_configuration().