aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-04-23 21:22:01 +0000
committerlloyd <[email protected]>2010-04-23 21:22:01 +0000
commit76ee8b28fca005a35067cc1dbd82290ca9324552 (patch)
treed8404c2d2d532881910747c44d84e3ef4e3f4b8a /src/ssl
parent13c00b2b2fafe5a34ab7b76d24139bae50159386 (diff)
Return SecureVector vals by const ref
Diffstat (limited to 'src/ssl')
-rw-r--r--src/ssl/tls_messages.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ssl/tls_messages.h b/src/ssl/tls_messages.h
index 42f81b1fe..5c0c06c88 100644
--- a/src/ssl/tls_messages.h
+++ b/src/ssl/tls_messages.h
@@ -43,11 +43,11 @@ class BOTAN_DLL Client_Hello : public HandshakeMessage
public:
Handshake_Type type() const { return CLIENT_HELLO; }
Version_Code version() const { return c_version; }
- SecureVector<byte> session_id() const { return sess_id; }
+ const SecureVector<byte>& session_id() const { return sess_id; }
std::vector<u16bit> ciphersuites() const { return suites; }
std::vector<byte> compression_algos() const { return comp_algos; }
- SecureVector<byte> random() const { return c_random; }
+ const SecureVector<byte>& random() const { return c_random; }
std::string hostname() const { return requested_hostname; }
@@ -225,11 +225,11 @@ class BOTAN_DLL Server_Hello : public HandshakeMessage
public:
Handshake_Type type() const { return SERVER_HELLO; }
Version_Code version() { return s_version; }
- SecureVector<byte> session_id() const { return sess_id; }
+ const SecureVector<byte>& session_id() const { return sess_id; }
u16bit ciphersuite() const { return suite; }
byte compression_algo() const { return comp_algo; }
- SecureVector<byte> random() const { return s_random; }
+ const SecureVector<byte>& random() const { return s_random; }
Server_Hello(RandomNumberGenerator& rng,
Record_Writer&, const TLS_Policy*,