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

config: load DNSKEY TTL into policy

parent ecde150c
No related branches found
No related tags found
1 merge request!547NSEC3 resalt
......@@ -72,6 +72,10 @@ static int policy_load(void *ctx, dnssec_kasp_policy_t *policy)
policy->zsk_size = (num != YP_NIL) ? num :
dnssec_algorithm_key_size_default(policy->algorithm);
val = conf_rawid_get(conf(), C_POLICY, C_DNSKEY_TTL, id, id_len);
num = conf_int(&val);
policy->dnskey_ttl = (num != YP_NIL) ? num : 0;
val = conf_rawid_get(conf(), C_POLICY, C_ZSK_LIFETIME, id, id_len);
policy->zsk_lifetime = conf_int(&val);
......
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