dnssec-makekeyset.c revision 03f0e349d81a580a562fd21402ef97d11c15429a
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <isc/assertions.h>
#include <isc/commandline.h>
#include <dns/fixedname.h>
#include <dns/dbiterator.h>
#include <dns/rdatalist.h>
#include <dns/rdataset.h>
#include <dns/rdatasetiter.h>
#include <dns/rdatastruct.h>
#include <dns/rdatatype.h>
#include <dns/keyvalues.h>
#define BUFSIZE 2048
struct keynode {
};
static int ttl = -1;
static int verbose;
static inline void
exit(1);
}
static inline void
if (result != ISC_R_SUCCESS) {
exit(1);
}
}
static isc_stdtime_t
char *endp = "";
if (str[0] == '+') {
}
}
else {
}
if (*endp != '\0')
return ((isc_stdtime_t) val);
}
static void
usage() {
exit(0);
}
int
int i, ch;
char tdomain[1025];
char *endp;
unsigned char *data;
isc_buffer_t b;
isc_region_t r;
{
switch (ch) {
case 's':
break;
case 'e':
break;
case 't':
if (*endp != '\0')
break;
case 'v':
if (*endp != '\0')
break;
default:
usage();
}
}
if (argc < 2)
usage();
}
else
}
else
if (ttl == -1) {
ttl = 3600;
}
if (verbose > 0) {
== ISC_R_SUCCESS);
}
isc_buffer_used(&b, &r);
argc -= 1;
argv += 1;
for (i = 0; i < argc; i++) {
usage();
*algstr++ = 0;
if (*endp != '\0')
if (*endp != '\0')
if (dst_key_iszonekey(key)) {
&zonekey);
}
isc_buffer_used(&b, &r);
dns_rdatatype_key, &r);
}
if (ISC_LIST_EMPTY(keylist))
"no private zone key found; not self-signing\n");
{
}
if (!ISC_LIST_EMPTY(keylist))
dns_db_detach(&db);
}
}
while (!ISC_LIST_EMPTY(keylist)) {
}
return (0);
}