dnssec-signzone.c revision 924fbebfbe77eda7240d4638abe410234295782f
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Portions Copyright (C) 1999, 2000 Internet Software Consortium.
d46855caedd5cb101795707f6f467fa363ef1448Evan Hunt * Portions Copyright (C) 1995-2000 by Network Associates, Inc.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
d46855caedd5cb101795707f6f467fa363ef1448Evan Hunt * copyright notice and this permission notice appear in all copies.
d46855caedd5cb101795707f6f467fa363ef1448Evan Hunt * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM AND
d46855caedd5cb101795707f6f467fa363ef1448Evan Hunt * NETWORK ASSOCIATES DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
d46855caedd5cb101795707f6f467fa363ef1448Evan Hunt * SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
d46855caedd5cb101795707f6f467fa363ef1448Evan Hunt * FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE CONSORTIUM OR NETWORK
d46855caedd5cb101795707f6f467fa363ef1448Evan Hunt * ASSOCIATES BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
d46855caedd5cb101795707f6f467fa363ef1448Evan Hunt * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
d46855caedd5cb101795707f6f467fa363ef1448Evan Hunt * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
d46855caedd5cb101795707f6f467fa363ef1448Evan Hunt * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
d46855caedd5cb101795707f6f467fa363ef1448Evan Hunt * PERFORMANCE OF THIS SOFTWARE.
d46855caedd5cb101795707f6f467fa363ef1448Evan Hunt/* $Id: dnssec-signzone.c,v 1.93 2000/08/11 23:59:46 bwelling Exp $ */
#include "dnssectool.h"
int verbose;
struct signer_key_struct {
if (bit != 0)
if (tryverify) {
static inline isc_boolean_t
static inline isc_boolean_t
static signer_key_t *
return key;
return (NULL);
return key;
static isc_boolean_t
switch (result) {
case ISC_R_SUCCESS:
case DNS_R_NXDOMAIN:
case DNS_R_NXRRSET:
return ISC_TRUE;
case DNS_R_DELEGATION:
case DNS_R_CNAME:
case DNS_R_DNAME:
return ISC_FALSE;
static inline isc_boolean_t
if (nosigs)
if (!expired)
} else if (!expired) {
if (keep)
&tuple);
if (resign) {
isc_buffer_t b;
&tuple);
if (wassignedby[i]) {
isc_buffer_t b;
&tuple);
static isc_boolean_t
return (ISC_TRUE);
return (ISC_FALSE);
isc_buffer_t b;
if (isc_buffer_availablelength(&b) == 0)
isc_buffer_putuint8(&b, 0);
goto failure;
goto failure;
goto failure;
goto failure;
goto failure;
static isc_boolean_t
return (ISC_FALSE);
goto failure;
goto failure;
goto failure;
goto failure;
goto failure;
return (found);
unsigned char *nxt_bits;
isc_buffer_t b;
static int warnwild = 0;
if (warnwild++ == 0) {
program);
if (!atorigin) {
NULL);
if (isdelegation) {
NULL);
} else if (childkey) {
if (neednullkey)
goto skip;
goto skip;
if (isdelegation) {
goto skip;
if (neednullkey)
skip:
static inline isc_boolean_t
if (!active)
if (!active) {
dns_rdatatype_nxt, 0);
return (active);
static inline isc_result_t
if (!active) {
return (result);
static inline isc_result_t
return (ISC_R_SUCCESS);
return (result);
static dns_ttl_t
return (ttl);
if (destroy) {
covers);
lastcut);
0, &rdsiter);
sizeof(dns_name_t));
int len;
unsigned int nkeys, i;
for (i = 0; i < nkeys; i++) {
static isc_stdtime_t
char *endp;
usage(void) {
exit(0);
int i, ch;
char *endp;
unsigned int eflags;
switch (ch) {
usage();
if (!pseudorandom)
usage();
if (argc == 0) {
for (i = 0; i < argc; i++) {
usage();
argv[i]);
if (free_output)