[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r10547: discard the "bridge list" stubs that i hope i never need. (tor/trunk/src/or)
Author: arma
Date: 2007-06-09 20:30:14 -0400 (Sat, 09 Jun 2007)
New Revision: 10547
Modified:
tor/trunk/src/or/circuitbuild.c
tor/trunk/src/or/config.c
tor/trunk/src/or/or.h
Log:
discard the "bridge list" stubs that i hope i never need.
Modified: tor/trunk/src/or/circuitbuild.c
===================================================================
--- tor/trunk/src/or/circuitbuild.c 2007-06-10 00:02:15 UTC (rev 10546)
+++ tor/trunk/src/or/circuitbuild.c 2007-06-10 00:30:14 UTC (rev 10547)
@@ -1816,7 +1816,7 @@
}
/** Check whether the entry guard <b>e</b> is usable, given the directory
- * authorities' opinion about the rouer (stored in <b>ri</b>) and the user's
+ * authorities' opinion about the router (stored in <b>ri</b>) and the user's
* configuration (in <b>options</b>). Set <b>e</b>->bad_since
* accordingly. Return true iff the entry guard's status changes. */
static int
@@ -2622,30 +2622,3 @@
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;
-}
-
Modified: tor/trunk/src/or/config.c
===================================================================
--- tor/trunk/src/or/config.c 2007-06-10 00:02:15 UTC (rev 10546)
+++ tor/trunk/src/or/config.c 2007-06-10 00:30:14 UTC (rev 10547)
@@ -952,7 +952,6 @@
add_default_trusted_dirservers();
}
- clear_bridge_list();
if (options->Bridges) {
for (cl = options->Bridges; cl; cl = cl->next) {
if (parse_bridge_line(cl->value, 0)<0) {
@@ -3607,7 +3606,7 @@
log_debug(LD_DIR, "Bridge at %s:%d (%s)", address,
(int)port,
fingerprint ? fingerprint : "no key listed");
- bridge_add_from_config(addr, port, fingerprint ? digest : NULL);
+// bridge_add_from_config(addr, port, fingerprint ? digest : NULL);
}
r = 0;
Modified: tor/trunk/src/or/or.h
===================================================================
--- tor/trunk/src/or/or.h 2007-06-10 00:02:15 UTC (rev 10546)
+++ tor/trunk/src/or/or.h 2007-06-10 00:30:14 UTC (rev 10547)
@@ -2210,9 +2210,6 @@
const char *question, char **answer);
void entry_guards_free_all(void);
-void clear_bridge_list(void);
-void bridge_add_from_config(uint32_t addr, uint16_t port, char *digest);
-
/********************************* circuitlist.c ***********************/
circuit_t * _circuit_get_global_list(void);