Bump copyright date to 2019
[tor.git] / src / test / hs_test_helpers.h
blob9662a83ba8e033928f7ddbfeb5f47b2baf78ba28
1 /* Copyright (c) 2017-2019, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
4 #ifndef TOR_HS_TEST_HELPERS_H
5 #define TOR_HS_TEST_HELPERS_H
7 #include "trunnel/ed25519_cert.h"
8 #include "feature/hs/hs_descriptor.h"
10 /* Set of functions to help build and test descriptors. */
11 hs_desc_intro_point_t *hs_helper_build_intro_point(
12 const ed25519_keypair_t *signing_kp, time_t now,
13 const char *addr, int legacy);
14 hs_descriptor_t *hs_helper_build_hs_desc_no_ip(
15 const ed25519_keypair_t *signing_kp);
16 hs_descriptor_t *hs_helper_build_hs_desc_with_ip(
17 const ed25519_keypair_t *signing_kp);
18 void hs_helper_desc_equal(const hs_descriptor_t *desc1,
19 const hs_descriptor_t *desc2);
20 void
21 hs_helper_get_subcred_from_identity_keypair(ed25519_keypair_t *signing_kp,
22 uint8_t *subcred_out);
24 #endif /* !defined(TOR_HS_TEST_HELPERS_H) */