version 1.18.4.2, 2004/04/25 20:39:57
|
version 1.19, 2004/05/18 14:57:53
|
|
|
} | } |
#endif | #endif |
| |
#ifdef PEGASUS_USE_232_CLIENT_VERIFICATION |
|
#ifdef PEGASUS_HAS_SSL |
|
/** Retrieves the SSL Certificate object | /** Retrieves the SSL Certificate object |
*/ | */ |
SSLCertificateInfo* getPeerCertificate() const | SSLCertificateInfo* getPeerCertificate() const |
|
|
_rep->setPeerCertificate(peerCertificate); | _rep->setPeerCertificate(peerCertificate); |
} | } |
| |
/** Retrieves the SSL Certificate status object |
|
Returns one of the following values from SSLSocket |
|
enum certificateStatusFlag |
|
{ |
|
VERIFICATION_DISABLED, //no request for certificate is sent |
|
NO_CERT, //certificate is requested, but client does not send one |
|
CERT_SUCCESS, //certificate is received and verified against truststore |
|
CERT_FAILURE //certificate is received but fails verification against truststore |
|
}; |
|
*/ |
|
Sint32 getCertificateStatus() const |
|
{ |
|
_checkRep(); |
|
return _rep->getCertificateStatus(); |
|
} |
|
|
|
/** Sets the certificate status to one of the above values from SSLSocket |
|
*/ |
|
void setCertificateStatus(Sint32 certificateStatus) |
|
{ |
|
_checkRep(); |
|
_rep->setCertificateStatus(certificateStatus); |
|
} |
|
#endif |
|
#endif |
|
|
|
private: | private: |
| |
AuthenticationInfo(AuthenticationInfoRep* rep) : _rep(rep) | AuthenticationInfo(AuthenticationInfoRep* rep) : _rep(rep) |