summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-01-03 06:33:03 +0000
committerRoger Dingledine <arma@torproject.org>2007-01-03 06:33:03 +0000
commitd677332a83dfb04e998b50daffa822c59b380a4f (patch)
treeaa6d4e1c06e6632b13427005e0522f3fc9420da7 /src/or/or.h
parenteebbfbc8545975d6fea76ad4ffe2ae551560cbf8 (diff)
downloadtor-d677332a83dfb04e998b50daffa822c59b380a4f.tar.gz
tor-d677332a83dfb04e998b50daffa822c59b380a4f.zip
checkpoint as we add PreferTunneledDirConns config option
svn:r9249
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 23ecdad93c..6ee3f522e1 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1663,6 +1663,8 @@ typedef struct {
* same network zone in the same circuit. */
int TunnelDirConns; /**< If true, use BEGIN_DIR rather than BEGIN when
* possible. */
+ int PreferTunneledDirConns; /**< If true, avoid dirservers that don't
+ * support BEGIN_DIR, when possible. */
int AllowNonRFC953Hostnames; /**< If true, we allow connections to hostnames
* with weird characters. */
} or_options_t;
@@ -2267,6 +2269,8 @@ int connection_dir_reached_eof(dir_connection_t *conn);
int connection_dir_process_inbuf(dir_connection_t *conn);
int connection_dir_finished_flushing(dir_connection_t *conn);
int connection_dir_finished_connecting(dir_connection_t *conn);
+int connection_dir_supports_tunnels(or_options_t *options,
+ const char *platform);
void connection_dir_request_failed(dir_connection_t *conn);
int dir_split_resource_into_fingerprints(const char *resource,
smartlist_t *fp_out, int *compresseed_out,