unsigned char keybuf[DST_KEY_MAXSIZE];
isc_result_t result;
dns_dnsseckey_t *key;
+ dns_ttl_t cdsttl = ttl;
+ dns_ttl_t cdnskeyttl = ttl;
REQUIRE(digests != NULL);
REQUIRE(keys != NULL);
REQUIRE(rmkeys != NULL);
+ if (dns_rdataset_isassociated(cds)) {
+ cdsttl = cds->ttl;
+ }
+
+ if (dns_rdataset_isassociated(cdnskey)) {
+ cdnskeyttl = cdnskey->ttl;
+ }
+
for (key = ISC_LIST_HEAD(*keys); key != NULL;
key = ISC_LIST_NEXT(key, link))
{
{
RETERR(add_cds(key, &cdnskeyrdata,
(const char *)keystr, cds,
- alg->digest, ttl, diff, mctx));
+ alg->digest, cdsttl, diff,
+ mctx));
}
if (gencdnskey &&
"CDNSKEY for key %s is now published",
keystr);
RETERR(addrdata(&cdnskeyrdata, diff, origin,
- ttl, mctx));
+ cdnskeyttl, mctx));
}
}