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

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

An SSL connection must already be established.

Parameters
ppCert[ in ] The address of an P6R::p6ICert pointer in which to return the certificate interface pointer.
Returns
SuccessP6R::eOkA chain was retrieved from the peer and the enumerator is returned via ppEnum
FailureP6R::eNotInitializedThe initialize() method has not yet been called successfuly.
P6R::eSSLEngMissingPeerCertThe peer did not provide a certificate chain or the socket is not yet connected.
P6R::eNotFoundThe peer returned a certificate chain, but a root certificate was not found in the chain.