aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dsaparam.c
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 /apps/dsaparam.c
parentfdaea9ed2e5644b98baae983ce7a55100c956999 (diff)
downloadopenssl-e189872486477c2bb9b041cb00f4390ef4aa911b.tar.gz
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 'apps/dsaparam.c')
-rw-r--r--apps/dsaparam.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/dsaparam.c b/apps/dsaparam.c
index 63e2cab45f..7a3110136c 100644
--- a/apps/dsaparam.c
+++ b/apps/dsaparam.c
@@ -281,10 +281,7 @@ bad:
if (numbits > 0)
{
BN_GENCB cb;
- cb.ver = 2;
- cb.cb_2 = dsa_cb;
- cb.arg = bio_err;
-
+ BN_GENCB_set(&cb, dsa_cb, bio_err);
assert(need_rand);
dsa = DSA_new();
if(!dsa)