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:08:28 +0000 (20:08 +0200)
commit0d0791eedff7f0747503d816184810aa093f523e
treef5a4e6fb517a2526816526d6f47c004e1265f96d
parent564e5b754a4680dfad38585dd73bcf025567b448
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)
crypto/pem/pem_pkey.c