[openssl-dev] [openssl.org #4194] engine command regression in 1.1

Roumen Petrov via RT rt at openssl.org
Sat Jan 2 17:55:07 UTC 2016


Rich Salz via RT wrote:
> [SNIP]
> out = dup_bio_out(FORMAT_TEXT);
> - prog = opt_init(argc, argv, engine_options);
> if (!engines || !pre_cmds || !post_cmds)
> goto end;
> + while ((argv1 = argv[1]) != NULL && *argv1 != '-') {
> + sk_OPENSSL_STRING_push(engines, *argv1);
> + argc--;
> + argv++;
> + }
> + prog = opt_init(argc, argv, engine_options);
>
[SNIP]
Above patch is not complete. It seems to opt_init stop processing on 
first non-option argument.
In sample like :
openssl engine dynamic \
                  -pre SO_PATH:/lib/libfoo.so \
                  -pre ID:foo \
                  -pre LOAD \
                  -pre "CMD_FOO:some input data"

Arguments after dynamic are considered as engines The code try to use 
engines like "-pre",  "ID:foo" and "CMD_FOO:some input data".


Another sample is "    Or to simply see the list of commands supported 
by the "foo" ENGINE;

        openssl engine -vvvv dynamic \
                  -pre SO_PATH:/lib/libfoo.so \
                  -pre ID:foo \
                  -pre LOAD
"
In above case engine is between "normal" arguments.

Roumen




More information about the openssl-dev mailing list