diff options
author | lloyd <[email protected]> | 2014-04-12 13:41:13 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-04-12 13:41:13 +0000 |
commit | 4d72d7344018e97d672956e5292e23c88e1f7f1f (patch) | |
tree | cf18bc2d23ae019f804356b6dff762e345d70043 /src/lib/tls/msg_session_ticket.cpp | |
parent | b971432dc88eca599214bf0a40219d3263d1abf2 (diff) |
Have TLS_Data_Reader decoding errors include the actual msg type name
Diffstat (limited to 'src/lib/tls/msg_session_ticket.cpp')
-rw-r--r-- | src/lib/tls/msg_session_ticket.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/tls/msg_session_ticket.cpp b/src/lib/tls/msg_session_ticket.cpp index 2bb9987a9..2d5411a86 100644 --- a/src/lib/tls/msg_session_ticket.cpp +++ b/src/lib/tls/msg_session_ticket.cpp @@ -26,19 +26,17 @@ New_Session_Ticket::New_Session_Ticket(Handshake_IO& io, } New_Session_Ticket::New_Session_Ticket(Handshake_IO& io, - Handshake_Hash& hash) : - m_ticket_lifetime_hint(0) + Handshake_Hash& hash) { hash.update(io.send(*this)); } -New_Session_Ticket::New_Session_Ticket(const std::vector<byte>& buf) : - m_ticket_lifetime_hint(0) +New_Session_Ticket::New_Session_Ticket(const std::vector<byte>& buf) { if(buf.size() < 6) throw Decoding_Error("Session ticket message too short to be valid"); - TLS_Data_Reader reader(buf); + TLS_Data_Reader reader("SessionTicket", buf); m_ticket_lifetime_hint = reader.get_u32bit(); m_ticket = reader.get_range<byte>(2, 0, 65535); |