aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_client.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-12-30 20:20:42 +0000
committerlloyd <[email protected]>2011-12-30 20:20:42 +0000
commitdeb92d7f6d43206c04f332625d6b1e1a2abc444d (patch)
tree06c331d7f51071750091e013c6f853c015eacd18 /src/tls/tls_client.h
parent766f5eeb5c99936e7ddcf3e4c82095f087b6e928 (diff)
Add a function for getting the version number of an active connection.
Add a new callback that is called with the session info when a handshake completes. Currently only called on the server side as the client doesn't have session resumption yet. Rename CipherSuite to TLS_Cipher_Suite.
Diffstat (limited to 'src/tls/tls_client.h')
-rw-r--r--src/tls/tls_client.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tls/tls_client.h b/src/tls/tls_client.h
index 279f4bc16..e2623015a 100644
--- a/src/tls/tls_client.h
+++ b/src/tls/tls_client.h
@@ -24,6 +24,7 @@ class BOTAN_DLL TLS_Client : public TLS_Channel
* Set up a new TLS client session
* @param socket_output_fn is called with data for the outbound socket
* @param proc_fn is called when new data (application or alerts) is received
+ * @param handshake_complete is called when a handshake is completed
* @param session_manager manages session resumption
* @param policy specifies other connection policy information
* @param rng a random number generator
@@ -32,6 +33,7 @@ class BOTAN_DLL TLS_Client : public TLS_Channel
*/
TLS_Client(std::tr1::function<void (const byte[], size_t)> socket_output_fn,
std::tr1::function<void (const byte[], size_t, u16bit)> proc_fn,
+ std::tr1::function<void (const TLS_Session_Params&)> handshake_complete,
TLS_Session_Manager& session_manager,
const TLS_Policy& policy,
RandomNumberGenerator& rng,