TLS version no longer static, thou still fixed to TLS 1.0

This commit is contained in:
2016-08-15 19:04:21 +02:00
parent 3267b7f53d
commit c8cfe4da42
4 changed files with 142 additions and 17 deletions

View File

@@ -130,10 +130,7 @@ namespace eap
struct message_header
{
unsigned char type; ///< Message type (one of `message_type_t` constants)
struct {
unsigned char major; ///< Major version
unsigned char minor; ///< Minor version
} version; ///< SSL/TLS version
tls_version version; ///< SSL/TLS version
unsigned char length[2]; ///< Message length (in network byte order)
};
#pragma pack(pop)
@@ -269,7 +266,7 @@ namespace eap
///
/// \returns Change cipher spec
///
static eap::sanitizing_blob make_change_chiper_spec();
eap::sanitizing_blob make_change_chiper_spec() const;
///
/// Makes a TLS finished message
@@ -510,6 +507,8 @@ namespace eap
winstd::crypt_prov m_cp; ///< Cryptography provider
tls_version m_tls_version; ///< TLS version in use
tls_conn_state m_state; ///< TLS connection state for fast reconnect
sanitizing_blob m_padding_hmac_client; ///< Padding (key) for client side HMAC calculation