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

DSA_generate_parameters_ex parameters

This commit is contained in:
Mark Andrews
2007-01-08 03:02:32 +00:00
parent f36c85c3ce
commit b0985f2ac5

View File

@@ -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));
}