319. [func] The named.conf "controls" statement is now used
to configure the OMAPI command channel.
+ 318. [func] dns_c_ndcctx_destroy() could never return anything
+ except ISC_R_SUCCESS; made it have void return instead.
+
317. [func] Use callbacks from libomapi to determine if a
new connection is valid, and if a key requested
to be used with that connection is valid.
* SOFTWARE.
*/
-/* $Id: confndc.c,v 1.18 2000/06/19 17:41:42 bwelling Exp $ */
+/* $Id: confndc.c,v 1.18.2.1 2000/07/11 19:35:12 gson Exp $ */
/*
** options {
#include <dns/confndc.h>
#include <dns/log.h>
-/* Type keys for symtab lookup */
+/*
+ * Type keys for symtab lookup.
+ */
#define KEYWORD_SYM_TYPE 0x1
#define CLASS_SYM_TYPE 0x2
#define ACL_SYM_TYPE 0x3
return (ISC_R_SUCCESS);
}
-isc_result_t
+void
dns_c_ndcctx_destroy(dns_c_ndcctx_t **ndcctx) {
dns_c_ndcctx_t *ctx;
isc_mem_t *mem;
isc_mem_put(mem, ctx, sizeof *ctx);
*ndcctx = NULL;
-
- return (ISC_R_SUCCESS);
}
{
ndcpcontext pctx;
isc_result_t result;
- dns_c_ndcctx_t *aConfig;
+ dns_c_ndcctx_t *aConfig = NULL;
result = parser_setup(&pctx, mem, filename);
if (result != ISC_R_SUCCESS)
* SOFTWARE.
*/
-/* $Id: confndc.h,v 1.8 2000/06/22 21:55:26 tale Exp $ */
+/* $Id: confndc.h,v 1.8.2.1 2000/07/11 19:35:13 gson Exp $ */
#ifndef DNS_CONFNDC_H
#define DNS_CONFNDC_H 1
isc_result_t
dns_c_ndcctx_new(isc_mem_t *mem, dns_c_ndcctx_t **ctx);
-isc_result_t
+void
dns_c_ndcctx_destroy(dns_c_ndcctx_t **ctx);
isc_result_t