Commit 360211c2 authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman

ksk_rollover adapatation to kasp_db redesign: DS query

parent 746b24ee
......@@ -352,11 +352,9 @@ static int zone_ksk_submittion_confirm(zone_t *zone, ctl_args_t *args)
return KNOT_EINVAL;
}
conf_val_t policy = conf_zone_get(conf(), C_DNSSEC_POLICY, zone->name);
kdnssec_ctx_t ctx = { 0 };
int ret = kdnssec_ctx_init(&ctx, zone->name, &policy);
int ret = kdnssec_ctx_init(conf(), &ctx, zone->name);
if (ret != KNOT_EOK) {
return ret;
}
......
......@@ -181,11 +181,9 @@ static bool parents_have_ds(zone_t *zone, conf_t *conf, zone_key_t *key) {
int event_parent_ds_q(conf_t *conf, zone_t *zone)
{
conf_val_t policy = conf_zone_get(conf, C_DNSSEC_POLICY, zone->name);
kdnssec_ctx_t ctx = { 0 };
int ret = kdnssec_ctx_init(&ctx, zone->name, &policy);
int ret = kdnssec_ctx_init(conf, &ctx, zone->name);
if (ret != KNOT_EOK) {
return ret;
}
......@@ -208,6 +206,7 @@ int event_parent_ds_q(conf_t *conf, zone_t *zone)
}
}
conf_val_t policy = conf_zone_get(conf, C_DNSSEC_POLICY, zone->name);
if (ret != KNOT_EOK) {
uint8_t *policy_name = (uint8_t *)conf_str(&policy);
size_t policy_name_len = strlen((const char *)policy_name) + 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment