hs_test_helpers.h 841 B

12345678910111213141516171819202122
  1. /* Copyright (c) 2017, The Tor Project, Inc. */
  2. /* See LICENSE for licensing information */
  3. #ifndef TOR_HS_TEST_HELPERS_H
  4. #define TOR_HS_TEST_HELPERS_H
  5. #include "ed25519_cert.h"
  6. #include "hs_descriptor.h"
  7. /* Set of functions to help build and test descriptors. */
  8. hs_desc_intro_point_t *hs_helper_build_intro_point(
  9. const ed25519_keypair_t *signing_kp, time_t now,
  10. const char *addr, int legacy);
  11. hs_descriptor_t *hs_helper_build_hs_desc_no_ip(
  12. const ed25519_keypair_t *signing_kp);
  13. hs_descriptor_t *hs_helper_build_hs_desc_with_ip(
  14. const ed25519_keypair_t *signing_kp);
  15. void hs_helper_desc_equal(const hs_descriptor_t *desc1,
  16. const hs_descriptor_t *desc2);
  17. #endif /* TOR_HS_TEST_HELPERS_H */