lib/dns/nsec3.c
/*%
 * Determine whether any NSEC3 records that were associated with
 * 'name' should be deleted or if they should continue to exist.
 * ISC_TRUE indicates they should be deleted.
 * ISC_FALSE indicates they should be retained.
 */
%
Determine whether any NSEC3 records that were associated with
'name' should be deleted or if they should continue to exist.
ISC_TRUE indicates they should be deleted.
ISC_FALSE indicates they should be retained.
% Determine whether any NSEC3 records that were associated with ' name ' should be deleted or if they should continue to exist . ISC_TRUE indicates they should be deleted . ISC_FALSE indicates they should be retained .
static isc_result_t
deleteit(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
	 isc_boolean_t *yesno)
{
	isc_result_t result;
	dns_fixedname_t foundname;
	dns_fixedname_init(&foundname);
	result = dns_db_find(db, name, ver, dns_rdatatype_any,
			     DNS_DBFIND_GLUEOK | DNS_DBFIND_NOWILD,
			     (isc_stdtime_t) 0, NULL,
			     dns_fixedname_name(&foundname),
			     NULL, NULL);
	if (result == DNS_R_EMPTYNAME || result == ISC_R_SUCCESS ||
	    result ==  DNS_R_ZONECUT) {
		*yesno = ISC_FALSE;
		return (ISC_R_SUCCESS);
	}
	if (result == DNS_R_GLUE || result == DNS_R_DNAME ||
	    result == DNS_R_DELEGATION || result == DNS_R_NXDOMAIN) {
		*yesno = ISC_TRUE;
		return (ISC_R_SUCCESS);
	}
	*yesno = ISC_TRUE;
	return (result);
}
static isc_result_t deleteit ( dns_db_t * db , dns_dbversion_t * ver , dns_name_t * name , isc_boolean_t * yesno ) { isc_result_t result ; dns_fixedname_t foundname ; dns_fixedname_init ( & foundname ) ; result = dns_db_find ( db , name , ver , dns_rdatatype_any , DNS_DBFIND_GLUEOK | DNS_DBFIND_NOWILD , ( isc_stdtime_t ) 0 , NULL , dns_fixedname_name ( & foundname ) , NULL , NULL ) ; if ( result == DNS_R_EMPTYNAME || result == ISC_R_SUCCESS || result == DNS_R_ZONECUT ) { * yesno = ISC_FALSE ; return ( ISC_R_SUCCESS ) ; } if ( result == DNS_R_GLUE || result == DNS_R_DNAME || result == DNS_R_DELEGATION || result == DNS_R_NXDOMAIN ) { * yesno = ISC_TRUE ; return ( ISC_R_SUCCESS ) ; } * yesno = ISC_TRUE ; return ( result ) ; }
%
 Determine whether any NSEC3 records that were associated with
 'name' should be deleted or if they should continue to exist.
% Determine whether any NSEC3 records that were associated with ' name ' should be deleted or if they should continue to exist .
/*
	 * Silence compiler.
	 */