aboutsummaryrefslogtreecommitdiff
path: root/src/or/control.h
diff options
context:
space:
mode:
authorQingping Hou <dave2008713@gmail.com>2014-02-04 19:33:48 -0500
committerQingping Hou <dave2008713@gmail.com>2014-02-06 16:13:55 -0500
commitbf66ff915aa3b97922c3313542ed2f2f554d9c57 (patch)
treeaf3e53609c0e2954a394887f12d8d2241fc940ed /src/or/control.h
parent2d41cab1502666eaace21f10385964737d246388 (diff)
downloadtor-bf66ff915aa3b97922c3313542ed2f2f554d9c57.tar.gz
tor-bf66ff915aa3b97922c3313542ed2f2f554d9c57.zip
fix longname returned in HS_DESC control events
According to control spec, longname should not contain any spaces and is consists only of identy_digest + nickname added two functions: * node_get_verbose_nickname_by_id() * node_describe_longname_by_id()
Diffstat (limited to 'src/or/control.h')
-rw-r--r--src/or/control.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/control.h b/src/or/control.h
index be3cc2420e..0466de17f6 100644
--- a/src/or/control.h
+++ b/src/or/control.h
@@ -100,6 +100,7 @@ void control_event_transport_launched(const char *mode,
const char *transport_name,
tor_addr_t *addr, uint16_t port);
const char *rend_auth_type_to_string(rend_auth_type_t auth_type);
+MOCK_DECL(const char *, node_describe_longname_by_id,(const char *id_digest));
void control_event_hs_descriptor_requested(const rend_data_t *rend_query,
const char *desc_id_base32,
const char *hs_dir);