aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/rec_read.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls/rec_read.cpp')
-rw-r--r--src/tls/rec_read.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tls/rec_read.cpp b/src/tls/rec_read.cpp
index 3fd2df33f..c4773d279 100644
--- a/src/tls/rec_read.cpp
+++ b/src/tls/rec_read.cpp
@@ -65,15 +65,19 @@ void Record_Reader::set_version(Protocol_Version version)
/*
* Set the keys for reading
*/
-void Record_Reader::activate(const Ciphersuite& suite,
+void Record_Reader::activate(Connection_Side side,
+ const Ciphersuite& suite,
const Session_Keys& keys,
- Connection_Side side)
+ byte compression_method)
{
m_cipher.reset();
delete m_mac;
m_mac = 0;
m_seq_no = 0;
+ if(compression_method != NO_COMPRESSION)
+ throw Internal_Error("Negotiated unknown compression algorithm");
+
SymmetricKey mac_key, cipher_key;
InitializationVector iv;