Commit 31b6349d authored by Brian Wellington's avatar Brian Wellington
Browse files

added dns_tkey_destroy

parent 61b103da
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <dns/dbtable.h> #include <dns/dbtable.h>
#include <dns/tsig.h> #include <dns/tsig.h>
#include <dns/tkey.h>
#include <dns/result.h> #include <dns/result.h>
#include <dst/result.h> #include <dst/result.h>
...@@ -280,6 +281,7 @@ static void ...@@ -280,6 +281,7 @@ static void
cleanup() { cleanup() {
destroy_managers(); destroy_managers();
dns_tsig_destroy(); dns_tsig_destroy();
dns_tkey_destroy();
isc_rwlock_destroy(&ns_g_viewlock); isc_rwlock_destroy(&ns_g_viewlock);
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN, isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
ISC_LOG_NOTICE, "exiting"); ISC_LOG_NOTICE, "exiting");
......
...@@ -345,6 +345,7 @@ main(int argc, char *argv[]) { ...@@ -345,6 +345,7 @@ main(int argc, char *argv[]) {
isc_timermgr_destroy(&timermgr); isc_timermgr_destroy(&timermgr);
dns_tsig_destroy(); dns_tsig_destroy();
dns_tkey_destroy();
if (verbose) if (verbose)
isc_mem_stats(mctx, stdout); isc_mem_stats(mctx, stdout);
isc_mem_destroy(&mctx); isc_mem_destroy(&mctx);
......
...@@ -52,6 +52,12 @@ dns_tkey_init(isc_log_t *lctx, dns_c_ctx_t *cfg, isc_mem_t *mctx); ...@@ -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() * return codes from dns_name_fromtext()
*/ */
void
dns_tkey_destroy(void);
/*
* Frees all data associated with the TKEY subsystem
*/
isc_result_t isc_result_t
dns_tkey_processquery(dns_message_t *msg); dns_tkey_processquery(dns_message_t *msg);
/* /*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment