aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/msg_client_hello.cpp
diff options
context:
space:
mode:
authorMatthias Gierlings <[email protected]>2016-06-19 21:10:28 +0200
committerMatthias Gierlings <[email protected]>2016-06-19 21:10:28 +0200
commit589000efb270f8226745b7f32f52c42f4a0f0bdf (patch)
tree73627d4e097fa1ee22c324c3213ee4e3858db70a /src/lib/tls/msg_client_hello.cpp
parent0d38a540cca29955a50acda165e6d8643793e846 (diff)
Removed Handshake_Info class.
- Undid changes replacing Hanshake_IO, Handshake_Hash with Handshake_Info.
Diffstat (limited to 'src/lib/tls/msg_client_hello.cpp')
-rw-r--r--src/lib/tls/msg_client_hello.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/tls/msg_client_hello.cpp b/src/lib/tls/msg_client_hello.cpp
index 9c080b9a5..41a6f5c02 100644
--- a/src/lib/tls/msg_client_hello.cpp
+++ b/src/lib/tls/msg_client_hello.cpp
@@ -67,7 +67,8 @@ std::vector<byte> Hello_Request::serialize() const
/*
* Create a new Client Hello message
*/
-Client_Hello::Client_Hello(Handshake_Info& hs_info,
+Client_Hello::Client_Hello(Handshake_IO& io,
+ Handshake_Hash& hash,
const Policy& policy,
RandomNumberGenerator& rng,
const std::vector<byte>& reneg_info,
@@ -110,13 +111,14 @@ Client_Hello::Client_Hello(Handshake_Info& hs_info,
if(policy.send_fallback_scsv(client_settings.protocol_version()))
m_suites.push_back(TLS_FALLBACK_SCSV);
- hs_info.get_hash().update(hs_info.get_io().send(*this));
+ hash.update(io.send(*this));
}
/*
* Create a new Client Hello message (session resumption case)
*/
-Client_Hello::Client_Hello(Handshake_Info& hs_info,
+Client_Hello::Client_Hello(Handshake_IO& io,
+ Handshake_Hash& hash,
const Policy& policy,
RandomNumberGenerator& rng,
const std::vector<byte>& reneg_info,
@@ -162,7 +164,7 @@ Client_Hello::Client_Hello(Handshake_Info& hs_info,
}
#endif
- hs_info.get_hash().update(hs_info.get_io().send(*this));
+ hash.update(io.send(*this));
}
void Client_Hello::update_hello_cookie(const Hello_Verify_Request& hello_verify)