getPeerCertificates() should be const.

This commit is contained in:
Vincent Richard 2006-01-29 17:30:35 +00:00
parent ce5e7f9c52
commit bfe8c00465
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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'