6 #ifndef TOR_TORTLS_ST_H
7 #define TOR_TORTLS_ST_H
19 #define TOR_TLS_MAGIC 0x71571571
22 TOR_TLS_ST_HANDSHAKE, TOR_TLS_ST_OPEN, TOR_TLS_ST_GOTCLOSE,
23 TOR_TLS_ST_SENTCLOSE, TOR_TLS_ST_CLOSED, TOR_TLS_ST_RENEGOTIATE,
24 TOR_TLS_ST_BUFFEREVENT
26 #define tor_tls_state_bitfield_t ENUM_BF(tor_tls_state_t)
30 tor_tls_context_impl_t *ctx;
31 struct tor_x509_cert_t *my_link_cert;
32 struct tor_x509_cert_t *my_id_cert;
33 struct tor_x509_cert_t *my_auth_cert;
48 tor_tls_state_bitfield_t
state : 3;
62 int8_t client_cipher_list_type;
68 unsigned long last_write_count;
69 unsigned long last_read_count;
71 unsigned long last_error;
74 void (*negotiated_callback)(
tor_tls_t *tls,
void *arg);
80 uint64_t last_write_count;
81 uint64_t last_read_count;
tor_tls_state_bitfield_t state
unsigned int wasV2Handshake
unsigned int got_renegotiate