APPS: ecparam: Support setting properties
authorClemens Lang <cllang@redhat.com>
Fri, 1 Jul 2022 13:22:34 +0000 (15:22 +0200)
committerDmitry Belyavskiy <beldmit@gmail.com>
Wed, 17 Aug 2022 07:31:08 +0000 (09:31 +0200)
commit9bd968d42e77e2e7e00756cc7bef0817bf8322e1
treec85d3f8feee1a53bf7dcc4705e6e287372145083
parent05c8bd1f35d07f1877860e671bfde51faf4b3483
APPS: ecparam: Support setting properties

The -provider and -propquery options did not work on ecparam. Fix this
and add tests that check that operations that would usually fail with
the FIPS provider work when run with

| -provider default -propquery '?fips!=yes'

See also 30b2c3592e8511b60d44f93eb657a1ecb3662c08, which previously
fixed the same problem in dsaparam and gendsa. See also the initial
report in https://bugzilla.redhat.com/show_bug.cgi?id=2094956.

Signed-off-by: Clemens Lang <cllang@redhat.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/18717)

(cherry picked from commit 2b8f687d7627a4b15bba6a820825944185980376)
apps/ecparam.c
test/recipes/15-test_ecparam.t