diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-29 08:34:54 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-29 08:34:54 +0000 |
commit | c1dc17e6e2f194d8c7078218be96cb96b9aaa6bd (patch) | |
tree | 12d5e4d5f40c8f5655e6a2e12ac558fa74c4edb6 /src/or/or.h | |
parent | 4effabd72d7151b2fe943f981c435467da9d33cf (diff) | |
download | tor-c1dc17e6e2f194d8c7078218be96cb96b9aaa6bd.tar.gz tor-c1dc17e6e2f194d8c7078218be96cb96b9aaa6bd.zip |
put in initial support for ".nickname.exit" addresses, to let alice
decide what exit node to use; based on a patch by geoff goodell.
needs more work: e.g. it goes bananas building new circuits when the
chosen exit node's exit policy rejects the connection.
svn:r3015
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h index fb24f44aa3..19fed785ff 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -526,6 +526,9 @@ struct connection_t { char identity_digest[DIGEST_LEN]; /**< Hash of identity_pkey */ char *nickname; /**< Nickname of OR on other side (if any). */ + /** Nickname of planned exit node -- to be used with .exit support. */ + char *chosen_exit_name; + /* Used only by OR connections: */ tor_tls *tls; /**< TLS connection state (OR only.) */ uint16_t next_circ_id; /**< Which circ_id do we try to use next on @@ -1223,6 +1226,7 @@ int connection_ap_can_use_exit(connection_t *conn, routerinfo_t *exit); void connection_ap_expire_beginning(void); void connection_ap_attach_pending(void); +void parse_socks_policy(void); int socks_policy_permits_address(uint32_t addr); void client_dns_init(void); @@ -1231,7 +1235,7 @@ int client_dns_incr_failures(const char *address); void client_dns_set_entry(const char *address, uint32_t val); void client_dns_clean(void); void set_exit_redirects(smartlist_t *lst); -void parse_socks_policy(void); +int parse_address(char *address); /********************************* connection_or.c ***************************/ @@ -1453,7 +1457,6 @@ int rend_client_receive_rendezvous(circuit_t *circ, const char *request, size_t void rend_client_desc_fetched(char *query, int status); char *rend_client_get_random_intro(char *query); -int rend_parse_rendezvous_address(char *address); int rend_client_send_introduction(circuit_t *introcirc, circuit_t *rendcirc); |