aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-02 21:56:52 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-02 21:56:52 +0000
commita981c4099af25e8e38ca1fbe4870d09c54d0d20b (patch)
tree4c69fc20103513cb0ff17c0409d241010458fa0e /src/or/or.h
parent79fc52170edb4919a231234fc14c05640e1ec279 (diff)
downloadtor-a981c4099af25e8e38ca1fbe4870d09c54d0d20b.tar
tor-a981c4099af25e8e38ca1fbe4870d09c54d0d20b.tar.gz
Implement midpoint functionality for rendezvous points.
svn:r1439
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 84e34d0ca..0686d4e05 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -560,8 +560,8 @@ struct circuit_t {
char rend_service[CRYPTO_SHA1_DIGEST_LEN];
/* Holds rendezvous cookie if purpose is REND_POINT_WAITING or
- * S_RENDEZVOUSING or C_ESTABLISH_REND. Filled with zeroes otherwise.
- */
+ * C_ESTABLISH_REND. Filled with zeroes otherwise.
+ */
char rend_cookie[REND_COOKIE_LEN];
/* Points to spliced circuit if purpose is REND_ESTABLISHED, and circuit
@@ -692,7 +692,9 @@ circuit_t *circuit_get_by_circ_id_conn(uint16_t circ_id, connection_t *conn);
circuit_t *circuit_get_by_conn(connection_t *conn);
circuit_t *circuit_get_newest(connection_t *conn,
int must_be_open, int must_be_clean);
-circuit_t *circuit_get_by_service_and_purpose(const char *servid, int purpose);
+circuit_t *circuit_get_next_by_service_and_purpose(circuit_t *circuit,
+ const char *servid, int purpose);
+circuit_t *circuit_get_rendezvous(const char *cookie);
void circuit_expire_building(void);
int circuit_count_building(void);