summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-04-11 01:40:31 -0400
committerNick Mathewson <nickm@torproject.org>2013-04-11 01:40:31 -0400
commit3dfd1ebf12671323e97b002f66484544d90f1bae (patch)
treec4b9e9e34104693f35ecbb18cadc8aacaf3eeef2 /src/or/or.h
parent8e7226cf7f1f14032158c0c057050c0ac87740e6 (diff)
parent7f50af116f2497a73fe9113e814a5765047cf3ca (diff)
downloadtor-3dfd1ebf12671323e97b002f66484544d90f1bae.tar.gz
tor-3dfd1ebf12671323e97b002f66484544d90f1bae.zip
Merge remote-tracking branch 'origin/maint-0.2.4'
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 1f9017c39b..7252c6cd13 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1249,6 +1249,10 @@ typedef struct listener_connection_t {
/** One or more ISO_ flags to describe how to isolate streams. */
uint8_t isolation_flags;
/**@}*/
+ /** For SOCKS connections only: If this is set, we will choose "no
+ * authentication" instead of "username/password" authentication if both
+ * are offered. Used as input to parse_socks. */
+ unsigned int socks_prefer_no_auth : 1;
/** For a SOCKS listeners, these fields describe whether we should
* allow IPv4 and IPv6 addresses from our exit nodes, respectively.
@@ -3241,6 +3245,10 @@ typedef struct port_cfg_t {
uint8_t isolation_flags; /**< Zero or more isolation flags */
int session_group; /**< A session group, or -1 if this port is not in a
* session group. */
+ /* Socks only: */
+ /** When both no-auth and user/pass are advertised by a SOCKS client, select
+ * no-auth. */
+ unsigned int socks_prefer_no_auth : 1;
/* Server port types (or, dir) only: */
unsigned int no_advertise : 1;
@@ -4157,6 +4165,10 @@ struct socks_request_t {
* make sure we send back a socks reply for
* every connection. */
unsigned int got_auth : 1; /**< Have we received any authentication data? */
+ /** If this is set, we will choose "no authentication" instead of
+ * "username/password" authentication if both are offered. Used as input to
+ * parse_socks. */
+ unsigned int socks_prefer_no_auth : 1;
/** Number of bytes in username; 0 if username is NULL */
size_t usernamelen;