tor  0.4.0.1-alpha
Data Fields
tor_tls_t Struct Reference

#include <tortls_st.h>

Data Fields

uint32_t magic
 
tor_tls_context_tcontext
 
tor_tls_impl_t * ssl
 
tor_socket_t socket
 
char * address
 
tor_tls_state_bitfield_t state: 3
 
unsigned int isServer:1
 
unsigned int wasV2Handshake:1
 
unsigned int got_renegotiate:1
 

Detailed Description

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

Definition at line 33 of file tortls_st.h.

Field Documentation

◆ address

char* tor_tls_t::address

An address to log when describing this connection.

Definition at line 39 of file tortls_st.h.

Referenced by tls_log_errors(), tor_tls_free_(), and tor_tls_set_logged_address().

◆ got_renegotiate

unsigned int tor_tls_t::got_renegotiate

True iff we should call negotiated_callback when we're done reading.

Definition at line 50 of file tortls_st.h.

◆ isServer

unsigned int tor_tls_t::isServer

True iff this is a server-side connection

Definition at line 43 of file tortls_st.h.

Referenced by tor_tls_is_server().

◆ socket

tor_socket_t tor_tls_t::socket

The underlying file descriptor for this TLS connection.

Definition at line 37 of file tortls_st.h.

◆ ssl

tor_tls_impl_t* tor_tls_t::ssl

A link to the context object for this tls. An OpenSSL SSL object or NSS PRFileDesc.

Definition at line 36 of file tortls_st.h.

Referenced by tor_tls_free_(), tor_tls_get_n_raw_bytes(), tor_tls_get_pending_bytes(), tor_tls_handshake(), tor_tls_peer_has_cert(), and tor_tls_write().

◆ state

tor_tls_state_bitfield_t tor_tls_t::state

The current SSL state, depending on which operations have completed successfully.

Definition at line 40 of file tortls_st.h.

Referenced by tor_tls_handshake().

◆ wasV2Handshake

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

Definition at line 44 of file tortls_st.h.


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