mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
A few calls to dst_region_computeid() passed in regions with the wrong
length.
This commit is contained in:
parent
b534d5f57f
commit
cb8a455cd5
@ -19,7 +19,7 @@
|
||||
|
||||
/*
|
||||
* Principal Author: Brian Wellington
|
||||
* $Id: openssl_link.c,v 1.33 2000/08/01 01:27:53 tale Exp $
|
||||
* $Id: openssl_link.c,v 1.34 2000/08/08 16:13:39 bwelling Exp $
|
||||
*/
|
||||
#if defined(OPENSSL)
|
||||
|
||||
@ -307,6 +307,7 @@ openssldsa_fromdns(dst_key_t *key, isc_buffer_t *data) {
|
||||
r.base += p_bytes;
|
||||
|
||||
isc_buffer_remainingregion(data, &r);
|
||||
r.length = 1 + ISC_SHA1_DIGESTLENGTH + 3 * p_bytes;
|
||||
key->key_id = dst_region_computeid(&r);
|
||||
key->key_size = p_bytes * 8;
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
/*
|
||||
* Principal Author: Brian Wellington
|
||||
* $Id: openssldh_link.c,v 1.27 2000/08/01 01:27:54 tale Exp $
|
||||
* $Id: openssldh_link.c,v 1.28 2000/08/08 16:13:40 bwelling Exp $
|
||||
*/
|
||||
|
||||
#if defined(OPENSSL)
|
||||
@ -369,6 +369,7 @@ openssldh_fromdns(dst_key_t *key, isc_buffer_t *data) {
|
||||
r.base += publen;
|
||||
|
||||
isc_buffer_remainingregion(data, &r);
|
||||
r.length = plen + glen + publen + 6;
|
||||
key->key_id = dst_region_computeid(&r);
|
||||
key->key_size = BN_num_bits(dh->p);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user