openssl/crypto/pem
Mat b01e1644d7 Fix: PEM_read_bio_PrivateKey with no-ui / no-stdio
If openssl is compiled with no-ui or no-stdio, then PEM_read_bio_PrivateKey fails if a password but no callback is provided.

The reason is that the premature return in the PEM_def_callback implementation when OPENSSL_NO_STDIO or OPENSSL_NO_UI is defined, comes too early.

This patch moves the ifdef block to the correct place.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-05-31 17:39:00 -04:00
..
build.info unified build scheme: add build.info files 2016-02-01 12:46:58 +01:00
message Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
pem_all.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
pem_err.c Remove unused error/function codes. 2016-05-23 15:04:23 -04:00
pem_info.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
pem_lib.c Fix: PEM_read_bio_PrivateKey with no-ui / no-stdio 2016-05-31 17:39:00 -04:00
pem_oth.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
pem_pk8.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
pem_pkey.c Support for traditional format private keys. 2016-05-23 16:41:34 +01:00
pem_sign.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
pem_x509.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
pem_xaux.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00
pkcs7.lis Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
pvkfmt.c Copyright consolidation 04/10 2016-05-17 14:24:46 -04:00