rendparse.h 1.4 KB

1234567891011121314151617181920212223242526272829303132
  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-2018, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file rend_parse.h
  8. * \brief Header file for rend_parse.c.
  9. **/
  10. #ifndef TOR_REND_PARSE_H
  11. #define TOR_REND_PARSE_H
  12. int rend_parse_v2_service_descriptor(rend_service_descriptor_t **parsed_out,
  13. char *desc_id_out,
  14. char **intro_points_encrypted_out,
  15. size_t *intro_points_encrypted_size_out,
  16. size_t *encoded_size_out,
  17. const char **next_out, const char *desc,
  18. int as_hsdir);
  19. int rend_decrypt_introduction_points(char **ipos_decrypted,
  20. size_t *ipos_decrypted_size,
  21. const char *descriptor_cookie,
  22. const char *ipos_encrypted,
  23. size_t ipos_encrypted_size);
  24. int rend_parse_introduction_points(rend_service_descriptor_t *parsed,
  25. const char *intro_points_encoded,
  26. size_t intro_points_encoded_size);
  27. int rend_parse_client_keys(strmap_t *parsed_clients, const char *str);
  28. #endif