aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_messages.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-12-28 16:23:10 +0000
committerlloyd <[email protected]>2011-12-28 16:23:10 +0000
commitd1324eb8283bf9adfbe5dca05be1ecbffba8a339 (patch)
tree6271429b011ea1455c45284ab16fdb0267b37db5 /src/tls/tls_messages.h
parent5ee3046bc9b8517bb6de5eda34f03ee907f9ff16 (diff)
Save peer certs in session info. Use helper function for handshake
hashing.
Diffstat (limited to 'src/tls/tls_messages.h')
-rw-r--r--src/tls/tls_messages.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls/tls_messages.h b/src/tls/tls_messages.h
index 880f77c98..8cfaea37e 100644
--- a/src/tls/tls_messages.h
+++ b/src/tls/tls_messages.h
@@ -131,7 +131,7 @@ class Certificate : public HandshakeMessage
{
public:
Handshake_Type type() const { return CERTIFICATE; }
- std::vector<X509_Certificate> cert_chain() const { return certs; }
+ const std::vector<X509_Certificate>& cert_chain() const { return certs; }
size_t count() const { return certs.size(); }
bool empty() const { return certs.empty(); }