2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

1819. [bug] The validator needed to check both the algorithm and

digest types of the DS to determine if it could be
                        used to introduce a secure zone. [RT #13593]
This commit is contained in:
Mark Andrews
2005-03-04 03:53:22 +00:00
parent 39c7fc7e00
commit c941e32d22
6 changed files with 55 additions and 16 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: ds.c,v 1.4 2004/03/05 05:09:19 marka Exp $ */
/* $Id: ds.c,v 1.5 2005/03/04 03:53:20 marka Exp $ */
#include <config.h>
@@ -81,3 +81,8 @@ dns_ds_buildrdata(dns_name_t *owner, dns_rdata_t *key,
return (dns_rdata_fromstruct(rdata, key->rdclass, dns_rdatatype_ds,
&ds, &b));
}
isc_boolean_t
dns_ds_digest_supported(unsigned int digest_type) {
return (ISC_TF(digest_type == DNS_DSDIGEST_SHA1));
}