Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ITcpSecureSocket::getPeerCertificate ( p6ICert **  ppCert)
pure virtual

Retrieves the certificate from the current connections peer and returns it.

An SSL connection must already be established.

Parameters
ppCert[ out ] The address of a p6ICert interface pointer in which to return the certificates interface
Returns
SuccessP6R::eOkThe peers certificate is returned via ppCert
FailureP6R::eNotInitializedThe initialize() method has not yet been called successfuly.
P6R::eSSLEngMissingPeerCertNo peer certificate could be retrievied. The peer may not have provided a certificate or the SSL socket is not yet connected.