}
/* Don't consider inactive keys, however
- * the key may be temporary offline, so do
- * consider keys which private key files are
+ * the KSK may be temporary offline, so do
+ * consider KSKs which private key files are
* unavailable.
*/
if (dst_key_inactive(keys[j])) {
}
if (KSK(keys[j])) {
have_ksk = true;
- } else {
+ } else if (dst_key_isprivate(keys[j])) {
have_nonksk = true;
}
both = have_ksk && have_nonksk;
result = dns_rdata_tostruct(&rdata, &dnskey, NULL);
INSIST(result == ISC_R_SUCCESS);
- /* RFC 3110, section 4: Performance Considerations:
+ /*
+ * RFC 3110, section 4: Performance Considerations:
*
* A public exponent of 3 minimizes the effort needed to verify
* a signature. Use of 3 as the public exponent is weak for
continue;
}
- /* Don't consider inactive keys, however
- * the key may be temporary offline, so do
+ /*
+ * Don't consider inactive keys, however
+ * the KSK may be temporary offline, so do
* consider keys which private key files are
* unavailable.
*/
}
if (KSK(keys[j])) {
have_ksk = true;
- } else {
+ } else if (dst_key_isprivate(keys[j])) {
have_nonksk = true;
}
both = have_ksk && have_nonksk;
ALG(zone_keys[j]))) {
continue;
}
- /* Don't consider inactive keys, however
+ /*
+ * Don't consider inactive keys, however
* the key may be temporary offline, so
- * do consider keys which private key
+ * do consider KSKs which private key
* files are unavailable.
*/
if (dst_key_inactive(zone_keys[j])) {
}
if (KSK(zone_keys[j])) {
have_ksk = true;
- } else {
+ } else if (dst_key_isprivate(
+ zone_keys[j])) {
have_nonksk = true;
}
both = have_ksk && have_nonksk;
timeout = 30;
}
- /* Save request parameters so we can reuse them later on
- for resolving missing glue A/AAAA records. */
+ /*
+ * Save request parameters so we can reuse them later on
+ * for resolving missing glue A/AAAA records.
+ */
cb_args = isc_mem_get(zone->mctx, sizeof(*cb_args));
cb_args->stub = stub;
cb_args->tsig_key = key;