From 239241568d4d3ff14d2d1994e5829f3d548f2078 Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 19 Jan 2012 17:07:03 +0000 Subject: Remove Handshake_Message::deserialize which was an unnecessary hook. Instead deserialize directly in the constructors that are passed the raw message data. This makes it easier to pass contextual information needed for decoding (eg, version numbers) where necessary. --- src/tls/s_kex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tls/s_kex.cpp') diff --git a/src/tls/s_kex.cpp b/src/tls/s_kex.cpp index 69531c7c4..7008c89de 100644 --- a/src/tls/s_kex.cpp +++ b/src/tls/s_kex.cpp @@ -73,7 +73,7 @@ MemoryVector Server_Key_Exchange::serialize_params() const /** * Deserialize a Server Key Exchange message */ -void Server_Key_Exchange::deserialize(const MemoryRegion& buf) +Server_Key_Exchange::Server_Key_Exchange(const MemoryRegion& buf) { if(buf.size() < 6) throw Decoding_Error("Server_Key_Exchange: Packet corrupted"); -- cgit v1.2.3