getPeerCertificates() should be const.
This commit is contained in:
parent
ce5e7f9c52
commit
bfe8c00465
@ -280,7 +280,7 @@ ssize_t TLSSocket::gnutlsPullFunc
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ref <security::cert::certificateChain> TLSSocket::getPeerCertificates()
|
ref <security::cert::certificateChain> TLSSocket::getPeerCertificates() const
|
||||||
{
|
{
|
||||||
unsigned int certCount = 0;
|
unsigned int certCount = 0;
|
||||||
const gnutls_datum* rawData = gnutls_certificate_get_peers
|
const gnutls_datum* rawData = gnutls_certificate_get_peers
|
||||||
|
@ -75,7 +75,7 @@ public:
|
|||||||
* @return server certificate chain, or NULL if the handshake
|
* @return server certificate chain, or NULL if the handshake
|
||||||
* has not been performed yet
|
* has not been performed yet
|
||||||
*/
|
*/
|
||||||
ref <security::cert::certificateChain> getPeerCertificates();
|
ref <security::cert::certificateChain> getPeerCertificates() const;
|
||||||
|
|
||||||
|
|
||||||
// Implementation of 'socket'
|
// Implementation of 'socket'
|
||||||
|
Loading…
Reference in New Issue
Block a user