* 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>
#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>
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;
isc_log_destroy(&log);
dst_lib_destroy();
+ isc_hash_destroy();
isc_entropy_detach(&ectx);
isc_mem_destroy(&mctx);
* 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>
#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>
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;
isc_log_destroy(&log);
dst_lib_destroy();
+ isc_hash_destroy();
isc_entropy_detach(&ectx);
isc_mem_destroy(&mctx);