From: Jon Spillett Date: Tue, 19 Jan 2021 03:43:35 +0000 (+1000) Subject: apps/genpkey.c: Use PEM_read_bio_Parameters_ex when reading parameters X-Git-Tag: openssl-3.0.0-alpha11~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d63348a871d2319f7ff3512f97fd660fa7fadea;p=thirdparty%2Fopenssl.git 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) --- diff --git a/apps/genpkey.c b/apps/genpkey.c index 523ec1da8fb..68dbbf87eb4 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) {