PEM_read_...: document that garbage and other PEM data is skipped
authorTomas Mraz <tomas@openssl.org>
Wed, 30 Jun 2021 16:02:24 +0000 (18:02 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 2 Jul 2021 13:33:34 +0000 (15:33 +0200)
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15949)

doc/man3/PEM_read_bio_PrivateKey.pod

index 9df61892fd97b30eb04e60ca8d2b04c6f50633d5..4ed1b8c70338e43b6e7752d36625c20019359474 100644 (file)
@@ -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<PrivateKey> write routines are retained for compatibility.
 New applications should write private keys using the
 PEM_write_bio_PKCS8PrivateKey() or PEM_write_PKCS8PrivateKey() routines