SOCKS proxy for connections. More...
Functions | |
int | GNUNET_SOCKS_check_service (const char *service_name, const struct GNUNET_CONFIGURATION_Handle *cfg) |
Check if a SOCKS proxy is required by a service. More... | |
struct GNUNET_CONNECTION_Handle * | GNUNET_SOCKS_do_connect (const char *service_name, const struct GNUNET_CONFIGURATION_Handle *cfg) |
Try to connect to a service configured to use a SOCKS5 proxy. More... | |
SOCKS proxy for connections.
int GNUNET_SOCKS_check_service | ( | const char * | service_name, |
const struct GNUNET_CONFIGURATION_Handle * | cfg | ||
) |
Check if a SOCKS proxy is required by a service.
Do not use local service if a SOCKS proxy port is configured as this could deanonymize a user.
service_name | name of service to connect to |
cfg | configuration to use |
Definition at line 594 of file socks.c.
References cfg, GNUNET_CONFIGURATION_have_value(), and service_name.
Referenced by GNUNET_SOCKS_do_connect(), and start_connect().
struct GNUNET_CONNECTION_Handle * GNUNET_SOCKS_do_connect | ( | const char * | service_name, |
const struct GNUNET_CONFIGURATION_Handle * | cfg | ||
) |
Try to connect to a service configured to use a SOCKS5 proxy.
service_name | name of service to connect to |
cfg | configuration to use |
Definition at line 611 of file socks.c.
References _, cfg, GNUNET_CONFIGURATION_get_value_number(), GNUNET_CONFIGURATION_get_value_string(), GNUNET_ERROR_TYPE_WARNING, GNUNET_free, GNUNET_OK, GNUNET_SOCKS_check_service(), GNUNET_SOCKS_init_handshake(), GNUNET_SOCKS_run_handshake(), GNUNET_SOCKS_set_handshake_destination(), GNUNET_YES, LOG, and service_name.