TLS start packet processing logic made more robust

This commit is contained in:
2016-08-08 10:42:24 +02:00
parent 8f4c177d49
commit ce9e636840
2 changed files with 46 additions and 29 deletions

View File

@@ -211,8 +211,9 @@ namespace eap
public:
enum phase_t {
phase_client_hello = 0,
phase_server_hello = 1,
phase_unknown = -1,
phase_client_hello = 0,
phase_server_hello = 1,
} m_phase; ///< Session phase
struct packet
@@ -258,6 +259,11 @@ namespace eap
/// \returns Reference to this object
///
packet& operator=(_Inout_ packet &&other);
///
/// Empty the packet
///
void clear();
}
m_packet_req, ///< Request packet
m_packet_res; ///< Response packet