diff options
Diffstat (limited to 'src/tls/session_ticket.cpp')
-rw-r--r-- | src/tls/session_ticket.cpp | 17 |
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) { |