Commit 2693e45d authored by Libor Peltan's avatar Libor Peltan

removed unnecessary comments

parent 5f65403b
......@@ -363,7 +363,6 @@ static int zone_ksk_sbm_confirm(zone_t *zone, ctl_args_t *args)
kdnssec_ctx_deinit(&ctx);
// zone_events_schedule_now(zone, ZONE_EVENT_KEY_ROLLOVER); // TODO needed ?
zone_events_schedule_now(zone, ZONE_EVENT_DNSSEC);
// NOT zone_events_schedule_user(), intentionally
......
......@@ -179,7 +179,7 @@ static time_t zsk_publish_time(time_t active_time, const kdnssec_ctx_t *ctx)
if (active_time <= 0 || active_time >= TIME_INFINITY) {
return TIME_INFINITY;
}
return active_time + ctx->policy->zsk_lifetime; // TODO better minus something ?
return active_time + ctx->policy->zsk_lifetime;
}
static time_t zsk_active_time(time_t publish_time, const kdnssec_ctx_t *ctx)
......
......@@ -150,7 +150,14 @@ void free_zone_keys(zone_keyset_t *keyset);
time_t knot_get_next_zone_key_event(const zone_keyset_t *keyset);
/*!
* \todo this comment (needed?)
* \brief Returns DS record rdata for given key.
*
* This function caches the results, so caaling again with the same key returns immediately.
*
* \param for_key The key to compute DS for.
* \param out_donotfree Output: the DS record rdata. Do not call dnssec_binry_free() on this ever.
*
* \return Error code, KNOT_EOK if successful.
*/
int zone_key_calculate_ds(zone_key_t *for_key, dnssec_binary_t *out_donotfree);
......
......@@ -170,10 +170,6 @@ static bool parents_have_ds(zone_t *zone, conf_t *conf, zone_key_t *key) {
}
}
if (!success) {
// TODO dnssec warning, or not ?
}
conf_val_next(&parents);
}
return success;
......
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