aboutsummaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-06-06 09:36:02 -0400
committerGeorge Kadianakis <desnacked@riseup.net>2019-11-18 19:06:43 +0200
commit3892ac7c718d25315d779b5c29ffae58c70a5dce (patch)
tree678ce93e9756a1d8f1e8269d6831df7e0466f66c /src/feature
parentc0dd5324b35ee158dc392556b67b5a098de2874a (diff)
downloadtor-3892ac7c718d25315d779b5c29ffae58c70a5dce.tar.gz
tor-3892ac7c718d25315d779b5c29ffae58c70a5dce.zip
test: Unit test for the hs cache decrypt on new auth
Part of #30382 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/hs/hs_client.c6
-rw-r--r--src/feature/hs/hs_client.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/feature/hs/hs_client.c b/src/feature/hs/hs_client.c
index 2716dca032..1e7adabdc4 100644
--- a/src/feature/hs/hs_client.c
+++ b/src/feature/hs/hs_client.c
@@ -2140,4 +2140,10 @@ get_hs_client_auths_map(void)
return client_auths;
}
+STATIC void
+set_hs_client_auths_map(digest256map_t *map)
+{
+ client_auths = map;
+}
+
#endif /* defined(TOR_UNIT_TESTS) */
diff --git a/src/feature/hs/hs_client.h b/src/feature/hs/hs_client.h
index 09bbe51df9..699ce60510 100644
--- a/src/feature/hs/hs_client.h
+++ b/src/feature/hs/hs_client.h
@@ -115,6 +115,7 @@ STATIC void retry_all_socks_conn_waiting_for_desc(void);
#ifdef TOR_UNIT_TESTS
STATIC digest256map_t *get_hs_client_auths_map(void);
+STATIC void set_hs_client_auths_map(digest256map_t *map);
#endif /* defined(TOR_UNIT_TESTS) */