aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_service.h
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.h
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.h')
-rw-r--r--src/or/hs_service.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/hs_service.h b/src/or/hs_service.h
index f46c4f51a6..cb2a7aa80e 100644
--- a/src/or/hs_service.h
+++ b/src/or/hs_service.h
@@ -325,6 +325,16 @@ STATIC void build_all_descriptors(time_t now);
STATIC void update_all_descriptors(time_t now);
STATIC void run_upload_descriptor_event(time_t now);
+STATIC char *
+encode_desc_rev_counter_for_state(const hs_service_descriptor_t *desc);
+
+STATIC void service_descriptor_free(hs_service_descriptor_t *desc);
+
+STATIC uint64_t
+check_state_line_for_service_rev_counter(const char *state_line,
+ ed25519_public_key_t *blinded_pubkey,
+ int *service_found_out);
+
#endif /* TOR_UNIT_TESTS */
#endif /* HS_SERVICE_PRIVATE */