rendservice.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Copyright (c) 2001 Matej Pfajfar.
  2. * Copyright (c) 2001-2004, Roger Dingledine.
  3. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  4. * Copyright (c) 2007-2011, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file rendservice.h
  8. * \brief Header file for rendservice.c.
  9. **/
  10. #ifndef _TOR_RENDSERVICE_H
  11. #define _TOR_RENDSERVICE_H
  12. int num_rend_services(void);
  13. int rend_config_services(const or_options_t *options, int validate_only);
  14. int rend_service_load_keys(void);
  15. void rend_services_introduce(void);
  16. void rend_consider_services_upload(time_t now);
  17. void rend_hsdir_routers_changed(void);
  18. void rend_consider_descriptor_republication(void);
  19. void rend_service_intro_has_opened(origin_circuit_t *circuit);
  20. int rend_service_intro_established(origin_circuit_t *circuit,
  21. const uint8_t *request,
  22. size_t request_len);
  23. void rend_service_rendezvous_has_opened(origin_circuit_t *circuit);
  24. int rend_service_introduce(origin_circuit_t *circuit, const uint8_t *request,
  25. size_t request_len);
  26. void rend_service_relaunch_rendezvous(origin_circuit_t *oldcirc);
  27. int rend_service_set_connection_addr_port(edge_connection_t *conn,
  28. origin_circuit_t *circ);
  29. void rend_service_dump_stats(int severity);
  30. void rend_service_free_all(void);
  31. #endif