Tor 0.4.9.8
Loading...
Searching...
No Matches
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
 

Detailed Description

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

Definition at line 41 of file tortls_st.h.

Field Documentation

◆ address

char* address

An address to log when describing this connection.

Definition at line 47 of file tortls_st.h.

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

◆ context

Definition at line 43 of file tortls_st.h.

◆ isServer

unsigned int isServer

True iff this is a server-side connection

Definition at line 51 of file tortls_st.h.

Referenced by tor_tls_is_server(), and tor_tls_new().

◆ magic

uint32_t magic

Definition at line 42 of file tortls_st.h.

◆ socket

tor_socket_t socket

The underlying file descriptor for this TLS connection.

Definition at line 45 of file tortls_st.h.

Referenced by tor_tls_new().

◆ ssl

tor_tls_impl_t* ssl

◆ state

tor_tls_state_bitfield_t state

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

Definition at line 48 of file tortls_st.h.

Referenced by tor_tls_handshake(), and tor_tls_new().


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