aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_server.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_server.h
parent0dffe4ce78737a8d2d2861621705728c2b08c279 (diff)
Add TLS::Channel::new_handshake_state which abstracts creating the
handshaking state.
Diffstat (limited to 'src/tls/tls_server.h')
-rw-r--r--src/tls/tls_server.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tls/tls_server.h b/src/tls/tls_server.h
index 89e27fa92..b2143b182 100644
--- a/src/tls/tls_server.h
+++ b/src/tls/tls_server.h
@@ -35,7 +35,7 @@ class BOTAN_DLL Server : public Channel
const std::vector<std::string>& protocols =
std::vector<std::string>());
- void renegotiate(bool force_full_renegotiation = false);
+ void renegotiate(bool force_full_renegotiation = false) override;
/**
* Return the server name indicator, if sent by the client
@@ -50,11 +50,13 @@ class BOTAN_DLL Server : public Channel
{ return m_next_protocol; }
private:
- void read_handshake(byte, const std::vector<byte>&);
+ void read_handshake(byte, const std::vector<byte>&) override;
- void process_handshake_msg(Handshake_Type, const std::vector<byte>&);
+ void process_handshake_msg(Handshake_Type, const std::vector<byte>&) 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;