dnssec-keyfromlabel.c File Reference

#include <config.h>
#include <ctype.h>
#include <stdlib.h>
#include <isc/buffer.h>
#include <isc/commandline.h>
#include <isc/entropy.h>
#include <isc/mem.h>
#include <isc/region.h>
#include <isc/print.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   "3A:a:Cc:D:E:Ff:GhI:i:kK:L:l:n:P:p:R:S:t:v:Vy"

Functions

static
ISC_PLATFORM_NORETURN_PRE void 
usage (void)
int main (int argc, char **argv)

Variables

const char * program = "dnssec-keyfromlabel"
int verbose
static const char * algs


Detailed Description

Definition in file dnssec-keyfromlabel.c.


Define Documentation

#define MAX_RSA   4096

Definition at line 50 of file dnssec-keyfromlabel.c.

Referenced by main(), and usage().

#define DEFAULT_ALGORITHM   "RSASHA1"

Definition at line 55 of file dnssec-keyfromlabel.c.

Referenced by main().

#define DEFAULT_NSEC3_ALGORITHM   "NSEC3RSASHA1"

Definition at line 56 of file dnssec-keyfromlabel.c.

Referenced by main().

#define CMDLINE_FLAGS   "3A:a:Cc:D:E:Ff:GhI:i:kK:L:l:n:P:p:R:S:t:v:Vy"


Function Documentation

static ISC_PLATFORM_NORETURN_PRE void usage ( void   )  [static]

Definition at line 64 of file dnssec-keyfromlabel.c.

References algs, PK11_LIB_LOCATION, program, and VERSION.

int main ( int  argc,
char **  argv 
)

Definition at line 127 of file dnssec-keyfromlabel.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_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(), DST_ALG_DH, DST_ALG_ECCGOST, DST_ALG_ECDSA256, DST_ALG_ECDSA384, DST_ALG_NSEC3DSA, DST_ALG_NSEC3RSASHA1, DST_ALG_RSASHA256, DST_ALG_RSASHA512, dst_key_alg(), dst_key_buildfilename(), dst_key_flags(), dst_key_format(), DST_KEY_FORMATSIZE, dst_key_free(), dst_key_fromlabel(), dst_key_fromnamedfile(), dst_key_getprivateformat(), dst_key_gettime(), dst_key_isprivate(), dst_key_name(), dst_key_setprivateformat(), dst_key_settime(), dst_key_setttl(), 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(), 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_ENTROPY_BLOCKING, ISC_ENTROPY_GOODONLY, isc_entropy_stopcallbacksources(), ISC_FALSE, isc_mem_allocate, isc_mem_create(), isc_mem_destroy(), isc_mem_free, isc_mem_stats(), isc_mem_strdup, ISC_R_SUCCESS, isc_result_totext(), isc_stdtime_get(), ISC_TRUE, key, key_collision(), keystr, isc_textregion::length, mctx, name, now, pk11_result_register(), program, 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-keyfromlabel"

Definition at line 52 of file dnssec-keyfromlabel.c.

int verbose

Definition at line 53 of file dnssec-keyfromlabel.c.

const char* algs [static]

Initial value:

 "RSA | RSAMD5 | DH | DSA | RSASHA1 |"
                          " NSEC3DSA | NSEC3RSASHA1 |"
                          " RSASHA256 | RSASHA512 | ECCGOST |"
                          " ECDSAP256SHA256 | ECDSAP384SHA384"

Definition at line 58 of file dnssec-keyfromlabel.c.

Referenced by usage().


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