Make MSBLOB format work with dsa utility.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 16 Nov 2016 23:14:30 +0000 (23:14 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 17 Nov 2016 03:53:03 +0000 (03:53 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/dsa.c

index 7f985128a02d59a121e9cfdcf84c6871b77023d2..d88116fb1098d7eb5029877fe73f5550cc2c0f0b 100644 (file)
@@ -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: