hs_client.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* Copyright (c) 2017, The Tor Project, Inc. */
  2. /* See LICENSE for licensing information */
  3. /**
  4. * \file hs_client.h
  5. * \brief Header file containing client data for the HS subsytem.
  6. **/
  7. #ifndef TOR_HS_CLIENT_H
  8. #define TOR_HS_CLIENT_H
  9. #include "crypto_ed25519.h"
  10. #include "hs_descriptor.h"
  11. #include "hs_ident.h"
  12. void hs_client_note_connection_attempt_succeeded(
  13. const edge_connection_t *conn);
  14. int hs_client_decode_descriptor(
  15. const char *desc_str,
  16. const ed25519_public_key_t *service_identity_pk,
  17. hs_descriptor_t **desc);
  18. int hs_client_any_intro_points_usable(const hs_descriptor_t *desc);
  19. int hs_client_refetch_hsdesc(const ed25519_public_key_t *identity_pk);
  20. int hs_client_send_introduce1(origin_circuit_t *intro_circ,
  21. origin_circuit_t *rend_circ);
  22. void hs_client_circuit_has_opened(origin_circuit_t *circ);
  23. int hs_client_receive_rendezvous_acked(origin_circuit_t *circ,
  24. const uint8_t *payload,
  25. size_t payload_len);
  26. int hs_client_receive_introduce_ack(origin_circuit_t *circ,
  27. const uint8_t *payload,
  28. size_t payload_len);
  29. int hs_client_receive_rendezvous2(origin_circuit_t *circ,
  30. const uint8_t *payload,
  31. size_t payload_len);
  32. void hs_client_desc_has_arrived(const hs_ident_dir_conn_t *ident);
  33. extend_info_t *hs_client_get_random_intro_from_edge(
  34. const edge_connection_t *edge_conn);
  35. int hs_client_reextend_intro_circuit(origin_circuit_t *circ);
  36. #endif /* TOR_HS_CLIENT_H */