diff options
author | Clemens Lang <cllang@redhat.com> | 2022-07-04 17:15:46 +0200 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2022-08-17 09:20:41 +0200 |
commit | b2ccfd81025fa115f1138123b9aa61657e779352 (patch) | |
tree | c7819025179f5712372dbdfdbe378b54663dccbb /apps | |
parent | 653a7706781ebbe8a6a4b84d29b39d001c395ffe (diff) | |
download | openssl-new-b2ccfd81025fa115f1138123b9aa61657e779352.tar.gz |
APPS: genrsa: Support setting properties
The -provider and -propquery options did not work on genrsa. Fix this
and add a test that checks 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)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/genrsa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/genrsa.c b/apps/genrsa.c index 2f8960f959..3151de646b 100644 --- a/apps/genrsa.c +++ b/apps/genrsa.c @@ -179,7 +179,8 @@ opthelp: if (out == NULL) goto end; - if (!init_gen_str(&ctx, "RSA", eng, 0, NULL, NULL)) + if (!init_gen_str(&ctx, "RSA", eng, 0, app_get0_libctx(), + app_get0_propq())) goto end; if (verbose) |