test: Unit test for the hs cache decrypt on new auth

Part of #30382

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet
2019-06-06 09:36:02 -04:00
committed by George Kadianakis
parent c0dd5324b3
commit 3892ac7c71
5 changed files with 144 additions and 1 deletions
+6
View File
@@ -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) */
+1
View File
@@ -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) */