apps/genpkey.c: Use PEM_read_bio_Parameters_ex when reading parameters
authorJon Spillett <jon.spillett@oracle.com>
Tue, 19 Jan 2021 03:43:35 +0000 (13:43 +1000)
committerTomas Mraz <tomas@openssl.org>
Wed, 20 Jan 2021 12:10:49 +0000 (13:10 +0100)
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)

apps/genpkey.c

index 523ec1da8fba60a065272e7f4a76278069d1af3e..68dbbf87eb4d73a73d67e62d5452ad1469fd933b 100644 (file)
@@ -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) {