Skip to content

Commit

Permalink
Add a deprecation warning for a function in docs
Browse files Browse the repository at this point in the history
The function in question is SSL_get_peer_certificate()

CLA: trivial

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #23315)
  • Loading branch information
0xdeadbeer authored and t8m committed Jan 18, 2024
1 parent c930ee5 commit 3e93845
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/man3/SSL_get_peer_certificate.pod
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ SSL_get1_peer_certificate - get the X509 certificate of the peer

#include <openssl/ssl.h>

X509 *SSL_get_peer_certificate(const SSL *ssl);
X509 *SSL_get0_peer_certificate(const SSL *ssl);
X509 *SSL_get1_peer_certificate(const SSL *ssl);

The following function has been deprecated since OpenSSL 3.0,
and can be hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable
version value, see L<openssl_user_macros(7)>:

X509 *SSL_get_peer_certificate(const SSL *ssl);

=head1 DESCRIPTION

These functions return a pointer to the X509 certificate the
Expand Down

0 comments on commit 3e93845

Please sign in to comment.