bool
named_zone_reusable(dns_zone_t *zone, const cfg_obj_t *zconfig,
- const cfg_obj_t *vconfig, const cfg_obj_t *config);
+ const cfg_obj_t *vconfig, const cfg_obj_t *config,
+ cfg_aclconfctx_t *actx);
/*%<
* If 'zone' can be safely reconfigured according to the configuration
* data in 'zconfig', return true. If the configuration data is so
bool
named_zone_inlinesigning(dns_zone_t *zone, const cfg_obj_t *zconfig,
- const cfg_obj_t *vconfig, const cfg_obj_t *config);
+ const cfg_obj_t *vconfig, const cfg_obj_t *config,
+ cfg_aclconfctx_t *actx);
/*%<
* Determine if zone uses inline-signing. This is true if inline-signing
* is set to yes, or if there is a dnssec-policy on a non-dynamic zone.
}
if (zone != NULL &&
- !named_zone_reusable(zone, zconfig, vconfig, config)) {
+ !named_zone_reusable(zone, zconfig, vconfig, config, aclconf))
+ {
dns_zone_detach(&zone);
}
strcasecmp(ztypestr, "slave") == 0));
if (zone_maybe_inline) {
- inline_signing = named_zone_inlinesigning(zone, zconfig,
- vconfig, config);
+ inline_signing = named_zone_inlinesigning(
+ zone, zconfig, vconfig, config, aclconf);
}
if (inline_signing) {
dns_zone_getraw(zone, &raw);
parse_acl:
result = cfg_acl_fromconfig(aclobj, config, named_g_lctx, actx,
- dns_zone_getmctx(zone), 0, &acl);
+ named_g_mctx, 0, &acl);
if (result != ISC_R_SUCCESS) {
return (result);
}
bool
named_zone_reusable(dns_zone_t *zone, const cfg_obj_t *zconfig,
- const cfg_obj_t *vconfig, const cfg_obj_t *config) {
+ const cfg_obj_t *vconfig, const cfg_obj_t *config,
+ cfg_aclconfctx_t *actx) {
const cfg_obj_t *zoptions = NULL;
const cfg_obj_t *obj = NULL;
const char *cfilename;
}
inline_signing = named_zone_inlinesigning(zone, zconfig, vconfig,
- config);
+ config, actx);
if (!inline_signing && has_raw) {
dns_zone_log(zone, ISC_LOG_DEBUG(1),
"not reusable: old zone was inline-signing");
bool
named_zone_inlinesigning(dns_zone_t *zone, const cfg_obj_t *zconfig,
- const cfg_obj_t *vconfig, const cfg_obj_t *config) {
+ const cfg_obj_t *vconfig, const cfg_obj_t *config,
+ cfg_aclconfctx_t *actx) {
isc_result_t res;
const cfg_obj_t *zoptions = NULL;
const cfg_obj_t *voptions = NULL;
}
if (res == ISC_R_SUCCESS) {
dns_acl_t *acl = NULL;
- cfg_aclconfctx_t *actx = NULL;
res = cfg_acl_fromconfig(
allowupdate, config, named_g_lctx, actx,
dns_zone_getmctx(zone), 0, &acl);