dnssec-keygen.c File Reference

#include <config.h>
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include <isc/buffer.h>
#include <isc/commandline.h>
#include <isc/entropy.h>
#include <isc/mem.h>
#include <isc/region.h>
#include <isc/string.h>
#include <isc/util.h>
#include <dns/dnssec.h>
#include <dns/fixedname.h>
#include <dns/keyvalues.h>
#include <dns/log.h>
#include <dns/name.h>
#include <dns/rdataclass.h>
#include <dns/result.h>
#include <dns/secalg.h>
#include <dst/dst.h>
#include "dnssectool.h"

Go to the source code of this file.

Defines

#define MAX_RSA   4096
#define DEFAULT_ALGORITHM   "RSASHA1"
#define DEFAULT_NSEC3_ALGORITHM   "NSEC3RSASHA1"
#define CMDLINE_FLAGS

Functions

static
ISC_PLATFORM_NORETURN_PRE void 
usage (void)
static isc_boolean_t dsa_size_ok (int size)
static void progress (int p)
int main (int argc, char **argv)

Variables

const char * program = "dnssec-keygen"
int verbose


Detailed Description

Definition in file dnssec-keygen.c.


Define Documentation

#define MAX_RSA   4096

Definition at line 65 of file dnssec-keygen.c.

#define DEFAULT_ALGORITHM   "RSASHA1"

Definition at line 70 of file dnssec-keygen.c.

#define DEFAULT_NSEC3_ALGORITHM   "NSEC3RSASHA1"

Definition at line 71 of file dnssec-keygen.c.

#define CMDLINE_FLAGS

Value:

"3A:a:b:Cc:D:d:E:eFf:Gg:hI:i:K:kL:m:n:P:p:qR:r:S:s:T:t:" \
                      "v:V"


Function Documentation

static ISC_PLATFORM_NORETURN_PRE void usage ( void   )  [static]

Definition at line 74 of file dnssec-keygen.c.

References MAX_RSA, PK11_LIB_LOCATION, program, and VERSION.

static isc_boolean_t dsa_size_ok ( int  size  )  [static]

Definition at line 178 of file dnssec-keygen.c.

References ISC_TF.

Referenced by main().

static void progress ( int  p  )  [static]

Definition at line 183 of file dnssec-keygen.c.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 208 of file dnssec-keygen.c.

References isc_textregion::base, cleanup_entropy(), cleanup_logging(), CMDLINE_FLAGS, DEFAULT_ALGORITHM, DEFAULT_NSEC3_ALGORITHM, directory, dns_fixedname_init, dns_fixedname_name, DNS_KEYALG_DH, DNS_KEYALG_DSA, DNS_KEYALG_NSEC3DSA, DNS_KEYALG_NSEC3RSASHA1, DNS_KEYALG_RSAMD5, DNS_KEYALG_RSASHA1, DNS_KEYALG_RSASHA256, DNS_KEYALG_RSASHA512, DNS_KEYFLAG_KSK, DNS_KEYFLAG_OWNERMASK, DNS_KEYFLAG_REVOKE, DNS_KEYFLAG_SIGNATORYMASK, DNS_KEYFLAG_TYPEMASK, DNS_KEYOWNER_ENTITY, DNS_KEYOWNER_USER, DNS_KEYOWNER_ZONE, DNS_KEYPROTO_DNSSEC, DNS_KEYTYPE_NOAUTH, DNS_KEYTYPE_NOCONF, DNS_KEYTYPE_NOKEY, dns_name_destroy(), dns_name_format(), DNS_NAME_FORMATSIZE, dns_name_fromtext(), dns_result_register(), dns_rootname, dns_secalg_format(), DNS_SECALG_FORMATSIZE, dns_secalg_fromtext(), dsa_size_ok(), DST_ALG_DH, DST_ALG_ECCGOST, DST_ALG_ECDSA256, DST_ALG_ECDSA384, DST_ALG_HMACMD5, DST_ALG_HMACSHA1, DST_ALG_HMACSHA224, DST_ALG_HMACSHA256, DST_ALG_HMACSHA384, DST_ALG_HMACSHA512, DST_ALG_NSEC3DSA, DST_ALG_NSEC3RSASHA1, DST_ALG_RSASHA256, DST_ALG_RSASHA512, dst_algorithm_supported(), dst_key_alg(), dst_key_buildfilename(), dst_key_flags(), dst_key_format(), DST_KEY_FORMATSIZE, dst_key_free(), dst_key_fromnamedfile(), dst_key_generate2(), dst_key_getprivateformat(), dst_key_gettime(), dst_key_isprivate(), dst_key_name(), dst_key_setbits(), dst_key_setprivateformat(), dst_key_settime(), dst_key_setttl(), dst_key_size(), dst_key_tofile(), dst_lib_destroy(), dst_lib_init2(), DST_MAJOR_VERSION, DST_MINOR_VERSION, DST_TIME_ACTIVATE, DST_TIME_CREATED, DST_TIME_DELETE, DST_TIME_INACTIVE, DST_TIME_PUBLISH, DST_TIME_REVOKE, DST_TYPE_KEY, DST_TYPE_PRIVATE, DST_TYPE_PUBLIC, ectx, fatal(), free(), INSIST, isc_buffer_add, isc_buffer_clear, isc_buffer_init, isc_commandline_argument, isc_commandline_errprint, isc_commandline_index, isc_commandline_option, isc_commandline_parse(), isc_commandline_reset, ISC_ENTROPY_BLOCKING, ISC_ENTROPY_GOODONLY, isc_entropy_stopcallbacksources(), ISC_FALSE, 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, key, key_collision(), keystr, isc_textregion::length, MAX_RSA, mctx, name, now, pk11_result_register(), program, progress(), quiet, r, rdclass, RUNTIME_CHECK, setdel, setpub, setttl, setup_entropy(), setup_logging(), strdup(), strtoclass(), strtotime(), strtottl(), try_dir(), ttl, usage(), verbose, and version.


Variable Documentation

const char* program = "dnssec-keygen"

Definition at line 67 of file dnssec-keygen.c.

int verbose

Definition at line 68 of file dnssec-keygen.c.


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