Commit 8a07de2f authored by Automatic Updater's avatar Automatic Updater
Browse files

update copyright notice

parent 3f802a97
......@@ -14,7 +14,7 @@
* 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>
......@@ -29,14 +29,14 @@ ISC_LANG_BEGINDECLS
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:
......
......@@ -14,6 +14,8 @@
* 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>
......@@ -61,7 +63,7 @@
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)) {
......@@ -74,7 +76,7 @@ ignore(dns_rdata_t *param, dns_rdataset_t *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]))
......@@ -165,7 +167,7 @@ dns_private_chains(dns_db_t *db, dns_dbversion_t *ver,
dns_rdataset_current(&privateset, &private);
if (!dns_nsec3param_fromprivate(&private, &rdata,
buf, sizeof(buf)))
buf, sizeof(buf)))
continue;
if (REMOVE(rdata.data[1]))
continue;
......@@ -175,7 +177,7 @@ dns_private_chains(dns_db_t *db, dns_dbversion_t *ver,
}
goto success;
}
if (dns_rdataset_isassociated(&nsec3paramset)) {
if (build_nsec3 != NULL)
*build_nsec3 = ISC_TRUE;
......@@ -200,7 +202,7 @@ dns_private_chains(dns_db_t *db, dns_dbversion_t *ver,
if (CREATE(rdata.data[1]))
goto success;
}
/*
* Check to see if there will be a active NSEC3CHAIN once
* the changes queued complete.
......@@ -219,7 +221,7 @@ dns_private_chains(dns_db_t *db, dns_dbversion_t *ver,
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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment