Fix option processing.

Submitted by: Sam Tetherow
This commit is contained in:
Bodo Möller 1999-07-14 18:37:51 +00:00
parent b5b22731f1
commit c69e361f1c

View File

@ -108,10 +108,6 @@ int MAIN(int argc, char **argv)
} }
else if (strcmp(*argv,"-") == 0) else if (strcmp(*argv,"-") == 0)
goto bad; goto bad;
else if (dsaparams == NULL)
{
dsaparams= *argv;
}
#ifndef NO_DES #ifndef NO_DES
else if (strcmp(*argv,"-des") == 0) else if (strcmp(*argv,"-des") == 0)
enc=EVP_des_cbc(); enc=EVP_des_cbc();
@ -122,6 +118,10 @@ int MAIN(int argc, char **argv)
else if (strcmp(*argv,"-idea") == 0) else if (strcmp(*argv,"-idea") == 0)
enc=EVP_idea_cbc(); enc=EVP_idea_cbc();
#endif #endif
else if (dsaparams == NULL)
{
dsaparams = *argv;
}
else else
goto bad; goto bad;
argv++; argv++;