summaryrefslogtreecommitdiffstats
path: root/apps/dsa.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-11-16 23:14:30 +0000
committerDr. Stephen Henson <steve@openssl.org>2016-11-17 03:53:03 +0000
commitb3795987477f1d478fd8bd20efb812e71b190e8b (patch)
tree9a105577a80223eac3b2b758932e62cad18cafd7 /apps/dsa.c
parent159f6e7ecfde9e98194d6111c85587b85b6a8fc5 (diff)
Make MSBLOB format work with dsa utility.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps/dsa.c')
-rw-r--r--apps/dsa.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/dsa.c b/apps/dsa.c
index 7f985128a0..d88116fb10 100644
--- a/apps/dsa.c
+++ b/apps/dsa.c
@@ -37,7 +37,7 @@ typedef enum OPTION_choice {
const 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: