Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
CLA: trivial
(Merged from https://github.com/openssl/openssl/pull/2247)
(cherry picked from commit
1f164c6fadd0eef0aa0997c51639a11276bf9072)
L<SSL_get_peer_certificate(3)>.
If the peer did not present a certificate, NULL is returned.
-NB: SSL_get_peer_chain() returns the peer chain as sent by the peer: it
+NB: SSL_get_peer_cert_chain() returns the peer chain as sent by the peer: it
only consists of certificates the peer has sent (in the order the peer
has sent them) it is B<not> a verified chain.