diff options
author | lloyd <[email protected]> | 2010-02-14 05:39:37 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-02-14 05:39:37 +0000 |
commit | 1e596a25e32c3106b3d6e2aceb64a270a8b30713 (patch) | |
tree | 6f9bc30f3583f81420b69200d5ff1c82b4a00917 /src/ssl/tls_state.h | |
parent | 12e07d37e9622cfb24b2102090550a0260c6665c (diff) | |
parent | 3b980d2fcee997ba262cf7e8d8542eb51a56be3e (diff) |
propagate from branch 'net.randombit.botan' (head 5bfc3e699003b86615c584f8ae40bd6e761f96c0)
to branch 'net.randombit.botan.ssl' (head 6865128cf0c5f6ad1987e22cc1d521fd2e38fd21)
Diffstat (limited to 'src/ssl/tls_state.h')
-rw-r--r-- | src/ssl/tls_state.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/ssl/tls_state.h b/src/ssl/tls_state.h new file mode 100644 index 000000000..fd192c9ae --- /dev/null +++ b/src/ssl/tls_state.h @@ -0,0 +1,53 @@ +/** +* TLS Handshaking Header File +* (C) 2004-2006 Jack Lloyd +* +* Released under the terms of the Botan license +*/ + +#ifndef BOTAN_HANDSHAKE_H__ +#define BOTAN_HANDSHAKE_H__ + +#include <botan/tls_messages.h> +#include <botan/secqueue.h> + +namespace Botan { + +/** +* SSL/TLS Handshake State +*/ +class BOTAN_DLL Handshake_State + { + public: + Client_Hello* client_hello; + Server_Hello* server_hello; + Certificate* server_certs; + Server_Key_Exchange* server_kex; + Certificate_Req* cert_req; + Server_Hello_Done* server_hello_done; + + Certificate* client_certs; + Client_Key_Exchange* client_kex; + Certificate_Verify* client_verify; + Finished* client_finished; + Finished* server_finished; + + X509_PublicKey* kex_pub; + PKCS8_PrivateKey* kex_priv; + + CipherSuite suite; + SessionKeys keys; + HandshakeHash hash; + + SecureQueue queue; + + Version_Code version; + bool got_client_ccs, got_server_ccs, do_client_auth; + + Handshake_State(); + ~Handshake_State(); + }; + +} + +#endif |