openssl/crypto/pem
Milan Broz 373d901280 pem: avoid segfault if PKEY is NULL in PEM_write_bio_PrivateKey
Make the code more robust and correctly handle EVP_PKEY set to NULL
instead of dereferencing null pointer.

Signed-off-by: Milan Broz <gmazyland@gmail.com>

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19536)
2022-11-10 18:10:48 +01:00
..
build.info
pem_all.c
pem_err.c
pem_info.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
pem_lib.c pem: fix -Wunused-but-set-variable 2022-10-21 15:56:32 +02:00
pem_local.h
pem_oth.c
pem_pk8.c
pem_pkey.c pem: avoid segfault if PKEY is NULL in PEM_write_bio_PrivateKey 2022-11-10 18:10:48 +01:00
pem_sign.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
pem_x509.c
pem_xaux.c
pvkfmt.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00