Added dns_trust_ultimate for zone data (can be renamed later if necessary).

This commit is contained in:
Brian Wellington 2000-04-20 18:47:21 +00:00
parent 0942b8e0d6
commit e9a9ae4fc6
4 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,7 @@
66. [func] Data in authoritative zones should have a trust level
beyond secure.
65. [cleanup] Removed obsolete typedef of dns_zone_callbackarg_t
from <dns/types.h>.

View file

@ -207,7 +207,8 @@ enum {
dns_trust_authauthority = 5,
dns_trust_authanswer = 6,
dns_trust_secure = 7,
dns_trust_authsecure = 8
dns_trust_authsecure = 8,
dns_trust_ultimate = 9
};
/*

View file

@ -518,6 +518,7 @@ dns_diff_load(dns_diff_t *diff, dns_addrdatasetfunc_t addfunc,
/* Convert the rdatalist into a rdataset. */
dns_rdataset_init(&rds);
CHECK(dns_rdatalist_tordataset(&rdl, &rds));
rds.trust = dns_trust_ultimate;
INSIST(op == DNS_DIFFOP_ADD);
result = (*addfunc)(add_private, name, &rds);

View file

@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: master.c,v 1.47 2000/04/06 22:02:00 explorer Exp $ */
/* $Id: master.c,v 1.48 2000/04/20 18:47:17 bwelling Exp $ */
#include <config.h>
@ -1073,6 +1073,7 @@ commit(dns_rdatacallbacks_t *callbacks, rdatalist_head_t *head,
if (!ignore) {
dns_rdataset_init(&dataset);
dns_rdatalist_tordataset(this, &dataset);
dataset.trust = dns_trust_ultimate;
result = ((*callbacks->add)(callbacks->add_private,
owner,
&dataset));