aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendcommon.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-06-01 13:21:03 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2017-08-19 16:42:26 +0300
commitbce18a764252c66e605680e29a27ea30375a6db1 (patch)
tree579234b52e9c012d89ba1ed3d90051038a738c93 /src/or/rendcommon.c
parent3e593f09addb210f1da39bd46f5fb904cac4e410 (diff)
downloadtor-bce18a764252c66e605680e29a27ea30375a6db1.tar.gz
tor-bce18a764252c66e605680e29a27ea30375a6db1.zip
prop224: Refactor parse_extended_hostname() to parse v3 addrs.
We need this func so that we recognize SOCKS conns to v3 addresses. - Also rename rend_valid_service_id() to rend_valid_v2_service_id() - Also move parse_extended_hostname() tests to their own unittest, and add a v3 address to the test as well. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r--src/or/rendcommon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index 8b555a3164..8829ede960 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -695,7 +695,7 @@ rend_get_service_id(crypto_pk_t *pk, char *out)
/** Return true iff <b>query</b> is a syntactically valid service ID (as
* generated by rend_get_service_id). */
int
-rend_valid_service_id(const char *query)
+rend_valid_v2_service_id(const char *query)
{
if (strlen(query) != REND_SERVICE_ID_LEN_BASE32)
return 0;