diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-04-11 01:39:26 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-04-11 01:39:55 -0400 |
commit | 7f50af116f2497a73fe9113e814a5765047cf3ca (patch) | |
tree | 8b31ff3c061a6978afb5438e52dc4b74124cf1c8 /src/or/or.h | |
parent | 6acf0ac2851fb95953edea9c231d82f487f28c3d (diff) | |
parent | fa3c23773944788125db2f67bcb048376c17fec9 (diff) | |
download | tor-7f50af116f2497a73fe9113e814a5765047cf3ca.tar.gz tor-7f50af116f2497a73fe9113e814a5765047cf3ca.zip |
Merge remote-tracking branch 'public/bug8117_023' into maint-0.2.4
Conflicts:
doc/tor.1.txt
src/or/config.c
src/or/connection.c
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 4e19140b4b..ece2bc7b19 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1247,6 +1247,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. @@ -3243,6 +3247,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; @@ -4159,6 +4167,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; |