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>
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;