mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
2448. [func] Add NSEC3 support. [RT #15452]
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
* USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: sdlz.c,v 1.17 2008/04/03 05:55:52 marka Exp $ */
|
||||
/* $Id: sdlz.c,v 1.18 2008/09/24 02:46:22 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -667,8 +667,7 @@ printnode(dns_db_t *db, dns_dbnode_t *node, FILE *out) {
|
||||
}
|
||||
|
||||
static isc_result_t
|
||||
createiterator(dns_db_t *db, isc_boolean_t relative_names,
|
||||
dns_dbiterator_t **iteratorp)
|
||||
createiterator(dns_db_t *db, unsigned int options, dns_dbiterator_t **iteratorp)
|
||||
{
|
||||
dns_sdlz_db_t *sdlz = (dns_sdlz_db_t *)db;
|
||||
sdlz_dbiterator_t *sdlziter;
|
||||
@@ -681,6 +680,10 @@ createiterator(dns_db_t *db, isc_boolean_t relative_names,
|
||||
if (sdlz->dlzimp->methods->allnodes == NULL)
|
||||
return (ISC_R_NOTIMPLEMENTED);
|
||||
|
||||
if ((options & DNS_DB_NSEC3ONLY) != 0 ||
|
||||
(options & DNS_DB_NONSEC3) != 0)
|
||||
return (ISC_R_NOTIMPLEMENTED);
|
||||
|
||||
isc_buffer_init(&b, zonestr, sizeof(zonestr));
|
||||
result = dns_name_totext(&sdlz->common.origin, ISC_TRUE, &b);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
@@ -694,7 +697,7 @@ createiterator(dns_db_t *db, isc_boolean_t relative_names,
|
||||
sdlziter->common.methods = &dbiterator_methods;
|
||||
sdlziter->common.db = NULL;
|
||||
dns_db_attach(db, &sdlziter->common.db);
|
||||
sdlziter->common.relative_names = relative_names;
|
||||
sdlziter->common.relative_names = ISC_TF(options & DNS_DB_RELATIVENAMES);
|
||||
sdlziter->common.magic = DNS_DBITERATOR_MAGIC;
|
||||
ISC_LIST_INIT(sdlziter->nodelist);
|
||||
sdlziter->current = NULL;
|
||||
@@ -1056,6 +1059,8 @@ static dns_dbmethods_t sdlzdb_methods = {
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
@@ -1199,6 +1204,8 @@ static dns_rdatasetmethods_t rdataset_methods = {
|
||||
isc__rdatalist_getnoqname,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user