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;
58 unsigned long last_write_count;
59 unsigned long last_read_count;
61 unsigned long last_error;
64 void (*negotiated_callback)(
tor_tls_t *tls,
void *arg);
70 uint64_t last_write_count;
71 uint64_t last_read_count;
tor_tls_state_bitfield_t state