hs_service.h 802 B

123456789101112131415161718192021222324252627
  1. /* Copyright (c) 2016-2017, The Tor Project, Inc. */
  2. /* See LICENSE for licensing information */
  3. /**
  4. * \file hs_service.h
  5. * \brief Header file for hs_service.c.
  6. **/
  7. #ifndef TOR_HS_SERVICE_H
  8. #define TOR_HS_SERVICE_H
  9. #include "or.h"
  10. #include "hs/cell_establish_intro.h"
  11. /* These functions are only used by unit tests and we need to expose them else
  12. * hs_service.o ends up with no symbols in libor.a which makes clang throw a
  13. * warning at compile time. See #21825. */
  14. trn_cell_establish_intro_t *
  15. generate_establish_intro_cell(const uint8_t *circuit_key_material,
  16. size_t circuit_key_material_len);
  17. ssize_t
  18. get_establish_intro_payload(uint8_t *buf, size_t buf_len,
  19. const trn_cell_establish_intro_t *cell);
  20. #endif /* TOR_HS_SERVICE_H */