diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-11-16 23:14:30 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-11-17 03:54:30 +0000 |
commit | 1142556755beae2d87c80702158fee50ad29fb48 (patch) | |
tree | d74820fdf69859bfa802e933d52902f93197badd /apps | |
parent | c9a1525cdba39bfe1717773dda156fe6696102f8 (diff) |
Make MSBLOB format work with dsa utility.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit b3795987477f1d478fd8bd20efb812e71b190e8b)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dsa.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/dsa.c b/apps/dsa.c index bfb08e9600..273f8d0856 100644 --- a/apps/dsa.c +++ b/apps/dsa.c @@ -37,7 +37,7 @@ typedef enum OPTION_choice { OPTIONS dsa_options[] = { {"help", OPT_HELP, '-', "Display this summary"}, {"inform", OPT_INFORM, 'f', "Input format, DER PEM PVK"}, - {"outform", OPT_OUTFORM, 'F', "Output format, DER PEM PVK"}, + {"outform", OPT_OUTFORM, 'f', "Output format, DER PEM PVK"}, {"in", OPT_IN, 's', "Input key"}, {"out", OPT_OUT, '>', "Output file"}, {"noout", OPT_NOOUT, '-', "Don't print key out"}, @@ -96,8 +96,7 @@ int dsa_main(int argc, char **argv) infile = opt_arg(); break; case OPT_OUTFORM: - if (!opt_format - (opt_arg(), OPT_FMT_PEMDER | OPT_FMT_PVK, &outformat)) + if (!opt_format(opt_arg(), OPT_FMT_ANY, &outformat)) goto opthelp; break; case OPT_OUT: |