hs_service.h 722 B

1234567891011121314151617181920212223242526272829303132
  1. /* Copyright (c) 2016, 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. #ifdef HS_SERVICE_PRIVATE
  12. #ifdef TOR_UNIT_TESTS
  13. STATIC hs_cell_establish_intro_t *
  14. generate_establish_intro_cell(const uint8_t *circuit_key_material,
  15. size_t circuit_key_material_len);
  16. STATIC ssize_t
  17. get_establish_intro_payload(uint8_t *buf, size_t buf_len,
  18. const hs_cell_establish_intro_t *cell);
  19. #endif /* TOR_UNIT_TESTS */
  20. #endif /* HS_SERVICE_PRIVATE */
  21. #endif /* TOR_HS_SERVICE_H */