#include "dnssectool.h"
-#ifndef PATH_MAX
-#define PATH_MAX 1024 /* WIN32, and others don't define this. */
-#endif
-
const char *program = "dnssec-cds";
-int verbose;
/*
* Infrastructure
#include "dnssectool.h"
-#ifndef PATH_MAX
-#define PATH_MAX 1024 /* WIN32, and others don't define this. */
-#endif
-
const char *program = "dnssec-dsfromkey";
-int verbose;
static dns_rdataclass_t rdclass;
static dns_fixedname_t fixed;
#include "dnssectool.h"
-#ifndef PATH_MAX
-#define PATH_MAX 1024 /* WIN32, and others don't define this. */
-#endif
-
const char *program = "dnssec-importkey";
-int verbose;
static dns_rdataclass_t rdclass;
static dns_fixedname_t fixed;
#define MAX_RSA 4096 /* should be long enough... */
const char *program = "dnssec-keyfromlabel";
-int verbose;
ISC_PLATFORM_NORETURN_PRE static void
usage(void) ISC_PLATFORM_NORETURN_POST;
#define MAX_RSA 4096 /* should be long enough... */
const char *program = "dnssec-keygen";
-int verbose;
ISC_PLATFORM_NORETURN_PRE static void
usage(void) ISC_PLATFORM_NORETURN_POST;
#include "dnssectool.h"
const char *program = "dnssec-revoke";
-int verbose;
static isc_mem_t *mctx = NULL;
#include "dnssectool.h"
const char *program = "dnssec-settime";
-int verbose;
static isc_mem_t *mctx = NULL;
#include "dnssectool.h"
-#ifndef PATH_MAX
-#define PATH_MAX 1024 /* WIN32, and others don't define this. */
-#endif
-
const char *program = "dnssec-signzone";
-int verbose;
typedef struct hashlist hashlist_t;
#include "dnssectool.h"
const char *program = "dnssec-verify";
-int verbose;
static isc_stdtime_t now;
static isc_mem_t *mctx = NULL;
#include "dnssectool.h"
-extern int verbose;
-extern const char *program;
+int verbose;
static fatalcallback_t *fatalcallback = NULL;
#include <dns/rdatastruct.h>
#include <dst/dst.h>
+#ifndef PATH_MAX
+#define PATH_MAX 1024 /* WIN32, and others don't define this. */
+#endif
+
+/*! verbosity: set by -v option in each program, defined in dnssectool.c */
+extern int verbose;
+
+/*! program name, statically initialized in each program */
+extern const char *program;
+
typedef void (fatalcallback_t)(void);
ISC_PLATFORM_NORETURN_PRE void