Botan 1.10.17

tls_state.cpp
Go to the documentation of this file.
1 /*
2 * TLS Handshaking
3 * (C) 2004-2006 Jack Lloyd
4 *
5 * Released under the terms of the Botan license
6 */
7
8 #include <botan/internal/tls_state.h>
9
10 namespace Botan {
11
12 /**
13 * Initialize the SSL/TLS Handshake State
14 */
15 Handshake_State::Handshake_State()
16 {
17 client_hello = 0;
18 server_hello = 0;
19 server_certs = 0;
20 server_kex = 0;
21 cert_req = 0;
22 server_hello_done = 0;
23
24 client_certs = 0;
25 client_kex = 0;
26 client_verify = 0;
27 client_finished = 0;
28 server_finished = 0;
29
30 kex_pub = 0;
31 kex_priv = 0;
32
33 do_client_auth = got_client_ccs = got_server_ccs = false;
34 version = SSL_V3;
35 }
36
37 /**
38 * Destroy the SSL/TLS Handshake State
39 */
40 Handshake_State::~Handshake_State()
41 {
42 delete client_hello;
43 delete server_hello;
44 delete server_certs;
45 delete server_kex;
46 delete cert_req;
47 delete server_hello_done;
48
49 delete client_certs;
50 delete client_kex;
51 delete client_verify;
52 delete client_finished;
53 delete server_finished;
54
55 delete kex_pub;
56 delete kex_priv;
57 }
58
59 }
Botan::Handshake_State::client_hello
Client_Hello * client_hello
Definition: tls_state.h:22
Botan::Handshake_State::~Handshake_State
~Handshake_State()
Definition: tls_state.cpp:40
Botan::Handshake_State::do_client_auth
bool do_client_auth
Definition: tls_state.h:45
Botan::Handshake_State::client_kex
Client_Key_Exchange * client_kex
Definition: tls_state.h:30
Botan::Handshake_State::server_kex
Server_Key_Exchange * server_kex
Definition: tls_state.h:25
Botan::Handshake_State::got_server_ccs
bool got_server_ccs
Definition: tls_state.h:45
Botan::Handshake_State::version
Version_Code version
Definition: tls_state.h:44
Botan::Handshake_State::got_client_ccs
bool got_client_ccs
Definition: tls_state.h:45
Botan::Handshake_State::kex_priv
Private_Key * kex_priv
Definition: tls_state.h:36
Botan::Handshake_State::client_verify
Certificate_Verify * client_verify
Definition: tls_state.h:31
Botan::Handshake_State::Handshake_State
Handshake_State()
Definition: tls_state.cpp:15
Botan::Handshake_State::server_hello_done
Server_Hello_Done * server_hello_done
Definition: tls_state.h:27
Botan::Handshake_State::server_hello
Server_Hello * server_hello
Definition: tls_state.h:23
Botan::Handshake_State::client_certs
Certificate * client_certs
Definition: tls_state.h:29
Botan
Definition: algo_base.h:14
Botan::Handshake_State::cert_req
Certificate_Req * cert_req
Definition: tls_state.h:26
Botan::SSL_V3
Definition: tls_magic.h:24
Botan::Handshake_State::kex_pub
Public_Key * kex_pub
Definition: tls_state.h:35
Botan::Handshake_State::server_finished
Finished * server_finished
Definition: tls_state.h:33
Botan::Handshake_State::client_finished
Finished * client_finished
Definition: tls_state.h:32
Botan::Handshake_State::server_certs
Certificate * server_certs
Definition: tls_state.h:24