aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2006-01-29 17:30:35 +0000
committerVincent Richard <[email protected]>2006-01-29 17:30:35 +0000
commitbfe8c00465c37ef2b7f5070553b3d1ae074c0b73 (patch)
tree89c5ca3ac867be978b6b1656a27b9873c4bcd03f
parentFixed segfault when cert data is NULL. (diff)
downloadvmime-bfe8c00465c37ef2b7f5070553b3d1ae074c0b73.tar.gz
vmime-bfe8c00465c37ef2b7f5070553b3d1ae074c0b73.zip
getPeerCertificates() should be const.
Diffstat (limited to '')
-rw-r--r--src/net/tls/TLSSocket.cpp2
-rw-r--r--vmime/net/tls/TLSSocket.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tls/TLSSocket.cpp b/src/net/tls/TLSSocket.cpp
index 18bb7b9c..2eab2ad1 100644
--- a/src/net/tls/TLSSocket.cpp
+++ b/src/net/tls/TLSSocket.cpp
@@ -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;
const gnutls_datum* rawData = gnutls_certificate_get_peers
diff --git a/vmime/net/tls/TLSSocket.hpp b/vmime/net/tls/TLSSocket.hpp
index 8fb22990..5b2b7bb4 100644
--- a/vmime/net/tls/TLSSocket.hpp
+++ b/vmime/net/tls/TLSSocket.hpp
@@ -75,7 +75,7 @@ public:
* @return server certificate chain, or NULL if the handshake
* has not been performed yet
*/
- ref <security::cert::certificateChain> getPeerCertificates();
+ ref <security::cert::certificateChain> getPeerCertificates() const;
// Implementation of 'socket'