summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-05-08 11:28:05 +0000
committerRoger Dingledine <arma@torproject.org>2007-05-08 11:28:05 +0000
commit07bf274d98e9543317406347ced616a7bc1162cc (patch)
tree98c1a8d0f8d566e59e1e4cf4317a38bd5dff8d4a /src/or/circuitbuild.c
parentd136f2a7b2754d4c7e5dd3395c9f4bcd2acaca94 (diff)
downloadtor-07bf274d98e9543317406347ced616a7bc1162cc.tar.gz
tor-07bf274d98e9543317406347ced616a7bc1162cc.zip
Interim commit: new config options Bridge and UseBridges.
It is becoming increasingly clear to me that bridges should be a special case of entry guards, not a whole separate pile of nearly identical functions. svn:r10141
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index a555900ec0..bdce36caa6 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -2609,3 +2609,30 @@ getinfo_helper_entry_guards(control_connection_t *conn,
return 0;
}
+typedef struct {
+ uint32_t addr;
+ uint16_t port;
+ char identity[DIGEST_LEN];
+} bridge_info_t;
+
+#if 0
+/** A list of known bridges. */
+static smartlist_t *bridge_list = NULL;
+/** A value of 1 means that the bridge_list list has changed
+ * and those changes need to be flushed to disk. */
+static int bridge_list_dirty = 0;
+#endif
+
+void
+clear_bridge_list(void)
+{
+}
+
+void
+bridge_add_from_config(uint32_t addr, uint16_t port, char *digest)
+{
+ (void)addr;
+ (void)port;
+ (void)digest;
+}
+