aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_client.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-07-28 21:00:07 +0000
committerlloyd <[email protected]>2012-07-28 21:00:07 +0000
commit8aca7772a96c0ff92bcf9cd98993c1b33de2d761 (patch)
treeaab405c75d27589b6dcf277b090591b7d03c4839 /src/tls/tls_client.h
parenta85ce65d9be4009e2232c191017d7abc7ca6de73 (diff)
Combine client initial handshake and renegotiation in initiate_handshake.
One behavioral change is we now send SNI on renegotation hellos. This is probably harmless (?) and might be helpful for the server in finding the right certs.
Diffstat (limited to 'src/tls/tls_client.h')
-rw-r--r--src/tls/tls_client.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tls/tls_client.h b/src/tls/tls_client.h
index ad13a94dc..f8af662d3 100644
--- a/src/tls/tls_client.h
+++ b/src/tls/tls_client.h
@@ -68,6 +68,11 @@ class BOTAN_DLL Client : public Channel
void renegotiate(bool force_full_renegotiation = false) override;
private:
+ void initiate_handshake(bool force_full_renegotiation,
+ const std::string& srp_identifier = "",
+ std::function<std::string (std::vector<std::string>)> next_protocol =
+ std::function<std::string (std::vector<std::string>)>());
+
void process_handshake_msg(Handshake_Type type,
const std::vector<byte>& contents) override;