5 #ifndef TLSV1_CLIENT_I_H
6 #define TLSV1_CLIENT_I_H
10 CLIENT_HELLO, SERVER_HELLO, SERVER_CERTIFICATE,
11 SERVER_KEY_EXCHANGE, SERVER_CERTIFICATE_REQUEST,
12 SERVER_HELLO_DONE, CLIENT_KEY_EXCHANGE, CHANGE_CIPHER_SPEC,
13 SERVER_CHANGE_CIPHER_SPEC, SERVER_FINISHED, ACK_FINISHED,
19 u8 session_id[TLS_SESSION_ID_MAX_LEN];
20 size_t session_id_len;
21 u8 client_random[TLS_RANDOM_LEN];
22 u8 server_random[TLS_RANDOM_LEN];
23 u8 master_secret[TLS_MASTER_SECRET_LEN];
28 unsigned int certificate_requested:1;
29 unsigned int session_resumed:1;
30 unsigned int session_ticket_included:1;
31 unsigned int use_session_ticket:1;
32 unsigned int disable_time_checks:1;
38 #define MAX_CIPHER_COUNT 30
39 u16 cipher_suites[MAX_CIPHER_COUNT];
40 size_t num_cipher_suites;
42 u16 prev_cipher_suite;
45 size_t client_hello_ext_len;
59 tlsv1_client_session_ticket_cb session_ticket_cb;
60 void *session_ticket_cb_ctx;
62 struct wpabuf *partial_input;
66 void tls_alert(
struct tlsv1_client *conn, u8 level, u8 description);
68 int tls_derive_pre_master_secret(u8 *pre_master_secret);
70 const u8 *pre_master_secret,
size_t pre_master_secret_len);
71 u8 * tls_send_client_hello(
struct tlsv1_client *conn,
size_t *out_len);
72 u8 * tlsv1_client_send_alert(
struct tlsv1_client *conn, u8 level,
73 u8 description,
size_t *out_len);
74 u8 * tlsv1_client_handshake_write(
struct tlsv1_client *conn,
size_t *out_len,
76 int tlsv1_client_process_handshake(
struct tlsv1_client *conn, u8 ct,
77 const u8 *buf,
size_t *len,
78 u8 **out_data,
size_t *out_len);
Definition: crypto_libtomcrypt.c:403
Definition: tlsv1_cred.h:8
Definition: tlsv1_client_i.h:8
Definition: tlsv1_record.h:27
Definition: tlsv1_common.h:231