Tor 0.4.9.8
Loading...
Searching...
No Matches
transport_config.h File Reference

Header for feature/relay/transport_config.c. More...

Go to the source code of this file.

Macros

#define pt_get_bindaddr_from_config(transport)
 
#define pt_get_options_for_server_transport(transport)
 
#define options_validate_server_transport(old_options, options, msg)
 
#define options_act_server_transport(old_options)
 

Functions

static int options_validate_server_transport (const struct or_options_t *old_options, struct or_options_t *options, char **msg)
 

Detailed Description

Header for feature/relay/transport_config.c.

Definition in file transport_config.h.

Macro Definition Documentation

◆ options_act_server_transport

#define options_act_server_transport ( old_options)
Value:
(((void)(old_options)),0)

Definition at line 80 of file transport_config.h.

◆ options_validate_server_transport

#define options_validate_server_transport ( old_options,
options,
msg )
Value:
(((void)(old_options)),((void)(options)),((void)(msg)),0)

Definition at line 78 of file transport_config.h.

◆ pt_get_bindaddr_from_config

#define pt_get_bindaddr_from_config ( transport)
Value:
(((void)(transport)),NULL)

Definition at line 71 of file transport_config.h.

◆ pt_get_options_for_server_transport

#define pt_get_options_for_server_transport ( transport)
Value:
(((void)(transport)),NULL)

Definition at line 75 of file transport_config.h.

Function Documentation

◆ options_validate_server_transport()

static int options_validate_server_transport ( const struct or_options_t * old_options,
struct or_options_t * options,
char ** msg )
inlinestatic

When tor is compiled with the relay module disabled, it can't be configured with server pluggable transports.

Returns -1 and sets msg to a newly allocated string, if ExtORPort, ServerTransportPlugin, ServerTransportListenAddr, or ServerTransportOptions are set in options. Otherwise returns 0.

Definition at line 48 of file transport_config.h.