diff options
author | Viktor Dukhovni <openssl-users@dukhovni.org> | 2016-04-03 20:58:09 -0400 |
---|---|---|
committer | Viktor Dukhovni <openssl-users@dukhovni.org> | 2016-04-03 21:49:24 -0400 |
commit | ae6c553ecaa915d2689e66d68ac0965beba31e53 (patch) | |
tree | f0357df425b2a5233ed8fd7e97328142f3b23317 | |
parent | adb4076ae06dd6ff01a62b1fcd73f02aadc5ecae (diff) |
Fix mixed declarations and code
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
-rw-r--r-- | apps/dsaparam.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dsaparam.c b/apps/dsaparam.c index 64e92ae052..5c282be1c3 100644 --- a/apps/dsaparam.c +++ b/apps/dsaparam.c @@ -264,13 +264,14 @@ int dsaparam_main(int argc, char **argv) if (C) { BIGNUM *p = NULL, *q = NULL, *g = NULL; + unsigned char *data; int len, bits_p; DSA_get0_pqg(dsa, &p, &q, &g); len = BN_num_bytes(p); bits_p = BN_num_bits(p); - unsigned char *data = app_malloc(len + 20, "BN space"); + data = app_malloc(len + 20, "BN space"); BIO_printf(bio_out, "DSA *get_dsa%d()\n{\n", bits_p); print_bignum_var(bio_out, p, "dsap", len, data); |