The PEM_read_bio_Parameters() function should not ask for a password
authorMatt Caswell <matt@openssl.org>
Mon, 31 Jul 2023 11:32:16 +0000 (12:32 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 1 Aug 2023 18:10:18 +0000 (20:10 +0200)
commit3cc07fe0ff42be45d8931a21d7bef78ba5085ccb
tree8aa3a09bae82c296c8b3f96bd5bc6ff125329766
parent4b52d80c48fe1f4858f43030be0be92cc2158668
The PEM_read_bio_Parameters() function should not ask for a password

The PEM_read_bio_Parameters[_ex] function does not have the capability
of specifying a password callback. We should not use the fallback password
callback in this case because it will attempt to send a prompt for the
password which might not be the correct thing to do. We should just not
use a password in that case.

Fixes #21588

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21603)

(cherry picked from commit 0d0791eedff7f0747503d816184810aa093f523e)
crypto/pem/pem_pkey.c