aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_client.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-07-09 21:50:41 +0000
committerlloyd <[email protected]>2012-07-09 21:50:41 +0000
commit18a0c6d0b77985d85a22fed8afa3df14de590ca5 (patch)
tree87655683f34dfa26100bf0b5bcbccde71eadac1a /src/tls/tls_client.h
parent0dffe4ce78737a8d2d2861621705728c2b08c279 (diff)
Add TLS::Channel::new_handshake_state which abstracts creating the
handshaking state.
Diffstat (limited to 'src/tls/tls_client.h')
-rw-r--r--src/tls/tls_client.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tls/tls_client.h b/src/tls/tls_client.h
index fc08ca796..cd9da78b9 100644
--- a/src/tls/tls_client.h
+++ b/src/tls/tls_client.h
@@ -52,12 +52,14 @@ class BOTAN_DLL Client : public Channel
std::function<std::string (std::vector<std::string>)> next_protocol =
std::function<std::string (std::vector<std::string>)>());
- void renegotiate(bool force_full_renegotiation = false);
+ void renegotiate(bool force_full_renegotiation = false) override;
private:
void process_handshake_msg(Handshake_Type type,
const std::vector<byte>& contents) override;
- void alert_notify(const Alert& alert);
+ void alert_notify(const Alert& alert) override;
+
+ Handshake_State* new_handshake_state() const override;
const Policy& m_policy;
RandomNumberGenerator& m_rng;