aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/session_ticket.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-03-22 18:20:26 +0000
committerlloyd <[email protected]>2012-03-22 18:20:26 +0000
commit4004e38a00f6bf5743af68d47e44f7adf3872d2b (patch)
tree605a6ec635f74221f65fbdfec00467a72f21e975 /src/tls/session_ticket.cpp
parent544171d3e20d65f17a1d3955388a8db4f04cfe44 (diff)
Server side handling of session tickets, though currently with a
hard-coded key.
Diffstat (limited to 'src/tls/session_ticket.cpp')
-rw-r--r--src/tls/session_ticket.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tls/session_ticket.cpp b/src/tls/session_ticket.cpp
index d209d3dca..47a8a5c32 100644
--- a/src/tls/session_ticket.cpp
+++ b/src/tls/session_ticket.cpp
@@ -15,6 +15,23 @@ namespace Botan {
namespace TLS {
+New_Session_Ticket::New_Session_Ticket(Record_Writer& writer,
+ Handshake_Hash& hash,
+ const MemoryRegion<byte>& ticket,
+ u32bit lifetime) :
+ m_ticket_lifetime_hint(lifetime),
+ m_ticket(ticket)
+ {
+ hash.update(writer.send(*this));
+ }
+
+New_Session_Ticket::New_Session_Ticket(Record_Writer& writer,
+ Handshake_Hash& hash) :
+ m_ticket_lifetime_hint(0)
+ {
+ hash.update(writer.send(*this));
+ }
+
New_Session_Ticket::New_Session_Ticket(const MemoryRegion<byte>& buf) :
m_ticket_lifetime_hint(0)
{