tor_tls_t Struct Reference


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

Detailed Description

Holds a SSL object and its associated data. Members are only accessed from within tortls.c.

Field Documentation

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().

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().

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().

0 normally, >0 if we returned wantwrite last time.

Referenced by tor_tls_get_forced_write_size(), tor_tls_new(), and tor_tls_write().

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().

Argument to pass to negotiated_callback.

Referenced by tor_tls_read(), and tor_tls_set_renegotiate_callback().


The documentation for this struct was generated from the following file:

Generated on Tue May 25 00:31:26 2010 for tor by  doxygen 1.5.6