SSL_get_peer_cert_chain() returns a pointer to STACKOF(X509) certificates
forming the certificate chain of the peer. If called on the client side,
the stack also contains the peers certificate; if called on the server
side, the peers certificate must be obtained separately using
If the peer did not present a certificate, NULL is returned.