diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-06-09 10:21:58 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-05-25 15:16:54 +0200 |
commit | a7e4ca5b4e1932cb91ea21047403c87a033e524a (patch) | |
tree | 1ad41d1f12e8ed09486ca48cf570cff42962ec73 /apps/dhparam.c | |
parent | 8d67621de16990132c13f6a11bcc18ce8e9cdd47 (diff) |
Add warning to key/param generating apps on potential delay due to missing entropy
This also introduces app_keygen() and app_paramgen() and cleans up err reporting.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12095)
Diffstat (limited to 'apps/dhparam.c')
-rw-r--r-- | apps/dhparam.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/dhparam.c b/apps/dhparam.c index 5bb4b7f04a..ba3119b2ce 100644 --- a/apps/dhparam.c +++ b/apps/dhparam.c @@ -217,11 +217,7 @@ int dhparam_main(int argc, char **argv) } } - if (!EVP_PKEY_paramgen(ctx, &tmppkey)) { - BIO_printf(bio_err, "Error, %s generation failed\n", alg); - goto end; - } - + tmppkey = app_paramgen(ctx, alg); EVP_PKEY_CTX_free(ctx); ctx = NULL; if (dsaparam) { |