aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendcache.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-10-06 11:32:06 -0400
committerNick Mathewson <nickm@torproject.org>2015-10-06 11:32:06 -0400
commitf179abdca935d6d119f66e469232b36955a292b4 (patch)
treef00e05fced86c7f6ad77d03fb0bdaa2961597ae8 /src/or/rendcache.h
parent2592d537f95173083e397d19e182346955741221 (diff)
parent70de8d4bf86c430969bb314ba8590c00ce4dd374 (diff)
downloadtor-f179abdca935d6d119f66e469232b36955a292b4.tar.gz
tor-f179abdca935d6d119f66e469232b36955a292b4.zip
Merge remote-tracking branch 'twstrike/rendcache_tests'
Conflicts: src/test/include.am src/test/rend_test_helpers.c src/test/rend_test_helpers.h
Diffstat (limited to 'src/or/rendcache.h')
-rw-r--r--src/or/rendcache.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/or/rendcache.h b/src/or/rendcache.h
index a5ad2da3b4..a0cb68e08a 100644
--- a/src/or/rendcache.h
+++ b/src/or/rendcache.h
@@ -85,5 +85,29 @@ void rend_cache_intro_failure_note(rend_intro_point_failure_t failure,
const char *service_id);
void rend_cache_failure_purge(void);
+#ifdef RENDCACHE_PRIVATE
+
+STATIC size_t rend_cache_entry_allocation(const rend_cache_entry_t *e);
+STATIC void rend_cache_entry_free(rend_cache_entry_t *e);
+STATIC void rend_cache_failure_intro_entry_free(rend_cache_failure_intro_t
+ *entry);
+STATIC void rend_cache_failure_entry_free(rend_cache_failure_t *entry);
+STATIC int cache_failure_intro_lookup(const uint8_t *identity,
+ const char *service_id,
+ rend_cache_failure_intro_t
+ **intro_entry);
+STATIC void rend_cache_decrement_allocation(size_t n);
+STATIC void rend_cache_increment_allocation(size_t n);
+STATIC rend_cache_failure_intro_t *rend_cache_failure_intro_entry_new(
+ rend_intro_point_failure_t failure);
+STATIC rend_cache_failure_t *rend_cache_failure_entry_new(void);
+STATIC void rend_cache_failure_remove(rend_service_descriptor_t *desc);
+STATIC void cache_failure_intro_add(const uint8_t *identity,
+ const char *service_id,
+ rend_intro_point_failure_t failure);
+STATIC void validate_intro_point_failure(const rend_service_descriptor_t *desc,
+ const char *service_id);
+#endif
+
#endif /* TOR_RENDCACHE_H */