summaryrefslogtreecommitdiff
path: root/src/or/bridges.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-11-29 10:14:42 -0500
committerNick Mathewson <nickm@torproject.org>2016-12-16 11:06:18 -0500
commit53f248f6c9d71784c271cf14501ec4c28e5e885d (patch)
tree75b16a87ae378b930796e631bf1f0f01ac8c55e8 /src/or/bridges.h
parent1d52ac4d3f67a6e3fac3602f87d00c14060068ab (diff)
downloadtor-53f248f6c9d71784c271cf14501ec4c28e5e885d.tar.gz
tor-53f248f6c9d71784c271cf14501ec4c28e5e885d.zip
Add some needed accessors/inspectors for bridge/guard convergence
Diffstat (limited to 'src/or/bridges.h')
-rw-r--r--src/or/bridges.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/bridges.h b/src/or/bridges.h
index d01794f573..74c5113231 100644
--- a/src/or/bridges.h
+++ b/src/or/bridges.h
@@ -20,8 +20,13 @@ typedef struct bridge_info_t bridge_info_t;
void mark_bridge_list(void);
void sweep_bridge_list(void);
const smartlist_t *bridge_list_get(void);
+bridge_info_t *find_bridge_by_digest(const char *digest);
const uint8_t *bridge_get_rsa_id_digest(const bridge_info_t *bridge);
const tor_addr_port_t * bridge_get_addr_port(const bridge_info_t *bridge);
+bridge_info_t *get_configured_bridge_by_addr_port_digest(
+ const tor_addr_t *addr,
+ uint16_t port,
+ const char *digest);
int addr_is_a_configured_bridge(const tor_addr_t *addr, uint16_t port,
const char *digest);