From: Tomas Mraz Date: Wed, 30 Jun 2021 16:02:24 +0000 (+0200) Subject: PEM_read_...: document that garbage and other PEM data is skipped X-Git-Tag: openssl-3.0.0-beta2~129 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5cffc49f7213c718ebcc2c1236cdd8c2fae7fb28;p=thirdparty%2Fopenssl.git PEM_read_...: document that garbage and other PEM data is skipped Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15949) --- diff --git a/doc/man3/PEM_read_bio_PrivateKey.pod b/doc/man3/PEM_read_bio_PrivateKey.pod index 9df61892fd9..4ed1b8c7033 100644 --- a/doc/man3/PEM_read_bio_PrivateKey.pod +++ b/doc/man3/PEM_read_bio_PrivateKey.pod @@ -358,6 +358,10 @@ will be used. =head1 NOTES +The PEM reading functions will skip any extraneous content or PEM data of +a different type than they expect. This allows for example having a certificate +(or multiple certificates) and a key in the PEM format in a single file. + The old B write routines are retained for compatibility. New applications should write private keys using the PEM_write_bio_PKCS8PrivateKey() or PEM_write_PKCS8PrivateKey() routines