aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_session_key.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-17 03:17:08 -0400
committerJack Lloyd <[email protected]>2016-10-17 03:17:08 -0400
commit1fbb61c3f212f180066b5bffb28e68808df1ad2e (patch)
treec39f4eaa90b226118cadadc3a371bed226876da8 /src/lib/tls/tls_session_key.h
parentd135486bbd5cf8ccee6096a0bb90b4ef99ea373c (diff)
In TLS::Session_Keys return values by reference
Diffstat (limited to 'src/lib/tls/tls_session_key.h')
-rw-r--r--src/lib/tls/tls_session_key.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/tls/tls_session_key.h b/src/lib/tls/tls_session_key.h
index 23c4a78fb..2ea18d636 100644
--- a/src/lib/tls/tls_session_key.h
+++ b/src/lib/tls/tls_session_key.h
@@ -20,14 +20,14 @@ namespace TLS {
class Session_Keys
{
public:
- SymmetricKey client_cipher_key() const { return m_c_cipher; }
- SymmetricKey server_cipher_key() const { return m_s_cipher; }
+ const SymmetricKey& client_cipher_key() const { return m_c_cipher; }
+ const SymmetricKey& server_cipher_key() const { return m_s_cipher; }
- SymmetricKey client_mac_key() const { return m_c_mac; }
- SymmetricKey server_mac_key() const { return m_s_mac; }
+ const SymmetricKey& client_mac_key() const { return m_c_mac; }
+ const SymmetricKey& server_mac_key() const { return m_s_mac; }
- InitializationVector client_iv() const { return m_c_iv; }
- InitializationVector server_iv() const { return m_s_iv; }
+ const InitializationVector& client_iv() const { return m_c_iv; }
+ const InitializationVector& server_iv() const { return m_s_iv; }
const secure_vector<byte>& master_secret() const { return m_master_sec; }