summaryrefslogtreecommitdiffstats
path: root/apps/dsa.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-02-08 15:06:48 +0000
committerDr. Stephen Henson <steve@openssl.org>2016-02-08 15:11:08 +0000
commitdd9589740d54b81c5aef6c7f5fa28f68f23fb27f (patch)
tree858f47468763d7a76a574b47c54bd165ec2a3b0e /apps/dsa.c
parent2f0c9d5cdf8a7eee73a3fde4f626b53434d04f91 (diff)
Fix engine key support in utilities.
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 992d4e4ff9..ebb5775a8b 100644
--- a/apps/dsa.c
+++ b/apps/dsa.c
@@ -82,7 +82,7 @@ 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"},
- {"in", OPT_IN, '<', "Input file"},
+ {"in", OPT_IN, 's', "Input key"},
{"out", OPT_OUT, '>', "Output file"},
{"noout", OPT_NOOUT, '-', "Don't print key out"},
{"text", OPT_TEXT, '-', "Print the key in text"},
@@ -130,8 +130,7 @@ int dsa_main(int argc, char **argv)
ret = 0;
goto end;
case OPT_INFORM:
- if (!opt_format
- (opt_arg(), OPT_FMT_PEMDER | OPT_FMT_PVK, &informat))
+ if (!opt_format(opt_arg(), OPT_FMT_ANY, &informat))
goto opthelp;
break;
case OPT_IN: