mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
commit jake's patch to include strings with socks5 error numbers
svn:r16657
This commit is contained in:
@@ -391,6 +391,19 @@ const char *tor_socket_strerror(int e);
|
||||
#define tor_socket_strerror(e) strerror(e)
|
||||
#endif
|
||||
|
||||
/** Specified SOCKS5 status codes. */
|
||||
typedef enum {
|
||||
SOCKS5_SUCCEEDED = 0x00,
|
||||
SOCKS5_GENERAL_ERROR = 0x01,
|
||||
SOCKS5_NOT_ALLOWED = 0x02,
|
||||
SOCKS5_NET_UNREACHABLE = 0x03,
|
||||
SOCKS5_HOST_UNREACHABLE = 0x04,
|
||||
SOCKS5_CONNECTION_REFUSED = 0x05,
|
||||
SOCKS5_TTL_EXPIRED = 0x06,
|
||||
SOCKS5_COMMAND_NOT_SUPPORTED = 0x07,
|
||||
SOCKS5_ADDRESS_TYPE_NOT_SUPPORTED = 0x08,
|
||||
} socks5_reply_status_t;
|
||||
|
||||
/* ===== OS compatibility */
|
||||
const char *get_uname(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user