summaryrefslogtreecommitdiffstats
path: root/apps/genrsa.c
diff options
context:
space:
mode:
authorClemens Lang <cllang@redhat.com>2022-07-04 17:15:46 +0200
committerDmitry Belyavskiy <beldmit@gmail.com>2022-08-17 09:31:08 +0200
commit8bb9fecf6341aad0a771bf585d9eea80ea6ac89d (patch)
tree2a0d1d6d2b6ef56eaac3eb0bd0637a9458e77501 /apps/genrsa.c
parent4fe6c2fdc80b11d6ec16c7a87ec46031d459e86b (diff)
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) (cherry picked from commit b2ccfd81025fa115f1138123b9aa61657e779352)
Diffstat (limited to 'apps/genrsa.c')
-rw-r--r--apps/genrsa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/genrsa.c b/apps/genrsa.c
index e709ea38ce..9721e63d64 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;
EVP_PKEY_CTX_set_cb(ctx, genrsa_cb);