Skip to content
Snippets Groups Projects
Commit f4848778 authored by Libor Peltan's avatar Libor Peltan
Browse files

CSK rollover: corrected remove time

parent 0b6d7359
No related branches found
No related tags found
1 merge request!749CSK rollover
Pipeline #
......@@ -219,7 +219,11 @@ static knot_time_t ksk_remove_time(knot_time_t retire_time, const kdnssec_ctx_t
if (retire_time <= 0) {
return 0;
}
return knot_time_add(retire_time, ctx->policy->propagation_delay + ctx->policy->dnskey_ttl);
knot_timediff_t use_ttl = ctx->policy->dnskey_ttl;
if (ctx->policy->singe_type_signing && ctx->policy->zone_maximal_ttl > use_ttl) {
use_ttl = ctx->policy->zone_maximal_ttl;
}
return knot_time_add(retire_time, ctx->policy->propagation_delay + use_ttl);
}
static roll_action next_action(kdnssec_ctx_t *ctx)
......
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