aboutsummaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authorSuphanat Chunhapanya <haxx.pop@gmail.com>2018-05-16 21:57:24 +0700
committerDavid Goulet <dgoulet@torproject.org>2018-09-07 14:02:43 -0400
commitb61403c7870b9ee289fe61e2f2349a8d49a8d37a (patch)
treeec0c0a42169d12b1cded594fcf111757f0c44ee5 /src/feature
parent8f64931d67df2f4b6811b0244bef8d1ea04d8330 (diff)
downloadtor-b61403c7870b9ee289fe61e2f2349a8d49a8d37a.tar.gz
tor-b61403c7870b9ee289fe61e2f2349a8d49a8d37a.zip
test: HS v3 client auth is config equal function
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/hs/hs_service.c4
-rw-r--r--src/feature/hs/hs_service.h6
2 files changed, 8 insertions, 2 deletions
diff --git a/src/feature/hs/hs_service.c b/src/feature/hs/hs_service.c
index 0428809929..87c28f6200 100644
--- a/src/feature/hs/hs_service.c
+++ b/src/feature/hs/hs_service.c
@@ -243,7 +243,7 @@ set_service_default_config(hs_service_config_t *c,
/* From a service configuration object config, clear everything from it
* meaning free allocated pointers and reset the values. */
-static void
+STATIC void
service_clear_config(hs_service_config_t *config)
{
if (config == NULL) {
@@ -1368,7 +1368,7 @@ compare_service_authorzized_client_(const void **_a, const void **_b)
/* If the list of hs_service_authorized_client_t's is different between
* src and dst, return 1. Otherwise, return 0. */
-static int
+STATIC int
service_authorized_client_config_equal(const hs_service_config_t *config1,
const hs_service_config_t *config2)
{
diff --git a/src/feature/hs/hs_service.h b/src/feature/hs/hs_service.h
index f1b98b8058..735266071f 100644
--- a/src/feature/hs/hs_service.h
+++ b/src/feature/hs/hs_service.h
@@ -399,6 +399,12 @@ STATIC void service_desc_schedule_upload(hs_service_descriptor_t *desc,
STATIC int service_desc_hsdirs_changed(const hs_service_t *service,
const hs_service_descriptor_t *desc);
+STATIC int service_authorized_client_config_equal(
+ const hs_service_config_t *config1,
+ const hs_service_config_t *config2);
+
+STATIC void service_clear_config(hs_service_config_t *config);
+
#endif /* defined(HS_SERVICE_PRIVATE) */
#endif /* !defined(TOR_HS_SERVICE_H) */