]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
create/destroy hash
authorMark Andrews <marka@isc.org>
Tue, 27 Jan 2004 04:25:36 +0000 (04:25 +0000)
committerMark Andrews <marka@isc.org>
Tue, 27 Jan 2004 04:25:36 +0000 (04:25 +0000)
bin/tests/system/tkey/keycreate.c
bin/tests/system/tkey/keydelete.c

index 0c615986cab3818a7242d6dd53d1a076ff4ec43a..9de7a73d5237ccdba20ac4a2fef2f19be442a5c5 100644 (file)
@@ -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 <config.h>
 
@@ -25,6 +25,7 @@
 #include <isc/app.h>
 #include <isc/base64.h>
 #include <isc/entropy.h>
+#include <isc/hash.h>
 #include <isc/log.h>
 #include <isc/mem.h>
 #include <isc/sockaddr.h>
@@ -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);
index abfe1edf2348afaf98d8681d8d01f027383e1fd8..f9f466b930976b558d4546707095184633769fac 100644 (file)
@@ -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 <config.h>
 
@@ -25,6 +25,7 @@
 #include <isc/app.h>
 #include <isc/base64.h>
 #include <isc/entropy.h>
+#include <isc/hash.h>
 #include <isc/log.h>
 #include <isc/mem.h>
 #include <isc/sockaddr.h>
@@ -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);