Public Member Functions | |
| HT_ENTRY (tor_tls_t) | |
Data Fields | |
| state | __pad0__: 3 | 
| unsigned int | isServer:1 | 
| unsigned int | wasV2Handshake:1 | 
| unsigned int | got_renegotiate:1 | 
| size_t | wantwrite_n | 
| unsigned long | last_write_count | 
| unsigned long | last_read_count | 
| void(* | negotiated_callback )(tor_tls_t *tls, void *arg) | 
| void * | callback_arg | 
| state tor_tls_t::__pad0__ | 
The current SSL state, depending on which operations have completed successfully.
| unsigned int tor_tls_t::isServer | 
True iff this is a server-side connection
Referenced by tor_tls_handshake(), tor_tls_is_server(), tor_tls_new(), tor_tls_renegotiate(), and tor_tls_used_v1_handshake().
| unsigned int tor_tls_t::wasV2Handshake | 
True iff the original handshake for this connection used the updated version of the connection protocol (client sends different cipher list, server sends only one certificate).
Referenced by tor_tls_handshake(), tor_tls_server_info_callback(), and tor_tls_used_v1_handshake().
| unsigned int tor_tls_t::got_renegotiate | 
True iff we should call negotiated_callback when we're done reading.
Referenced by tor_tls_read(), tor_tls_server_info_callback(), and tor_tls_set_renegotiate_callback().
| size_t tor_tls_t::wantwrite_n | 
0 normally, >0 if we returned wantwrite last time.
Referenced by tor_tls_get_forced_write_size(), tor_tls_new(), and tor_tls_write().
| unsigned long tor_tls_t::last_write_count | 
Last values retrieved from BIO_number_read()/write(); see tor_tls_get_n_raw_bytes() for usage.
Referenced by tor_tls_get_n_raw_bytes(), and tor_tls_new().
| void(* tor_tls_t::negotiated_callback)(tor_tls_t *tls, void *arg) | 
If set, a callback to invoke whenever the client tries to renegotiate the handshake.
Referenced by tor_tls_free(), tor_tls_read(), tor_tls_server_info_callback(), and tor_tls_set_renegotiate_callback().
| void* tor_tls_t::callback_arg | 
Argument to pass to negotiated_callback.
Referenced by tor_tls_read(), and tor_tls_set_renegotiate_callback().
 1.5.6