* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: private.h,v 1.2 2009/10/09 00:33:39 marka Exp $ */
+/* $Id: private.h,v 1.3 2009/10/09 23:48:09 tbox Exp $ */
#include <isc/lang.h>
#include <isc/types.h>
isc_result_t
dns_private_chains(dns_db_t *db, dns_dbversion_t *ver,
- dns_rdatatype_t privatetype,
- isc_boolean_t *build_nsec, isc_boolean_t *build_nsec3);
+ dns_rdatatype_t privatetype,
+ isc_boolean_t *build_nsec, isc_boolean_t *build_nsec3);
/*%<
* Examine the NSEC, NSEC3PARAM and privatetype RRsets at the apex of the
* database to determine which of NSEC or NSEC3 chains we are currently
* maintaining. In normal operations only one of NSEC or NSEC3 is being
* maintained but when we are transitiong between NSEC and NSEC3 we need
- * to update both sets of chains. If 'privatetype' is zero then the
+ * to update both sets of chains. If 'privatetype' is zero then the
* privatetype RRset will not be examined.
*
* Requires:
* PERFORMANCE OF THIS SOFTWARE.
*/
+/* $Id: private.c,v 1.3 2009/10/09 23:48:09 tbox Exp $ */
+
#include "config.h"
#include <isc/result.h>
static isc_boolean_t
ignore(dns_rdata_t *param, dns_rdataset_t *privateset) {
isc_result_t result;
-
+
for (result = dns_rdataset_first(privateset);
result == ISC_R_SUCCESS;
result = dns_rdataset_next(privateset)) {
buf, sizeof(buf)))
continue;
/*
- * We are going to create a new NSEC3 chain so it
+ * We are going to create a new NSEC3 chain so it
* doesn't matter if we are removing this one.
*/
if (CREATE(rdata.data[1]))
dns_rdataset_current(&privateset, &private);
if (!dns_nsec3param_fromprivate(&private, &rdata,
- buf, sizeof(buf)))
+ buf, sizeof(buf)))
continue;
if (REMOVE(rdata.data[1]))
continue;
}
goto success;
}
-
+
if (dns_rdataset_isassociated(&nsec3paramset)) {
if (build_nsec3 != NULL)
*build_nsec3 = ISC_TRUE;
if (CREATE(rdata.data[1]))
goto success;
}
-
+
/*
* Check to see if there will be a active NSEC3CHAIN once
* the changes queued complete.
goto success;
dns_rdataset_current(&nsec3paramset, &rdata);
if (ignore(&rdata, &privateset))
- continue;
+ continue;
/*
* We still have a good NSEC3 chain or we are
* not creating a NSEC chain as NONSEC is set.