Fix mixed declarations and code
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
This commit is contained in:
parent
adb4076ae0
commit
ae6c553eca
@ -264,13 +264,14 @@ int dsaparam_main(int argc, char **argv)
|
|||||||
|
|
||||||
if (C) {
|
if (C) {
|
||||||
BIGNUM *p = NULL, *q = NULL, *g = NULL;
|
BIGNUM *p = NULL, *q = NULL, *g = NULL;
|
||||||
|
unsigned char *data;
|
||||||
int len, bits_p;
|
int len, bits_p;
|
||||||
|
|
||||||
DSA_get0_pqg(dsa, &p, &q, &g);
|
DSA_get0_pqg(dsa, &p, &q, &g);
|
||||||
len = BN_num_bytes(p);
|
len = BN_num_bytes(p);
|
||||||
bits_p = BN_num_bits(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);
|
BIO_printf(bio_out, "DSA *get_dsa%d()\n{\n", bits_p);
|
||||||
print_bignum_var(bio_out, p, "dsap", len, data);
|
print_bignum_var(bio_out, p, "dsap", len, data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user