summaryrefslogtreecommitdiff
path: root/src/or/hs_service.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-07-24 13:03:19 +0300
committerNick Mathewson <nickm@torproject.org>2017-08-08 20:29:34 -0400
commitb47139d7583ff247fcdd07904144dc99c412028a (patch)
tree951a7eb73f75313bbb1d7d01f12edb5c7692fbe0 /src/or/hs_service.c
parent6f046b2191ed1a10e9058fcc49491b8db5a96280 (diff)
downloadtor-b47139d7583ff247fcdd07904144dc99c412028a.tar.gz
tor-b47139d7583ff247fcdd07904144dc99c412028a.zip
test: Unit tests for the revision counter state file codethe
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_service.c')
-rw-r--r--src/or/hs_service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/hs_service.c b/src/or/hs_service.c
index 6519cb1b61..131c4ff9f0 100644
--- a/src/or/hs_service.c
+++ b/src/or/hs_service.c
@@ -924,7 +924,7 @@ load_service_keys(hs_service_t *service)
}
/* Free a given service descriptor object and all key material is wiped. */
-static void
+STATIC void
service_descriptor_free(hs_service_descriptor_t *desc)
{
if (!desc) {
@@ -1947,7 +1947,7 @@ upload_descriptor_to_hsdir(const hs_service_t *service,
*
* HidServRevCounter <blinded_pubkey> <rev_counter>
*/
-static char *
+STATIC char *
encode_desc_rev_counter_for_state(const hs_service_descriptor_t *desc)
{
char *state_str = NULL;
@@ -2009,7 +2009,7 @@ update_revision_counters_in_state(void)
* with <b>blinded_pubkey</b>. Set <b>service_found_out</b> to True if the
* line is relevant to this service, and return the cached revision
* counter. Else set <b>service_found_out</b> to False. */
-static uint64_t
+STATIC uint64_t
check_state_line_for_service_rev_counter(const char *state_line,
ed25519_public_key_t *blinded_pubkey,
int *service_found_out)