Change the option setting command line switch to "-pkeyopt" to avoid confusion
with algorithm parameters.
This commit is contained in:
parent
7b82159865
commit
92511cff48
2 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@ int MAIN(int argc, char **argv)
|
||||||
if (!init_gen_str(bio_err, &ctx, *(++args),e, do_param))
|
if (!init_gen_str(bio_err, &ctx, *(++args),e, do_param))
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
else if (strcmp(*args,"-param") == 0)
|
else if (strcmp(*args,"-pkeyopt") == 0)
|
||||||
{
|
{
|
||||||
if (!args[1])
|
if (!args[1])
|
||||||
goto bad;
|
goto bad;
|
||||||
|
|
|
@ -180,7 +180,7 @@ int MAIN(int argc, char **argv)
|
||||||
pkey_op = EVP_PKEY_OP_ENCRYPT;
|
pkey_op = EVP_PKEY_OP_ENCRYPT;
|
||||||
else if(!strcmp(*argv, "-decrypt"))
|
else if(!strcmp(*argv, "-decrypt"))
|
||||||
pkey_op = EVP_PKEY_OP_DECRYPT;
|
pkey_op = EVP_PKEY_OP_DECRYPT;
|
||||||
else if (strcmp(*argv,"-param") == 0)
|
else if (strcmp(*argv,"-pkeyopt") == 0)
|
||||||
{
|
{
|
||||||
if (--argc < 1)
|
if (--argc < 1)
|
||||||
badarg = 1;
|
badarg = 1;
|
||||||
|
|
Loading…
Reference in a new issue