aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_messages.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-03-03 04:05:28 +0000
committerlloyd <[email protected]>2012-03-03 04:05:28 +0000
commit0cb5c24b007ba8cea9eb05f31548b078e2b1dea3 (patch)
tree05246766e6ee7048d5d6267876112ab57c3596cd /src/tls/tls_messages.h
parent03ff8576e98e22aef25439d991c3fd8a1db71237 (diff)
Move the handshake serialization code to Record_Writer
Diffstat (limited to 'src/tls/tls_messages.h')
-rw-r--r--src/tls/tls_messages.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tls/tls_messages.h b/src/tls/tls_messages.h
index 7162ece1a..3352c2a62 100644
--- a/src/tls/tls_messages.h
+++ b/src/tls/tls_messages.h
@@ -33,14 +33,14 @@ class Record_Reader;
class Handshake_Message
{
public:
- void send(Record_Writer& writer, Handshake_Hash& hash) const;
-
+ virtual MemoryVector<byte> serialize() const = 0;
virtual Handshake_Type type() const = 0;
+ Handshake_Message() {}
virtual ~Handshake_Message() {}
private:
+ Handshake_Message(const Handshake_Message&) {}
Handshake_Message& operator=(const Handshake_Message&) { return (*this); }
- virtual MemoryVector<byte> serialize() const = 0;
};
MemoryVector<byte> make_hello_random(RandomNumberGenerator& rng);