gtpc1m5vTransmission Control Protocol/Internet Protocol

SSL_get_peer_certificate

The SSL_get_peer_certificate function returns the peer certificate that was received when the Secure Sockets Layer (SSL) session was started.

Format

#include <openssl/ssl.h>
X509 *SSL_get_peer_certificate(SSL *ssl)

ssl
A pointer to a token returned on the SSL_new call.

Normal Return

Returns one of the following:

Error Return

None.

Programming Considerations

The SSL_get_peer_certificate function checks to determine whether a peer certificate exists. Issue the SSL_get_verify_result function to determine whether the certificate is valid.

Examples

For sample SSL applications, go to http://www.ibm.com/tpf/pubs/tpfpubs.htm, click SSL for the TPF 4.1 System: An Online User's Guide, and click Examples from the left navigation bar.

Related Information