From 31b6349dbb682904c9ee5bd63340f23ea4f4e011 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Fri, 5 Nov 1999 16:53:24 +0000 Subject: [PATCH] added dns_tkey_destroy --- bin/named/main.c | 2 ++ bin/tests/tkey_test.c | 1 + lib/dns/include/dns/tkey.h | 6 ++++++ 3 files changed, 9 insertions(+) diff --git a/bin/named/main.c b/bin/named/main.c index 7d44c43a92..9cfc386a7f 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -32,6 +32,7 @@ #include #include +#include #include #include @@ -280,6 +281,7 @@ static void cleanup() { destroy_managers(); dns_tsig_destroy(); + dns_tkey_destroy(); isc_rwlock_destroy(&ns_g_viewlock); isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN, ISC_LOG_NOTICE, "exiting"); diff --git a/bin/tests/tkey_test.c b/bin/tests/tkey_test.c index 240493808b..6abc940808 100644 --- a/bin/tests/tkey_test.c +++ b/bin/tests/tkey_test.c @@ -345,6 +345,7 @@ main(int argc, char *argv[]) { isc_timermgr_destroy(&timermgr); dns_tsig_destroy(); + dns_tkey_destroy(); if (verbose) isc_mem_stats(mctx, stdout); isc_mem_destroy(&mctx); diff --git a/lib/dns/include/dns/tkey.h b/lib/dns/include/dns/tkey.h index d9c897d36a..de19359b28 100644 --- a/lib/dns/include/dns/tkey.h +++ b/lib/dns/include/dns/tkey.h @@ -52,6 +52,12 @@ dns_tkey_init(isc_log_t *lctx, dns_c_ctx_t *cfg, isc_mem_t *mctx); * return codes from dns_name_fromtext() */ +void +dns_tkey_destroy(void); +/* + * Frees all data associated with the TKEY subsystem + */ + isc_result_t dns_tkey_processquery(dns_message_t *msg); /*