nsecify.c revision d0dce4d8392a28879e7d672b0b61a62993b74a40
/*
* Copyright (C) 2004, 2007-2009, 2011 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001, 2003 Internet Software Consortium.
*
* 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 ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC 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.
*/
/* $Id: nsecify.c,v 1.12 2011/08/29 23:46:44 tbox Exp $ */
#include <config.h>
#include <stdlib.h>
#include <dns/dbiterator.h>
#include <dns/fixedname.h>
#include <dns/rdataset.h>
#include <dns/rdatasetiter.h>
static inline void
exit(1);
}
static inline void
if (result != ISC_R_SUCCESS) {
exit(1);
}
}
static inline isc_boolean_t
while (result == ISC_R_SUCCESS) {
if (!active)
else
}
if (result != ISC_R_NOMORE)
fatal("rdataset iteration failed");
if (!active) {
/*
* Make sure there is no NSEC record for this node.
*/
dns_rdatatype_nsec, 0);
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];
if (origintext == NULL)
else
origintext++; /* Skip '/'. */
isc_buffer_add(&b, len);
if (result == DNS_R_SEENINCLUDE)
while (result == ISC_R_SUCCESS) {
if (result == ISC_R_SUCCESS)
&nextnode);
if (result == ISC_R_SUCCESS)
else if (result == ISC_R_NOMORE)
else {
fatal("db iteration failed");
}
}
if (result != ISC_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++)
/* isc_mem_stats(mctx, stdout); */
return (0);
}