diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-01-31 14:06:37 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-01-31 14:06:37 -0500 |
commit | 3d937043c2961923f9c28152615dc591997328f0 (patch) | |
tree | 3d7d915dcb23ab1c4bbad14b5e392432040d7932 /src/or/routerparse.h | |
parent | bbf2d9cf6bb97c3e15ada5803681f856b844c2ff (diff) | |
download | tor-3d937043c2961923f9c28152615dc591997328f0.tar.gz tor-3d937043c2961923f9c28152615dc591997328f0.zip |
Fix a failing unit test.
When we stopped looking at the "protocols" variable directly, we
broke the hs_service/build_update_descriptors test, since it didn't
actually update any of the flags.
The fix here is to call summarize_protover_flags() from that test,
and to expose summarize_protover_flags() as "STATIC" from
routerparse.c.
Diffstat (limited to 'src/or/routerparse.h')
-rw-r--r-- | src/or/routerparse.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/routerparse.h b/src/or/routerparse.h index c4c8635f4b..418fd3acdb 100644 --- a/src/or/routerparse.h +++ b/src/or/routerparse.h @@ -133,6 +133,10 @@ MOCK_DECL(STATIC int, router_compute_hash_final,(char *digest, digest_algorithm_t alg)); MOCK_DECL(STATIC int, signed_digest_equals, (const uint8_t *d1, const uint8_t *d2, size_t len)); + +STATIC void summarize_protover_flags(protover_summary_flags_t *out, + const char *protocols, + const char *version); #endif /* defined(ROUTERPARSE_PRIVATE) */ #define ED_DESC_SIGNATURE_PREFIX "Tor router descriptor signature v1" |