SSL programs: allow invoking without arguments

All options have reasonable default so the programs don't need arguments
to do something useful.

It is widely accepted for programs that can work without arguments need
not insist on the user passing arguments, see 'ls', 'wc', 'sort', 'more'
and any number of POSIX utilities that all work without arguments.

It is also the historical behaviour of those programs, and something
relied one by at least a few team members.

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard 2023-06-26 11:29:35 +02:00
parent 0b74434e2a
commit 3eea9a461c
2 changed files with 2 additions and 2 deletions

View file

@ -951,7 +951,7 @@ int main(int argc, char *argv[])
opt.key_opaque_alg1 = DFL_KEY_OPAQUE_ALG;
opt.key_opaque_alg2 = DFL_KEY_OPAQUE_ALG;
if (argc < 2) {
if (argc < 1) {
usage:
if (ret == 0) {
ret = 1;

View file

@ -1741,7 +1741,7 @@ int main(int argc, char *argv[])
opt.key2_opaque_alg1 = DFL_KEY_OPAQUE_ALG;
opt.key2_opaque_alg2 = DFL_KEY_OPAQUE_ALG;
if (argc < 2) {
if (argc < 1) {
usage:
if (ret == 0) {
ret = 1;