diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-02-13 15:24:09 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-13 15:24:09 -0500 |
commit | 949c9ae26b4a77baea077e7e1834bdd7264cdb37 (patch) | |
tree | b3588be459ff61abb40b449f4d607480ce28bfc1 /src/or/circuitlist.c | |
parent | ecf61e924d5807420aaeee8620dc83f3b952d77f (diff) | |
download | tor-949c9ae26b4a77baea077e7e1834bdd7264cdb37.tar.gz tor-949c9ae26b4a77baea077e7e1834bdd7264cdb37.zip |
Tweak sign of rend_token params for consistency
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r-- | src/or/circuitlist.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 04cfcbf0c0..0d41b51c75 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -1354,21 +1354,22 @@ circuit_set_rend_token(or_circuit_t *circ, int is_rend_circ, * Return NULL if no such circuit is found. */ or_circuit_t * -circuit_get_rendezvous(const char *cookie) +circuit_get_rendezvous(const uint8_t *cookie) { return circuit_get_by_rend_token_and_purpose( CIRCUIT_PURPOSE_REND_POINT_WAITING, - 1, cookie); + 1, (const char*)cookie); } /** Return the circuit waiting for intro cells of the given digest. * Return NULL if no such circuit is found. */ or_circuit_t * -circuit_get_intro_point(const char *digest) +circuit_get_intro_point(const uint8_t *digest) { return circuit_get_by_rend_token_and_purpose( - CIRCUIT_PURPOSE_INTRO_POINT, 0, digest); + CIRCUIT_PURPOSE_INTRO_POINT, 0, + (const char *)digest); } /** Set the rendezvous cookie of <b>circ</b> to <b>cookie</b>. If another |