APPS: pkeyparam: Support setting properties
authorClemens Lang <cllang@redhat.com>
Fri, 1 Jul 2022 13:35:22 +0000 (15:35 +0200)
committerDmitry Belyavskiy <beldmit@gmail.com>
Wed, 17 Aug 2022 07:31:08 +0000 (09:31 +0200)
commitbe52cfec4974c47d8c5579928b774a43c9264883
treebb9c86487267e01c29e293f0462872d445ddb3b6
parent9bd968d42e77e2e7e00756cc7bef0817bf8322e1
APPS: pkeyparam: Support setting properties

The -provider and -propquery options did not work on pkeyparam. 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 0185538799803a1a98823f42ac2402ede04f56da)
apps/pkeyparam.c
test/recipes/15-test_ecparam.t