Skip to content
Snippets Groups Projects
Commit fa9ca08b authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman
Browse files

dnssec: fixed sharing KSK for alg roll and CSK

parent 36df0284
No related branches found
No related tags found
1 merge request!859Test fix csk roll
......@@ -173,9 +173,14 @@ static int share_or_generate_key(kdnssec_ctx_t *ctx, bool ksk, bool zsk, knot_ti
if (ret == KNOT_EOK) {
knot_kasp_key_t *newkey = key_get_by_id(ctx, borrow_key);
assert(newkey != NULL);
newkey->timing.publish = ctx->now;
newkey->timing.ready = when_active;
newkey->timing.remove = 0;
newkey->timing.retire = 0;
newkey->timing.active = (ksk ? 0 : when_active);
newkey->timing.ready = (ksk ? when_active : 0);
newkey->timing.publish = (pre_active ? 0 : ctx->now);
newkey->timing.pre_active = (pre_active ? ctx->now : 0);
newkey->is_ksk = ksk;
newkey->is_zsk = zsk;
}
}
free(borrow_zone);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment