diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-03-19 13:25:45 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-03-19 13:25:45 -0400 |
commit | c101ecc8dcc733fda31c0834f19c48d717ebe4c7 (patch) | |
tree | 53cbcd8c6b4290bd7d8c78fd2f58e791241864ab /src/or/config.h | |
parent | 6e94d2fb3a11d7cba5796c1662e0c5089ad3e509 (diff) | |
parent | 9bdd33eae68b93db688c4537e5c11841a5d37a3b (diff) | |
download | tor-c101ecc8dcc733fda31c0834f19c48d717ebe4c7.tar.gz tor-c101ecc8dcc733fda31c0834f19c48d717ebe4c7.zip |
Merge remote-tracking branch 'asn/bug3594_rebased_and_fixed'
Conflicts:
src/common/util.c
src/or/entrynodes.h
Diffstat (limited to 'src/or/config.h')
-rw-r--r-- | src/or/config.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/or/config.h b/src/or/config.h index ef4acac514..fbdedcfb50 100644 --- a/src/or/config.h +++ b/src/or/config.h @@ -98,5 +98,19 @@ int addressmap_register_auto(const char *from, const char *to, addressmap_entry_source_t addrmap_source, const char **msg); +/** Represents the information stored in a torrc Bridge line. */ +typedef struct bridge_line_t { + tor_addr_t addr; /* The IP address of the bridge. */ + uint16_t port; /* The TCP port of the bridge. */ + char *transport_name; /* The name of the pluggable transport that + should be used to connect to the bridge. */ + char digest[DIGEST_LEN]; /* The bridge's identity key digest. */ + smartlist_t *socks_args;; /* SOCKS arguments for the pluggable + transport proxy. */ +} bridge_line_t; + +void bridge_line_free(bridge_line_t *bridge_line); +bridge_line_t *parse_bridge_line(const char *line); + #endif |