mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-11 10:40:56 -04:00
create/destroy hash
This commit is contained in:
parent
a780addfd8
commit
29fec1301e
2 changed files with 8 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: keycreate.c,v 1.7 2001/04/16 17:23:34 gson Exp $ */
|
||||
/* $Id: keycreate.c,v 1.7.2.1 2004/01/27 04:43:21 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>
|
||||
|
|
@ -215,6 +216,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;
|
||||
|
|
@ -300,6 +302,7 @@ main(int argc, char *argv[]) {
|
|||
isc_log_destroy(&log);
|
||||
|
||||
dst_lib_destroy();
|
||||
isc_hash_destroy();
|
||||
isc_entropy_detach(&ectx);
|
||||
|
||||
isc_mem_destroy(&mctx);
|
||||
|
|
|
|||
|
|
@ -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.4.2.1 2004/01/27 04:43:21 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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue