aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-11-12 02:32:20 +0000
committerNick Mathewson <nickm@torproject.org>2003-11-12 02:32:20 +0000
commite6296a4e2f32e29e2b5227934d0db30a67d52992 (patch)
tree42610880fb38d198a98e19f36e9eb9c972bb93f1 /src/or/or.h
parent9a0a638c02b36ea6e6074d385f151dbe94246ceb (diff)
downloadtor-e6296a4e2f32e29e2b5227934d0db30a67d52992.tar
tor-e6296a4e2f32e29e2b5227934d0db30a67d52992.tar.gz
Refactor onion_generate_cpath to build cpaths one hop at a time. This
is a the first step in computing hops one step at a time. Next, we move the responsibility for calling onion_extend_cpath into circuit.c (Later, we may want to special-case onion_extend_cpath to treat entry and exit routers differently.) svn:r792
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 65285a191..e3293e7da 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -502,6 +502,7 @@ void circuit_add(circuit_t *circ);
void circuit_remove(circuit_t *circ);
circuit_t *circuit_new(circ_id_t p_circ_id, connection_t *p_conn);
void circuit_free(circuit_t *circ);
+void circuit_free_cpath(crypt_path_t *cpath);
circuit_t *circuit_enumerate_by_naddr_nport(circuit_t *start, uint32_t naddr, uint16_t nport);
circuit_t *circuit_get_by_circ_id_conn(circ_id_t circ_id, connection_t *conn);
@@ -692,6 +693,7 @@ void onion_pending_remove(circuit_t *circ);
int onionskin_answer(circuit_t *circ, unsigned char *payload, unsigned char *keys);
crypt_path_t *onion_generate_cpath(routerinfo_t **firsthop);
+int onion_extend_cpath(crypt_path_t **head_ptr, int path_len, routerinfo_t **router_out);
int onion_skin_create(crypto_pk_env_t *router_key,
crypto_dh_env_t **handshake_state_out,