dnssec-signzone.c revision f104fbbe4e868a039ed786c0087c0412ab6dd923
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <isc/assertions.h>
#include <dns/fixedname.h>
#include <dns/dbiterator.h>
#include <dns/rdatalist.h>
#include <dns/rdataset.h>
#include <dns/rdatasetiter.h>
#include <dns/keyvalues.h>
static inline void
exit(1);
}
static inline void
if (result != ISC_R_SUCCESS) {
exit(1);
}
}
static void
if (bit)
else
}
/*
* XXXRTH Something like this will become a library function.
*/
static void
{
isc_region_t r;
unsigned char *nxt_bits;
unsigned int max_type;
dns_name_toregion(target, &r);
while (result == ISC_R_SUCCESS) {
fatal("rdataset type too large");
}
}
if (result != DNS_R_NOMORE)
fatal("rdataset iteration failed");
if (max_type % 8 != 0)
r.length++;
&r);
if (result == DNS_R_UNCHANGED)
}
static void
{
unsigned char array[1024];
while (result == ISC_R_SUCCESS) {
fatal("rdataset type too large");
unsigned char *nxt_bits;
isc_region_t r, r2;
dns_rdata_toregion(&rdata, &r);
dns_name_fromregion(&nxtname, &r);
}
{
&sigrdataset);
if (result == DNS_R_UNCHANGED)
}
}
if (result != DNS_R_NOMORE)
fatal("rdataset iteration failed");
}
static void
&rdataset);
while (result == ISC_R_SUCCESS) {
if (!is_zone_key(pubkey)) {
continue;
}
break;
}
}
static inline isc_boolean_t
while (result == ISC_R_SUCCESS) {
if (!active)
else
}
if (result != DNS_R_NOMORE)
fatal("rdataset iteration failed");
if (!active) {
/*
* Make sure there is no NXT record for this node.
*/
if (result == DNS_R_UNCHANGED)
}
return (active);
}
static inline isc_result_t
{
do {
if (result == ISC_R_SUCCESS) {
if (!active) {
}
}
return (result);
}
static void
char *origintext;
isc_buffer_t b;
char newfilename[1024];
unsigned char curdata[1024];
if (origintext == NULL)
else
origintext++; /* Skip '/'. */
isc_buffer_add(&b, len);
while (result == ISC_R_SUCCESS) {
if (result == ISC_R_SUCCESS)
&nextnode);
if (result == ISC_R_SUCCESS)
else if (result == DNS_R_NOMORE)
else {
fatal("db iteration failed");
}
}
if (result != DNS_R_NOMORE)
fatal("db iteration failed");
/*
* XXXRTH For now, we don't increment the SOA serial.
*/
fatal("filename too long");
dns_db_detach(&db);
}
int
int i;
argc--;
argv++;
for (i = 0; i < argc; i++)
return (0);
}