mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
use a qp-trie for the keytable
Instead of an RBT for the trust anchor tables, use a QP-trie.
This commit is contained in:
@@ -214,28 +214,18 @@ createview(isc_mem_t *mctx, dns_rdataclass_t rdclass, isc_loopmgr_t *loopmgr,
|
||||
dns_view_setdispatchmgr(view, dispatchmgr);
|
||||
|
||||
/* Initialize view security roots */
|
||||
result = dns_view_initsecroots(view, mctx);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
goto cleanup_view;
|
||||
}
|
||||
dns_view_initsecroots(view);
|
||||
|
||||
result = dns_view_createresolver(view, loopmgr, 1, nm, 0,
|
||||
tlsctx_client_cache, dispatchv4,
|
||||
dispatchv6);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
goto cleanup_view;
|
||||
}
|
||||
|
||||
result = dns_db_create(mctx, "rbt", dns_rootname, dns_dbtype_cache,
|
||||
rdclass, 0, NULL, &view->cachedb);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
goto cleanup_view;
|
||||
}
|
||||
CHECK(dns_view_createresolver(view, loopmgr, 1, nm, 0,
|
||||
tlsctx_client_cache, dispatchv4,
|
||||
dispatchv6));
|
||||
CHECK(dns_db_create(mctx, "rbt", dns_rootname, dns_dbtype_cache,
|
||||
rdclass, 0, NULL, &view->cachedb));
|
||||
|
||||
*viewp = view;
|
||||
return (ISC_R_SUCCESS);
|
||||
|
||||
cleanup_view:
|
||||
cleanup:
|
||||
dns_view_detach(&view);
|
||||
return (result);
|
||||
}
|
||||
|
Reference in New Issue
Block a user