diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-06-30 18:02:24 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-07-02 15:33:34 +0200 |
commit | 5cffc49f7213c718ebcc2c1236cdd8c2fae7fb28 (patch) | |
tree | 2c886bf3d7610d456db5a21ef3d92987e7d10d5f /doc | |
parent | d82d1d11d4dafc97875969329a5100242441744d (diff) |
PEM_read_...: document that garbage and other PEM data is skipped
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15949)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man3/PEM_read_bio_PrivateKey.pod | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/man3/PEM_read_bio_PrivateKey.pod b/doc/man3/PEM_read_bio_PrivateKey.pod index 9df61892fd..4ed1b8c703 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<PrivateKey> write routines are retained for compatibility. New applications should write private keys using the PEM_write_bio_PKCS8PrivateKey() or PEM_write_PKCS8PrivateKey() routines |