diff options
author | lloyd <[email protected]> | 2012-03-20 21:32:48 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-03-20 21:32:48 +0000 |
commit | ff2154e7998b44aa242e55daeeb79c6d5ab9e5df (patch) | |
tree | ba1af7aaec56315a27c47b49d7c412754c4fde6b /src/tls/s_hello.cpp | |
parent | 9ecf7c11be659502e28407b7e5001d88cba763c2 (diff) |
Basic protocol message flow for session tickets
Diffstat (limited to 'src/tls/s_hello.cpp')
-rw-r--r-- | src/tls/s_hello.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tls/s_hello.cpp b/src/tls/s_hello.cpp index 9bcbdb5e9..3e30382f6 100644 --- a/src/tls/s_hello.cpp +++ b/src/tls/s_hello.cpp @@ -89,6 +89,7 @@ Server_Hello::Server_Hello(Record_Writer& writer, Server_Hello::Server_Hello(const MemoryRegion<byte>& buf) { m_secure_renegotiation = false; + m_supports_session_ticket = false; m_next_protocol = false; if(buf.size() < 38) @@ -132,6 +133,13 @@ Server_Hello::Server_Hello(const MemoryRegion<byte>& buf) m_next_protocols = npn->protocols(); m_next_protocol = true; } + + if(Session_Ticket* ticket = extensions.get<Session_Ticket>()) + { + if(!ticket->contents().empty()) + throw Decoding_Error("TLS server sent non-empty session ticket extension"); + m_supports_session_ticket = true; + } } /* |