summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-02-14 10:45:19 -0500
committerDavid Goulet <dgoulet@torproject.org>2017-04-07 09:44:52 -0400
commitdff50001ec9b805f169a7b1eacb9e45a6490f98a (patch)
treebda3a94e9667f4afaaa5485f4d26d51ce55bf738 /src/or/routerparse.c
parent489ef6b38ba66f59bb6562a4702c0500478a7495 (diff)
downloadtor-dff50001ec9b805f169a7b1eacb9e45a6490f98a.tar.gz
tor-dff50001ec9b805f169a7b1eacb9e45a6490f98a.zip
prop224: Flag router with HSIntro/HSDir using protover
Note down in the routerstatus_t of a node if the router supports the HSIntro=4 version for the ed25519 authentication key and HSDir=2 version for the v3 descriptor supports. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 7220b992c4..fc0a4ab50a 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -2667,6 +2667,10 @@ routerstatus_parse_entry_from_string(memarea_t *area,
protocol_list_supports_protocol(tok->args[0], PRT_RELAY, 2);
rs->supports_ed25519_link_handshake =
protocol_list_supports_protocol(tok->args[0], PRT_LINKAUTH, 3);
+ rs->supports_ed25519_hs_intro =
+ protocol_list_supports_protocol(tok->args[0], PRT_HSINTRO, 4);
+ rs->supports_v3_hsdir =
+ protocol_list_supports_protocol(tok->args[0], PRT_HSDIR, 2);
}
if ((tok = find_opt_by_keyword(tokens, K_V))) {
tor_assert(tok->n_args == 1);