Commit 2a5600ad authored by Mark Andrews's avatar Mark Andrews
Browse files

prime_len -> key->key_size

parent 5147281c
......@@ -18,7 +18,7 @@
/*
* 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
......@@ -158,8 +158,7 @@ openssldh_generate(dst_key_t *key, int generator) {
else
dh->p = &bn1536;
dh->g = &bn2;
}
else
} else
generator = 2;
}
......@@ -171,7 +170,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));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment