diff options
author | David Goulet <dgoulet@torproject.org> | 2017-07-20 11:34:32 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-08 20:29:33 -0400 |
commit | 44e3255c4df78828110cec360031a616c6d8d0fa (patch) | |
tree | d4b3c7ddfa78b9e3a82257b1921bd43c3783d7ff /src/test/hs_test_helpers.c | |
parent | c9927ce4d5cf46cd12d09e73e80f435b4852f26e (diff) | |
download | tor-44e3255c4df78828110cec360031a616c6d8d0fa.tar.gz tor-44e3255c4df78828110cec360031a616c6d8d0fa.zip |
hs: Implement constructor for hs_desc_intro_point_t
Add a new and free function for hs_desc_intro_point_t so the service can use
them to setup those objects properly.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/hs_test_helpers.c')
-rw-r--r-- | src/test/hs_test_helpers.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/hs_test_helpers.c b/src/test/hs_test_helpers.c index 3f0d6a9413..24d4a7e91a 100644 --- a/src/test/hs_test_helpers.c +++ b/src/test/hs_test_helpers.c @@ -15,8 +15,7 @@ hs_helper_build_intro_point(const ed25519_keypair_t *signing_kp, time_t now, int ret; ed25519_keypair_t auth_kp; hs_desc_intro_point_t *intro_point = NULL; - hs_desc_intro_point_t *ip = tor_malloc_zero(sizeof(*ip)); - ip->link_specifiers = smartlist_new(); + hs_desc_intro_point_t *ip = hs_desc_intro_point_new(); { hs_desc_link_specifier_t *ls = tor_malloc_zero(sizeof(*ls)); |