aboutsummaryrefslogtreecommitdiff
path: root/src/or/nodelist.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-06-28 17:22:59 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2017-06-28 18:32:32 +0300
commit551ad20c43b39c384cbab9eee5442d4fa9cfefb1 (patch)
treed47cccc764228065b0e5c76df6e9c0a5bfa6b5f7 /src/or/nodelist.c
parentc17a04376de9e0517e611ad164172e7a5de26953 (diff)
downloadtor-551ad20c43b39c384cbab9eee5442d4fa9cfefb1.tar.gz
tor-551ad20c43b39c384cbab9eee5442d4fa9cfefb1.zip
nodelist: Make HSv3 protover magic numbers a bit more readable.
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r--src/or/nodelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c
index a04f4154b7..4513e97188 100644
--- a/src/or/nodelist.c
+++ b/src/or/nodelist.c
@@ -722,7 +722,7 @@ node_supports_v3_hsdir(const node_t *node)
return 0;
}
return protocol_list_supports_protocol(node->ri->protocol_list,
- PRT_HSDIR, 2);
+ PRT_HSDIR, PROTOVER_HSDIR_V3);
}
tor_assert_nonfatal_unreached_once();
return 0;
@@ -743,7 +743,7 @@ node_supports_ed25519_hs_intro(const node_t *node)
return 0;
}
return protocol_list_supports_protocol(node->ri->protocol_list,
- PRT_HSINTRO, 4);
+ PRT_HSINTRO, PROTOVER_HS_INTRO_V3);
}
tor_assert_nonfatal_unreached_once();
return 0;