diff options
author | lloyd <[email protected]> | 2011-12-28 01:05:29 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-12-28 01:05:29 +0000 |
commit | e2f2809a421c8e9d60217cefdf2503a887e582ca (patch) | |
tree | e724983ce161813c8578599b368d0b612a3a7409 /src/tls/tls_client.h | |
parent | 065187289ea2c47f507b99a429dcf62a19d48f30 (diff) |
Partial bits of the server side of client auth. Incomplete.
Pass a session manager to TLS_Client's constructor. Currently unused.
Add time-based session expiration to the in-memory session cache.
Diffstat (limited to 'src/tls/tls_client.h')
-rw-r--r-- | src/tls/tls_client.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tls/tls_client.h b/src/tls/tls_client.h index 063323c8b..295eb0364 100644 --- a/src/tls/tls_client.h +++ b/src/tls/tls_client.h @@ -9,6 +9,7 @@ #define BOTAN_TLS_CLIENT_H__ #include <botan/tls_channel.h> +#include <botan/tls_session_state.h> #include <vector> namespace Botan { @@ -24,6 +25,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, + TLS_Session_Manager& session_manager, const TLS_Policy& policy, RandomNumberGenerator& rng); @@ -32,10 +34,12 @@ class BOTAN_DLL TLS_Client : public TLS_Channel ~TLS_Client(); private: - void process_handshake_msg(Handshake_Type, const MemoryRegion<byte>&); + void process_handshake_msg(Handshake_Type type, + const MemoryRegion<byte>& contents); const TLS_Policy& policy; RandomNumberGenerator& rng; + TLS_Session_Manager& session_manager; std::vector<std::pair<X509_Certificate, Private_Key*> > certs; }; |