From bfe8c00465c37ef2b7f5070553b3d1ae074c0b73 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 29 Jan 2006 17:30:35 +0000 Subject: [PATCH] getPeerCertificates() should be const. --- src/net/tls/TLSSocket.cpp | 2 +- vmime/net/tls/TLSSocket.hpp | 2 +- 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 TLSSocket::getPeerCertificates() +ref 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 getPeerCertificates(); + ref getPeerCertificates() const; // Implementation of 'socket'