summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-16 15:36:20 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-24 11:01:40 -0400
commit6cc21aa89cc1b9dea6e5256722597e3bf07d1a20 (patch)
tree5b6e72dcfd14c1fd4fc891af4c789be821f2fa5e /src/or
parentbb38657b7790934635facb569db79f7792bbb199 (diff)
downloadtor-6cc21aa89cc1b9dea6e5256722597e3bf07d1a20.tar.gz
tor-6cc21aa89cc1b9dea6e5256722597e3bf07d1a20.zip
consdiffmgr: add tests for cdm_entry_get_sha3_value
Diffstat (limited to 'src/or')
-rw-r--r--src/or/consdiffmgr.c2
-rw-r--r--src/or/consdiffmgr.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/or/consdiffmgr.c b/src/or/consdiffmgr.c
index 1c9c2a9932..59d0f28f51 100644
--- a/src/or/consdiffmgr.c
+++ b/src/or/consdiffmgr.c
@@ -320,7 +320,7 @@ cdm_labels_prepend_sha3(config_line_t **labels,
* given label, set <b>digest_out</b> to that value (decoded), and return 0.
*
* Return -1 if there is no such label, and -2 if it is badly formatted. */
-static int
+STATIC int
cdm_entry_get_sha3_value(uint8_t *digest_out,
consensus_cache_entry_t *ent,
const char *label)
diff --git a/src/or/consdiffmgr.h b/src/or/consdiffmgr.h
index 3e89ea2b23..b6b7555ad9 100644
--- a/src/or/consdiffmgr.h
+++ b/src/or/consdiffmgr.h
@@ -39,6 +39,9 @@ int consdiffmgr_validate(void);
STATIC consensus_cache_t *cdm_cache_get(void);
STATIC consensus_cache_entry_t *cdm_cache_lookup_consensus(
consensus_flavor_t flavor, time_t valid_after);
+STATIC int cdm_entry_get_sha3_value(uint8_t *digest_out,
+ consensus_cache_entry_t *ent,
+ const char *label);
#endif
#endif