summaryrefslogtreecommitdiffstats
path: root/crypto/dh
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2002-12-08 16:45:26 +0000
committerGeoff Thorpe <geoff@openssl.org>2002-12-08 16:45:26 +0000
commite189872486477c2bb9b041cb00f4390ef4aa911b (patch)
treed5a3ad328351adddf360315937074087669ee83d /crypto/dh
parentfdaea9ed2e5644b98baae983ce7a55100c956999 (diff)
Nils Larsch submitted;
- a patch to fix a memory leak in rsa_gen.c - a note about compiler warnings with unions - a note about improving structure element names This applies his patch and implements a solution to the notes.
Diffstat (limited to 'crypto/dh')
-rw-r--r--crypto/dh/dh_depr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/dh/dh_depr.c b/crypto/dh/dh_depr.c
index 8a909b1959..3eb319e2a8 100644
--- a/crypto/dh/dh_depr.c
+++ b/crypto/dh/dh_depr.c
@@ -70,9 +70,7 @@ DH *DH_generate_parameters(int prime_len, int generator,
if((ret=DH_new()) == NULL)
return NULL;
- cb.ver = 1;
- cb.arg = cb_arg;
- cb.cb_1 = callback;
+ BN_GENCB_set_old(&cb, callback, cb_arg);
if(DH_generate_parameters_ex(ret, prime_len, generator, &cb))
return ret;