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

prime_len -> key->key_size

This commit is contained in:
Mark Andrews
2007-01-08 02:35:58 +00:00
parent 5147281cb8
commit 2a5600ad8b

View File

@@ -18,7 +18,7 @@
/* /*
* Principal Author: Brian Wellington * Principal Author: Brian Wellington
* $Id: openssldh_link.c,v 1.8 2007/01/08 01:52:27 marka Exp $ * $Id: openssldh_link.c,v 1.9 2007/01/08 02:35:58 marka Exp $
*/ */
#ifdef OPENSSL #ifdef OPENSSL
@@ -158,8 +158,7 @@ openssldh_generate(dst_key_t *key, int generator) {
else else
dh->p = &bn1536; dh->p = &bn1536;
dh->g = &bn2; dh->g = &bn2;
} } else
else
generator = 2; generator = 2;
} }
@@ -171,7 +170,8 @@ openssldh_generate(dst_key_t *key, int generator) {
BN_GENCB_set_old(&cb, NULL, NULL); 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); DH_free(dh);
return (dst__openssl_toresult(DST_R_OPENSSLFAILURE)); return (dst__openssl_toresult(DST_R_OPENSSLFAILURE));
} }