aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_extensions.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-03-19 12:30:56 +0000
committerlloyd <[email protected]>2012-03-19 12:30:56 +0000
commit9ecf7c11be659502e28407b7e5001d88cba763c2 (patch)
tree9b45f3e9b90587e43fd62a2dbf0812a9c9663ab2 /src/tls/tls_extensions.h
parentb1238320b591bced237ab08bd32713c59d18525a (diff)
Small fixes, cleanups
Diffstat (limited to 'src/tls/tls_extensions.h')
-rw-r--r--src/tls/tls_extensions.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/tls/tls_extensions.h b/src/tls/tls_extensions.h
index 1adb7f72b..c2b9091db 100644
--- a/src/tls/tls_extensions.h
+++ b/src/tls/tls_extensions.h
@@ -218,7 +218,7 @@ class Session_Ticket : public Extension
Handshake_Extension_Type type() const { return static_type(); }
- const MemoryVector<byte>& contents() const { return m_contents; }
+ const MemoryVector<byte>& contents() const { return m_ticket; }
/**
* Create empty extension, used by both client and server
@@ -229,21 +229,18 @@ class Session_Ticket : public Extension
* Extension with ticket, used by client
*/
Session_Ticket(const MemoryRegion<byte>& session_ticket) :
- m_contents(session_ticket) {}
+ m_ticket(session_ticket) {}
/**
* Deserialize a session ticket
*/
- Session_Ticket(const TLS_Data_Reader& reader, u16bit extension_size)
- {
- // FIXME
- }
+ Session_Ticket(const TLS_Data_Reader& reader, u16bit extension_size);
- MemoryVector<byte> serialize() const { return m_contents; }
+ MemoryVector<byte> serialize() const { return m_ticket; }
bool empty() const { return false; }
private:
- MemoryVector<byte> m_contents;
+ MemoryVector<byte> m_ticket;
};
/**