dnssec-verify.c File Reference

#include <config.h>
#include <stdlib.h>
#include <time.h>
#include <isc/app.h>
#include <isc/base32.h>
#include <isc/commandline.h>
#include <isc/entropy.h>
#include <isc/event.h>
#include <isc/file.h>
#include <isc/hash.h>
#include <isc/hex.h>
#include <isc/mem.h>
#include <isc/mutex.h>
#include <isc/os.h>
#include <isc/print.h>
#include <isc/random.h>
#include <isc/rwlock.h>
#include <isc/serial.h>
#include <isc/stdio.h>
#include <isc/string.h>
#include <isc/time.h>
#include <isc/util.h>
#include <dns/db.h>
#include <dns/dbiterator.h>
#include <dns/diff.h>
#include <dns/dnssec.h>
#include <dns/ds.h>
#include <dns/fixedname.h>
#include <dns/keyvalues.h>
#include <dns/log.h>
#include <dns/master.h>
#include <dns/masterdump.h>
#include <dns/nsec.h>
#include <dns/nsec3.h>
#include <dns/rdata.h>
#include <dns/rdatalist.h>
#include <dns/rdataset.h>
#include <dns/rdataclass.h>
#include <dns/rdatasetiter.h>
#include <dns/rdatastruct.h>
#include <dns/rdatatype.h>
#include <dns/result.h>
#include <dns/soa.h>
#include <dst/dst.h>
#include "dnssectool.h"

Go to the source code of this file.


#define CMDLINE_FLAGS   "hm:o:I:c:E:v:Vxz"


static void loadzone (char *file, char *origin, dns_rdataclass_t rdclass, dns_db_t **db)
 Load the zone file from disk.
usage (void)
int main (int argc, char *argv[])


const char * program = "dnssec-verify"
int verbose
static isc_stdtime_t now
static isc_mem_tmctx = NULL
static isc_entropy_tectx = NULL
static dns_masterformat_t inputformat = dns_masterformat_text
static dns_db_tgdb
static dns_dbversion_tgversion
static dns_rdataclass_t gclass
static dns_name_tgorigin
static isc_boolean_t ignore_kskflag = ISC_FALSE
static isc_boolean_t keyset_kskonly = ISC_FALSE

Detailed Description

Definition in file dnssec-verify.c.

Define Documentation

#define CMDLINE_FLAGS   "hm:o:I:c:E:v:Vxz"

Function Documentation

static void loadzone ( char *  file,
char *  origin,
dns_rdataclass_t  rdclass,
dns_db_t **  db 
) [static]

Load the zone file from disk.

Definition at line 94 of file dnssec-verify.c.

References check_result(), dns_db_create(), dns_db_load2(), dns_dbtype_zone, dns_fixedname_init, dns_fixedname_name, dns_name_fromtext(), DNS_R_SEENINCLUDE, dns_rootname, fatal(), inputformat, isc_buffer_add, isc_buffer_init, ISC_R_SUCCESS, isc_result_totext(), and name.

static ISC_PLATFORM_NORETURN_PRE void usage ( void   )  [static]

Definition at line 123 of file dnssec-verify.c.

References PK11_LIB_LOCATION, program, and VERSION.

int main ( int  argc,
char *  argv[] 

Definition at line 159 of file dnssec-verify.c.

References check_result(), cleanup_entropy(), cleanup_logging(), CMDLINE_FLAGS, dns_db_class(), dns_db_closeversion(), dns_db_detach(), dns_db_newversion(), dns_db_origin(), dns_masterformat_raw, dns_masterformat_text, dns_name_destroy(), DNS_NAME_MAXWIRE, dns_result_register(), dst_lib_destroy(), dst_lib_init2(), fatal(), gclass, gversion, ignore_kskflag, inputformat, isc_app_finish(), isc_app_start(), isc_commandline_argument, isc_commandline_errprint, isc_commandline_index, isc_commandline_option, isc_commandline_parse(), isc_commandline_reset, ISC_ENTROPY_BLOCKING, ISC_FALSE, isc_hash_create(), isc_hash_destroy(), isc_mem_create(), ISC_MEM_DEBUGCTX, isc_mem_debugging, ISC_MEM_DEBUGRECORD, ISC_MEM_DEBUGSIZE, ISC_MEM_DEBUGTRACE, ISC_MEM_DEBUGUSAGE, isc_mem_destroy(), isc_mem_stats(), ISC_R_SUCCESS, isc_result_totext(), isc_stdtime_get(), ISC_TRUE, keyset_kskonly, loadzone(), now, origin, pk11_result_register(), POST, program, rdclass, setup_entropy(), setup_logging(), strtoclass(), usage(), verbose, verifyzone(), and version.

Variable Documentation

const char* program = "dnssec-verify"

Definition at line 76 of file dnssec-verify.c.

int verbose

Definition at line 77 of file dnssec-verify.c.

isc_stdtime_t now [static]

Definition at line 79 of file dnssec-verify.c.

isc_mem_t* mctx = NULL [static]

Definition at line 80 of file dnssec-verify.c.

isc_entropy_t* ectx = NULL [static]

Definition at line 81 of file dnssec-verify.c.

dns_masterformat_t inputformat = dns_masterformat_text [static]

Definition at line 82 of file dnssec-verify.c.

dns_db_t* gdb [static]

Definition at line 83 of file dnssec-verify.c.

dns_dbversion_t* gversion [static]

Definition at line 84 of file dnssec-verify.c.

dns_rdataclass_t gclass [static]

Definition at line 85 of file dnssec-verify.c.

dns_name_t* gorigin [static]

Definition at line 86 of file dnssec-verify.c.

isc_boolean_t ignore_kskflag = ISC_FALSE [static]

Definition at line 87 of file dnssec-verify.c.

isc_boolean_t keyset_kskonly = ISC_FALSE [static]

Definition at line 88 of file dnssec-verify.c.

Generated on Tue Apr 28 17:41:06 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha