Skip to content
Snippets Groups Projects
Commit 4dff415a authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

server: dnskey_ttl setting is valid for both new and legacy

parent db258a85
No related branches found
No related tags found
1 merge request!547NSEC3 resalt
......@@ -40,12 +40,9 @@ void update_policy_from_zone(dnssec_kasp_policy_t *policy,
assert(policy);
assert(zone);
const uint8_t *id = (const uint8_t *)policy->name;
const size_t id_len = strlen(policy->name) + 1;
conf_val_t val = conf_rawid_get(conf(), C_POLICY, C_DNSKEY_TTL, id, id_len);
int64_t ttl = conf_int(&val);
policy->dnskey_ttl = (ttl != YP_NIL) ? ttl : zone_soa_ttl(zone);
if (policy->dnskey_ttl == 0) {
policy->dnskey_ttl = zone_soa_ttl(zone);
}
policy->soa_minimal_ttl = zone_soa_min_ttl(zone);
policy->zone_maximal_ttl = 0; // TODO
......
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