From 1fbb61c3f212f180066b5bffb28e68808df1ad2e Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 17 Oct 2016 03:17:08 -0400 Subject: In TLS::Session_Keys return values by reference --- src/lib/tls/tls_session_key.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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& master_secret() const { return m_master_sec; } -- cgit v1.2.3