hs_control.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /* Copyright (c) 2017, The Tor Project, Inc. */
  2. /* See LICENSE for licensing information */
  3. /**
  4. * \file hs_control.h
  5. * \brief Header file containing control port event related code.
  6. **/
  7. #ifndef TOR_HS_CONTROL_H
  8. #define TOR_HS_CONTROL_H
  9. #include "hs_ident.h"
  10. /* Event "HS_DESC REQUESTED [...]" */
  11. void hs_control_desc_event_requested(const ed25519_public_key_t *onion_pk,
  12. const char *base64_blinded_pk,
  13. const routerstatus_t *hsdir_rs);
  14. /* Event "HS_DESC FAILED [...]" */
  15. void hs_control_desc_event_failed(const hs_ident_dir_conn_t *ident,
  16. const char *hsdir_id_digest,
  17. const char *reason);
  18. /* Event "HS_DESC RECEIVED [...]" */
  19. void hs_control_desc_event_received(const hs_ident_dir_conn_t *ident,
  20. const char *hsdir_id_digest);
  21. /* Event "HS_DESC CREATED [...]" */
  22. void hs_control_desc_event_created(const char *onion_address,
  23. const ed25519_public_key_t *blinded_pk);
  24. #endif /* !defined(TOR_HS_CONTROL_H) */