Tor  0.4.7.0-alpha-dev
crypt_path_reference_st.h
Go to the documentation of this file.
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-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * @file crypt_path_reference_st.h
9  * @brief reference-counting structure for crypt_path_t
10  **/
11 
12 #ifndef CRYPT_PATH_REFERENCE_ST_H
13 #define CRYPT_PATH_REFERENCE_ST_H
14 
15 /** A reference-counted pointer to a crypt_path_t, used only to share
16  * the final rendezvous cpath to be used on a service-side rendezvous
17  * circuit among multiple circuits built in parallel to the same
18  * destination rendezvous point. */
20  /** The reference count. */
21  unsigned int refcount;
22  /** The pointer. Set to NULL when the crypt_path_t is put into use
23  * on an opened rendezvous circuit. */
25 };
26 
27 #endif /* !defined(CRYPT_PATH_REFERENCE_ST_H) */