summaryrefslogtreecommitdiff
path: root/apps/gendsa.c
diff options
context:
space:
mode:
authorPhilip Prindeville <philipp@redfish-solutions.com>2021-12-21 20:44:07 -0700
committerTomas Mraz <tomas@openssl.org>2022-01-28 15:24:41 +0100
commita414fd6765bbc9bb0d630dbb4d780f44f825c8a2 (patch)
treec62e07a4efb047817d036b6ca77c6dc4254f30d7 /apps/gendsa.c
parent261b399fd7b1f4339e6d0fa3ee37b32b81d9d9e0 (diff)
downloadopenssl-new-a414fd6765bbc9bb0d630dbb4d780f44f825c8a2.tar.gz
Add -verbose/-queit flags to dhparam
Allow dhparam to run quietly in scripts, etc. For other commands that took a -verbose flag already, also support -quiet. For genpkey which only supported -quiet, add the -verbose flag. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17336)
Diffstat (limited to 'apps/gendsa.c')
-rw-r--r--apps/gendsa.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/gendsa.c b/apps/gendsa.c
index c4070c9e1a..f4608900b9 100644
--- a/apps/gendsa.c
+++ b/apps/gendsa.c
@@ -24,7 +24,7 @@
typedef enum OPTION_choice {
OPT_COMMON,
- OPT_OUT, OPT_PASSOUT, OPT_ENGINE, OPT_CIPHER, OPT_VERBOSE,
+ OPT_OUT, OPT_PASSOUT, OPT_ENGINE, OPT_CIPHER, OPT_VERBOSE, OPT_QUIET,
OPT_R_ENUM, OPT_PROV_ENUM
} OPTION_CHOICE;
@@ -44,6 +44,7 @@ const OPTIONS gendsa_options[] = {
OPT_PROV_OPTIONS,
{"", OPT_CIPHER, '-', "Encrypt the output with any supported cipher"},
{"verbose", OPT_VERBOSE, '-', "Verbose output"},
+ {"quiet", OPT_QUIET, '-', "Terse output"},
OPT_PARAMETERS(),
{"dsaparam-file", 0, 0, "File containing DSA parameters"},
@@ -98,6 +99,9 @@ int gendsa_main(int argc, char **argv)
case OPT_VERBOSE:
verbose = 1;
break;
+ case OPT_QUIET:
+ verbose = 0;
+ break;
}
}