bool digest_sha1;
uint8_t unsupported_algorithm;
uint8_t unsupported_digest;
+ uint8_t validation_attempts;
dns_rdata_t rdata;
bool resume;
isc_counter_t *nvalidations;
}
}
+ val->validation_attempts++;
+
/*
* Find the DNSKEY matching the DS...
*/
val->name, key.algorithm,
key.data, key.datalen))
{
+ /*
+ * Don't count the unsupported algorithm into the
+ * validation attempts.
+ */
+ val->validation_attempts--;
+
if (val->unsupported_algorithm == 0) {
val->unsupported_algorithm = key.algorithm;
/*
return;
}
+ if (val->validation_attempts != 0) {
+ val->unsupported_algorithm = 0;
+ val->unsupported_digest = 0;
+ }
+
validate_dnskey_dsset_done(val, result);
return;
}