From 8d1374958f66070fa674b8da10da355c11dd0b28 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 27 Jan 2004 04:25:36 +0000 Subject: [PATCH] create/destroy hash --- bin/tests/system/tkey/keycreate.c | 5 ++++- bin/tests/system/tkey/keydelete.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/tkey/keycreate.c b/bin/tests/system/tkey/keycreate.c index 0c615986ca..9de7a73d52 100644 --- a/bin/tests/system/tkey/keycreate.c +++ b/bin/tests/system/tkey/keycreate.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: keycreate.c,v 1.8 2001/10/09 22:58:23 gson Exp $ */ +/* $Id: keycreate.c,v 1.9 2004/01/27 04:25:36 marka Exp $ */ #include @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -228,6 +229,7 @@ main(int argc, char *argv[]) { ectx = NULL; RUNCHECK(isc_entropy_create(mctx, &ectx)); RUNCHECK(isc_entropy_createfilesource(ectx, "random.data")); + RUNCHECK(isc_hash_create(mctx, ectx, DNS_NAME_MAXWIRE)); log = NULL; logconfig = NULL; @@ -313,6 +315,7 @@ main(int argc, char *argv[]) { isc_log_destroy(&log); dst_lib_destroy(); + isc_hash_destroy(); isc_entropy_detach(&ectx); isc_mem_destroy(&mctx); diff --git a/bin/tests/system/tkey/keydelete.c b/bin/tests/system/tkey/keydelete.c index abfe1edf23..f9f466b930 100644 --- a/bin/tests/system/tkey/keydelete.c +++ b/bin/tests/system/tkey/keydelete.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: keydelete.c,v 1.4 2001/02/28 03:05:01 bwelling Exp $ */ +/* $Id: keydelete.c,v 1.5 2004/01/27 04:25:36 marka Exp $ */ #include @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -170,6 +171,7 @@ main(int argc, char **argv) { ectx = NULL; RUNCHECK(isc_entropy_create(mctx, &ectx)); RUNCHECK(isc_entropy_createfilesource(ectx, "random.data")); + RUNCHECK(isc_hash_create(mctx, ectx, DNS_NAME_MAXWIRE)); log = NULL; logconfig = NULL; @@ -252,6 +254,7 @@ main(int argc, char **argv) { isc_log_destroy(&log); dst_lib_destroy(); + isc_hash_destroy(); isc_entropy_detach(&ectx); isc_mem_destroy(&mctx);