crypt_path_reference_st.h 786 B

1234567891011121314151617181920212223
  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-2019, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. #ifndef CRYPT_PATH_REFERENCE_ST_H
  7. #define CRYPT_PATH_REFERENCE_ST_H
  8. /** A reference-counted pointer to a crypt_path_t, used only to share
  9. * the final rendezvous cpath to be used on a service-side rendezvous
  10. * circuit among multiple circuits built in parallel to the same
  11. * destination rendezvous point. */
  12. struct crypt_path_reference_t {
  13. /** The reference count. */
  14. unsigned int refcount;
  15. /** The pointer. Set to NULL when the crypt_path_t is put into use
  16. * on an opened rendezvous circuit. */
  17. crypt_path_t *cpath;
  18. };
  19. #endif