mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Fix option processing.
Submitted by: Sam Tetherow
This commit is contained in:
parent
b5b22731f1
commit
c69e361f1c
@ -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++;
|
||||||
|
Loading…
Reference in New Issue
Block a user