aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-08-07 01:03:33 +0000
committerNick Mathewson <nickm@torproject.org>2004-08-07 01:03:33 +0000
commit380f32f07db89b94a93f755af9a5a77b81b9dab9 (patch)
tree6c506b4055da8369dd6ccf079a84ebb13d50c3e0 /src/or/rendservice.c
parent9952b37456c03b09e5768aaf7e3cf8baa2353d84 (diff)
downloadtor-380f32f07db89b94a93f755af9a5a77b81b9dab9.tar.gz
tor-380f32f07db89b94a93f755af9a5a77b81b9dab9.zip
hex_encode is obsoleted by base16_encode, and never actually worked in the first place. (Thanks to Timo Lindfors for noticing the never-actually-worked part.)
svn:r2175
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index ff25704f3f..836f119e22 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -417,7 +417,7 @@ rend_service_introduce(circuit_t *circuit, const char *request, int request_len)
return -1;
}
r_cookie = ptr;
- hex_encode(r_cookie,4,hexcookie);
+ base16_encode(hexcookie,9,r_cookie,4);
/* Try DH handshake... */
dh = crypto_dh_new();
@@ -637,7 +637,7 @@ rend_service_rendezvous_has_opened(circuit_t *circuit)
hop = circuit->build_state->pending_final_cpath;
tor_assert(hop);
- hex_encode(circuit->rend_cookie, 4, hexcookie);
+ base16_encode(hexcookie,9,circuit->rend_cookie,4);
base32_encode(serviceid, REND_SERVICE_ID_LEN+1,
circuit->rend_pk_digest,10);