mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 06:49:58 -04:00
Skip unsupported algorithms when looking for signing key
When looking for a signing key in select_signing_key(), the result code indicating unsupported algorithm would abort the search. Instead, skip such keys and continue searching for the right key. Co-Authored-By: Aram Sargsyan <aram@isc.org> Co-Authored-By: Petr Menšík <pemensik@redhat.com>
This commit is contained in:
parent
488d7bfc75
commit
a94a7c1a1e
1 changed files with 8 additions and 2 deletions
|
|
@ -1092,8 +1092,14 @@ select_signing_key(dns_validator_t *val, dns_rdataset_t *rdataset) {
|
|||
continue;
|
||||
}
|
||||
|
||||
return dns_dnssec_keyfromrdata(&siginfo->signer, &rdata,
|
||||
val->view->mctx, &val->key);
|
||||
result = dns_dnssec_keyfromrdata(&siginfo->signer, &rdata,
|
||||
val->view->mctx, &val->key);
|
||||
/* Don't count unsupported algorithm towards max fails */
|
||||
if (result == DST_R_UNSUPPORTEDALG) {
|
||||
/* Continue with the next key */
|
||||
continue;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
return ISC_R_NOTFOUND;
|
||||
|
|
|
|||
Loading…
Reference in a new issue