summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-03-20 16:17:06 -0400
committerNick Mathewson <nickm@torproject.org>2013-03-20 16:17:06 -0400
commitfa3c23773944788125db2f67bcb048376c17fec9 (patch)
tree93d89b2871e52c95ba5a9e5ae25817d44b0232ee /src/or/or.h
parenta264c4fedab87ce7c8cbb94632657a90e95e7a4e (diff)
downloadtor-fa3c23773944788125db2f67bcb048376c17fec9.tar.gz
tor-fa3c23773944788125db2f67bcb048376c17fec9.zip
Per-SOCKSPort configuration for bug 8117 fix.
This might be necessary if the bug8117 fix confuses any applications. Also add a changes file.
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 51c23d305d..ca28c0e7b5 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1085,6 +1085,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;
} listener_connection_t;
@@ -2910,6 +2914,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;
@@ -3729,6 +3737,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;