Commit b0985f2a authored by Mark Andrews's avatar Mark Andrews
Browse files

DSA_generate_parameters_ex parameters

parent f36c85c3
......@@ -16,7 +16,7 @@
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: openssldsa_link.c,v 1.8 2007/01/08 02:45:04 marka Exp $ */
/* $Id: openssldsa_link.c,v 1.9 2007/01/08 03:02:32 marka Exp $ */
#ifdef OPENSSL
......@@ -190,10 +190,12 @@ openssldsa_generate(dst_key_t *key, int unused) {
if (dsa == NULL)
return (dst__openssl_toresult(DST_R_OPENSSLFAILURE));
BN_GENCB_set_old(&cb, callback, cb_arg);
BN_GENCB_set_old(&cb, NULL, NULL);
if (!DSA_generate_parameters_ex(dsa, bits, seed_in, seed_len,
counter_ret, h_ret, &cb)) {
if (!DSA_generate_parameters_ex(dsa, key->key_size, rand_array,
ISC_SHA1_DIGESTLENGTH, NULL, NULL,
&cb))
{
DSA_free(dsa);
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