From: Mark Andrews Date: Tue, 27 Jan 2004 04:25:36 +0000 (+0000) Subject: create/destroy hash X-Git-Tag: v9.2.4rc1~81^2~13 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=8d1374958f66070fa674b8da10da355c11dd0b28;p=thirdparty%2Fbind9.git create/destroy hash --- diff --git a/bin/tests/system/tkey/keycreate.c b/bin/tests/system/tkey/keycreate.c index 0c615986cab..9de7a73d523 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 abfe1edf234..f9f466b9309 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);