summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/apps/gendsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/apps/gendsa.c')
-rw-r--r--src/lib/libssl/src/apps/gendsa.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/lib/libssl/src/apps/gendsa.c b/src/lib/libssl/src/apps/gendsa.c
index 9bfeb4c16b..bcc11a2e62 100644
--- a/src/lib/libssl/src/apps/gendsa.c
+++ b/src/lib/libssl/src/apps/gendsa.c
@@ -228,20 +228,11 @@ bad:
228 } 228 }
229 } 229 }
230 230
231 if (!app_RAND_load_file(NULL, bio_err, 1) && inrand == NULL) {
232 BIO_printf(bio_err, "warning, not much extra random data, consider using the -rand option\n");
233 }
234 if (inrand != NULL)
235 BIO_printf(bio_err, "%ld semi-random bytes loaded\n",
236 app_RAND_load_files(inrand));
237
238 BIO_printf(bio_err, "Generating DSA key, %d bits\n", 231 BIO_printf(bio_err, "Generating DSA key, %d bits\n",
239 BN_num_bits(dsa->p)); 232 BN_num_bits(dsa->p));
240 if (!DSA_generate_key(dsa)) 233 if (!DSA_generate_key(dsa))
241 goto end; 234 goto end;
242 235
243 app_RAND_write_file(NULL, bio_err);
244
245 if (!PEM_write_bio_DSAPrivateKey(out, dsa, enc, NULL, 0, NULL, passout)) 236 if (!PEM_write_bio_DSAPrivateKey(out, dsa, enc, NULL, 0, NULL, passout))
246 goto end; 237 goto end;
247 ret = 0; 238 ret = 0;