Add a deprecation warning for a function in docs
authorKevin Jerebica <jerebicakevin@gmail.com>
Tue, 16 Jan 2024 15:30:26 +0000 (16:30 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 18 Jan 2024 09:45:20 +0000 (10:45 +0100)
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 https://github.com/openssl/openssl/pull/23315)

(cherry picked from commit 3e938453be47751d50917e25b8f7334b482844b3)

doc/man3/SSL_get_peer_certificate.pod

index b695edc689fa8e2e15573e5da60c632312db752d..7885188eedb26428673f06029a187d6307d0a17a 100644 (file)
@@ -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