summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJon Spillett <jon.spillett@oracle.com>2021-01-19 13:43:35 +1000
committerTomas Mraz <tomas@openssl.org>2021-01-20 13:10:49 +0100
commit3d63348a871d2319f7ff3512f97fd660fa7fadea (patch)
treefd7dda0b8d38611939af2f58327e5931fc65dbb8 /apps
parentac6ea3a7c5f53dad710987aae289a66a2e3f159e (diff)
apps/genpkey.c: Use PEM_read_bio_Parameters_ex when reading parameters
Needed to be able to set the libctx and propq. Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13894)
Diffstat (limited to 'apps')
-rw-r--r--apps/genpkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/genpkey.c b/apps/genpkey.c
index 523ec1da8f..68dbbf87eb 100644
--- a/apps/genpkey.c
+++ b/apps/genpkey.c
@@ -252,7 +252,7 @@ static int init_keygen_file(EVP_PKEY_CTX **pctx, const char *file, ENGINE *e,
return 0;
}
- pkey = PEM_read_bio_Parameters(pbio, NULL);
+ pkey = PEM_read_bio_Parameters_ex(pbio, NULL, libctx, propq);
BIO_free(pbio);
if (pkey == NULL) {