]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
apps: Make genpkey verbose when verbose option is set
authorNorbert Pocs <norbertp@openssl.org>
Mon, 13 Oct 2025 12:39:24 +0000 (14:39 +0200)
committerPauli <paul.dale@oracle.com>
Wed, 29 Oct 2025 21:47:50 +0000 (08:47 +1100)
Signed-off-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/28887)

apps/genpkey.c

index bd44c5871fd4d6e1c03803776bc6fa90956aa659..2dcca2ee8884cad4bbbc507c832e767d7149bd38 100644 (file)
@@ -15,7 +15,7 @@
 #include <openssl/err.h>
 #include <openssl/evp.h>
 
-static int verbose = 1;
+static int verbose = 0;
 
 static int init_keygen_file(EVP_PKEY_CTX **pctx, const char *file, ENGINE *e,
                             OSSL_LIB_CTX *libctx, const char *propq);
@@ -254,7 +254,7 @@ int genpkey_main(int argc, char **argv)
     EVP_PKEY_CTX_set_app_data(ctx, bio_err);
 
     pkey = do_param ? app_paramgen(ctx, algname)
-                    : app_keygen(ctx, algname, 0, 0 /* not verbose */);
+                    : app_keygen(ctx, algname, 0, verbose);
     if (pkey == NULL)
         goto end;