hs_control.h 954 B

1234567891011121314151617181920212223242526272829
  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. #endif /* !defined(TOR_HS_CONTROL_H) */