diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-09-09 11:10:53 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-09-09 11:10:53 -0400 |
commit | a642a4cbd7016b350b7386096e752e1a73057b54 (patch) | |
tree | 2cad51c0a640f51b893a52d88e73d118c3b5b6b7 /src/feature/nodelist/nodelist.c | |
parent | 1e7c7870e87ff660d4dce0b381790993be0328eb (diff) | |
parent | 622c2c7884fd656b5140245c4695a5a145dc04fd (diff) | |
download | tor-a642a4cbd7016b350b7386096e752e1a73057b54.tar.gz tor-a642a4cbd7016b350b7386096e752e1a73057b54.zip |
Merge branch 'ticket30924_042_04_squashed' into ticket30924_042_04_squashed_merged
Diffstat (limited to 'src/feature/nodelist/nodelist.c')
-rw-r--r-- | src/feature/nodelist/nodelist.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/feature/nodelist/nodelist.c b/src/feature/nodelist/nodelist.c index 6ae8d2bcb1..bd80fc1b4b 100644 --- a/src/feature/nodelist/nodelist.c +++ b/src/feature/nodelist/nodelist.c @@ -1106,7 +1106,7 @@ node_ed25519_id_matches(const node_t *node, const ed25519_public_key_t *id) /** Dummy object that should be unreturnable. Used to ensure that * node_get_protover_summary_flags() always returns non-NULL. */ static const protover_summary_flags_t zero_protover_flags = { - 0,0,0,0,0,0,0,0 + 0,0,0,0,0,0,0,0,0 }; /** Return the protover_summary_flags for a given node. */ @@ -1166,6 +1166,17 @@ node_supports_ed25519_hs_intro(const node_t *node) return node_get_protover_summary_flags(node)->supports_ed25519_hs_intro; } +/** Return true iff <b>node</b> supports the DoS ESTABLISH_INTRO cell + * extenstion. */ +int +node_supports_establish_intro_dos_extension(const node_t *node) +{ + tor_assert(node); + + return node_get_protover_summary_flags(node)-> + supports_establish_intro_dos_extension; +} + /** Return true iff <b>node</b> supports to be a rendezvous point for hidden * service version 3 (HSRend=2). */ int |