aboutsummaryrefslogtreecommitdiff
path: root/src/test/hs_test_helpers.h
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/test/hs_test_helpers.h
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/test/hs_test_helpers.h')
-rw-r--r--src/test/hs_test_helpers.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/hs_test_helpers.h b/src/test/hs_test_helpers.h
index 9662a83ba8..be11a4735f 100644
--- a/src/test/hs_test_helpers.h
+++ b/src/test/hs_test_helpers.h
@@ -15,11 +15,18 @@ hs_descriptor_t *hs_helper_build_hs_desc_no_ip(
const ed25519_keypair_t *signing_kp);
hs_descriptor_t *hs_helper_build_hs_desc_with_ip(
const ed25519_keypair_t *signing_kp);
+hs_descriptor_t *hs_helper_build_hs_desc_with_client_auth(
+ const uint8_t *descriptor_cookie,
+ const curve25519_public_key_t *client_pk,
+ const ed25519_keypair_t *signing_kp);
void hs_helper_desc_equal(const hs_descriptor_t *desc1,
const hs_descriptor_t *desc2);
void
hs_helper_get_subcred_from_identity_keypair(ed25519_keypair_t *signing_kp,
uint8_t *subcred_out);
+void hs_helper_add_client_auth(const ed25519_public_key_t *service_pk,
+ const curve25519_secret_key_t *client_sk);
+
#endif /* !defined(TOR_HS_TEST_HELPERS_H) */