mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 08:09:59 -04:00
Check that the specified DS digest is supported
dnssec-dsfromkey and dnssec-cds failed to properly check if the specified DS digest type is supported or not.
This commit is contained in:
parent
cbb0f165dc
commit
dfee0e64ed
1 changed files with 4 additions and 1 deletions
|
|
@ -361,7 +361,10 @@ strtodsdigest(const char *str) {
|
|||
r.length = strlen(str);
|
||||
result = dns_dsdigest_fromtext(&alg, &r);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
fatal("unknown DS algorithm %s", str);
|
||||
fatal("unknown DS digest %s", str);
|
||||
}
|
||||
if (!dst_ds_digest_supported(alg)) {
|
||||
fatal("unsupported DS digest %s", str);
|
||||
}
|
||||
return alg;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue