Commit 48f546ca authored by Jan Včelák's avatar Jan Včelák 🚀

review: remove default NIL for C_DNSKEY_TTL

parent 34657349
......@@ -152,7 +152,7 @@ static const yp_item_t desc_policy[] = {
DNSSEC_KEY_ALGORITHM_ECDSA_P256_SHA256 } },
{ C_KSK_SIZE, YP_TINT, YP_VINT = { 0, UINT16_MAX, YP_NIL, YP_SSIZE } },
{ C_ZSK_SIZE, YP_TINT, YP_VINT = { 0, UINT16_MAX, YP_NIL, YP_SSIZE } },
{ C_DNSKEY_TTL, YP_TINT, YP_VINT = { 0, UINT32_MAX, YP_NIL, YP_STIME } },
{ C_DNSKEY_TTL, YP_TINT, YP_VINT = { 0, UINT32_MAX, 0, YP_STIME } },
{ C_ZSK_LIFETIME, YP_TINT, YP_VINT = { 1, UINT32_MAX, DAYS(30), YP_STIME } },
{ C_RRSIG_LIFETIME, YP_TINT, YP_VINT = { 1, UINT32_MAX, DAYS(14), YP_STIME } },
{ C_RRSIG_REFRESH, YP_TINT, YP_VINT = { 1, UINT32_MAX, DAYS(7), YP_STIME } },
......
......@@ -73,8 +73,7 @@ static int policy_load(void *ctx, dnssec_kasp_policy_t *policy)
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;
policy->dnskey_ttl = conf_int(&val);
val = conf_rawid_get(conf(), C_POLICY, C_ZSK_LIFETIME, id, id_len);
policy->zsk_lifetime = conf_int(&val);
......
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