Dont' assume that something starting with '-' is a filename --
authorBodo Möller <bodo@openssl.org>
Fri, 6 Aug 1999 11:18:44 +0000 (11:18 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 6 Aug 1999 11:18:44 +0000 (11:18 +0000)
"openssl gendsa -help" now prints the usage summary, not error
messages that now file -help was found.

apps/gendsa.c

index dc0b216..5f00b89 100644 (file)
@@ -118,7 +118,7 @@ int MAIN(int argc, char **argv)
                else if (strcmp(*argv,"-idea") == 0)
                        enc=EVP_idea_cbc();
 #endif
-               else if (dsaparams == NULL)
+               else if (**argv != '-' && dsaparams == NULL)
                        {
                        dsaparams = *argv;
                        }