summaryrefslogtreecommitdiff
path: root/src/feature/relay/router.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-25 16:22:11 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-25 16:22:11 -0400
commitefa978124f067bf75c33c4ff9bba8dbf2f54a4ef (patch)
tree877cacc564b746bafde6b9cda24d4ea78e1d1ac0 /src/feature/relay/router.h
parent5c86f3c297229515f125c0e06abdc689c90768f4 (diff)
downloadtor-efa978124f067bf75c33c4ff9bba8dbf2f54a4ef.tar.gz
tor-efa978124f067bf75c33c4ff9bba8dbf2f54a4ef.zip
Extract nickname-checking functions from router.c
Diffstat (limited to 'src/feature/relay/router.h')
-rw-r--r--src/feature/relay/router.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/feature/relay/router.h b/src/feature/relay/router.h
index d56ddc8a1e..54b57cf7c6 100644
--- a/src/feature/relay/router.h
+++ b/src/feature/relay/router.h
@@ -14,6 +14,7 @@
#include "lib/testsupport/testsupport.h"
#include "feature/nodelist/describe.h"
+#include "feature/nodelist/nickname.h"
struct curve25519_keypair_t;
struct ed25519_keypair_t;
@@ -119,9 +120,6 @@ int router_has_orport(const routerinfo_t *router,
int extrainfo_dump_to_string(char **s, extrainfo_t *extrainfo,
crypto_pk_t *ident_key,
const struct ed25519_keypair_t *signing_keypair);
-int is_legal_nickname(const char *s);
-int is_legal_nickname_or_hexdigest(const char *s);
-int is_legal_hexdigest(const char *s);
const char *routerinfo_err_to_string(int err);
int routerinfo_err_is_transient(int err);