mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-22 23:01:43 -04:00
prime_len -> key->key_size
This commit is contained in:
parent
3fc6ad66f9
commit
93c2df41be
1 changed files with 3 additions and 2 deletions
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
/*
|
||||
* Principal Author: Brian Wellington
|
||||
* $Id: openssldh_link.c,v 1.1.2.4 2007/01/08 02:02:28 marka Exp $
|
||||
* $Id: openssldh_link.c,v 1.1.2.5 2007/01/08 02:39:06 marka Exp $
|
||||
*/
|
||||
|
||||
#ifdef OPENSSL
|
||||
|
|
@ -157,7 +157,8 @@ openssldh_generate(dst_key_t *key, int generator) {
|
|||
|
||||
BN_GENCB_set_old(&cb, NULL, NULL);
|
||||
|
||||
if (!DH_generate_parameters_ex(dh, prime_len, generator, &cb)) {
|
||||
if (!DH_generate_parameters_ex(dh, key->key_size, generator,
|
||||
&cb)) {
|
||||
DH_free(dh);
|
||||
return (dst__openssl_toresult(DST_R_OPENSSLFAILURE));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue