nsecify.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 1999-2001, 2003, 2004, 2007-2009, 2011, 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $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
const 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);
}