APPS: dhparam: Support setting properties
authorClemens Lang <cllang@redhat.com>
Fri, 1 Jul 2022 12:50:59 +0000 (14:50 +0200)
committerDmitry Belyavskiy <beldmit@gmail.com>
Wed, 17 Aug 2022 07:31:07 +0000 (09:31 +0200)
commit05c8bd1f35d07f1877860e671bfde51faf4b3483
tree4ba25ffd7fec6a4599e547bd15d7c4ddb6cb2ea8
parentd6e3a2c15929a793d15e034f81cca19e1808efdc
APPS: dhparam: Support setting properties

The -provider and -propquery options did not work on dhparam. 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 ae3c30acac17271693e91dcae42c804cd96e8f93)
apps/dhparam.c
test/recipes/20-test_dhparam.t