12#ifndef TOR_FEATURE_RELAY_TRANSPORT_CONFIG_H
13#define TOR_FEATURE_RELAY_TRANSPORT_CONFIG_H
15#ifdef HAVE_MODULE_RELAY
31#ifdef RELAY_TRANSPORT_CONFIG_PRIVATE
35 const char *transport);
61 *msg = tor_strdup(
"This tor was built with relay mode disabled. "
62 "It can not be configured with an ExtORPort, "
63 "a ServerTransportPlugin, a ServerTransportListenAddr, "
64 "or ServerTransportOptions.");
71#define pt_get_bindaddr_from_config(transport) \
72 (((void)(transport)),NULL)
75#define pt_get_options_for_server_transport(transport) \
76 (((void)(transport)),NULL)
78#define options_validate_server_transport(old_options, options, msg) \
79 (((void)(old_options)),((void)(options)),((void)(msg)),0)
80#define options_act_server_transport(old_options) \
81 (((void)(old_options)),0)
struct config_line_t * ServerTransportOptions
struct config_line_t * ServerTransportListenAddr
struct config_line_t * ExtORPort_lines
struct config_line_t * ServerTransportPlugin
Macros to implement mocking and selective exposure for the test code.
smartlist_t * pt_get_options_for_server_transport(const char *transport)
int options_act_server_transport(const or_options_t *old_options)
STATIC smartlist_t * get_options_from_transport_options_line(const char *line, const char *transport)
char * pt_get_bindaddr_from_config(const char *transport)
static int options_validate_server_transport(const struct or_options_t *old_options, struct or_options_t *options, char **msg)