summaryrefslogtreecommitdiff
path: root/src/or/nodelist.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/nodelist.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/nodelist.h')
-rw-r--r--src/or/nodelist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/nodelist.h b/src/or/nodelist.h
index 8a4665a8bf..565caa76cd 100644
--- a/src/or/nodelist.h
+++ b/src/or/nodelist.h
@@ -33,6 +33,8 @@ void nodelist_assert_ok(void);
const node_t *node_get_by_nickname(const char *nickname, int warn_if_unnamed);
void node_get_verbose_nickname(const node_t *node,
char *verbose_name_out);
+void node_get_verbose_nickname_by_id(const char *id_digest,
+ char *verbose_name_out);
int node_is_named(const node_t *node);
int node_is_dir(const node_t *node);
int node_has_descriptor(const node_t *node);