diff options
author | lloyd <[email protected]> | 2010-09-15 14:20:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-15 14:20:38 +0000 |
commit | d432647483aa74c97460eb065f2b11fd82fc9177 (patch) | |
tree | 8fae2888ff5c18ab87fbf0c5c63a7e35b5db76a7 /src/ssl/tls_state.cpp | |
parent | 72ba429aa2550d12b13ce321a567601bddf7c665 (diff) |
Hide a number of the internal SSL headers from the user, you can still
see too much but better than before.
Diffstat (limited to 'src/ssl/tls_state.cpp')
-rw-r--r-- | src/ssl/tls_state.cpp | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/ssl/tls_state.cpp b/src/ssl/tls_state.cpp new file mode 100644 index 000000000..6aaf5e201 --- /dev/null +++ b/src/ssl/tls_state.cpp @@ -0,0 +1,59 @@ +/* +* TLS Handshaking +* (C) 2004-2006 Jack Lloyd +* +* Released under the terms of the Botan license +*/ + +#include <botan/internal/tls_state.h> + +namespace Botan { + +/** +* Initialize the SSL/TLS Handshake State +*/ +Handshake_State::Handshake_State() + { + client_hello = 0; + server_hello = 0; + server_certs = 0; + server_kex = 0; + cert_req = 0; + server_hello_done = 0; + + client_certs = 0; + client_kex = 0; + client_verify = 0; + client_finished = 0; + server_finished = 0; + + kex_pub = 0; + kex_priv = 0; + + do_client_auth = got_client_ccs = got_server_ccs = false; + version = SSL_V3; + } + +/** +* Destroy the SSL/TLS Handshake State +*/ +Handshake_State::~Handshake_State() + { + delete client_hello; + delete server_hello; + delete server_certs; + delete server_kex; + delete cert_req; + delete server_hello_done; + + delete client_certs; + delete client_kex; + delete client_verify; + delete client_finished; + delete server_finished; + + delete kex_pub; + delete kex_priv; + } + +} |