From 3d63348a871d2319f7ff3512f97fd660fa7fadea Mon Sep 17 00:00:00 2001 From: Jon Spillett Date: Tue, 19 Jan 2021 13:43:35 +1000 Subject: [PATCH] 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 Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/13894) --- apps/genpkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {