Bug 29085: Refactor non-padding accounting out of token removal.
[tor.git] / src / core / or / crypt_path_reference_st.h
blob3d79f26c1c9499c96f2cdcf28087137a3f3d4b07
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 */
7 #ifndef CRYPT_PATH_REFERENCE_ST_H
8 #define CRYPT_PATH_REFERENCE_ST_H
10 /** A reference-counted pointer to a crypt_path_t, used only to share
11 * the final rendezvous cpath to be used on a service-side rendezvous
12 * circuit among multiple circuits built in parallel to the same
13 * destination rendezvous point. */
14 struct crypt_path_reference_t {
15 /** The reference count. */
16 unsigned int refcount;
17 /** The pointer. Set to NULL when the crypt_path_t is put into use
18 * on an opened rendezvous circuit. */
19 crypt_path_t *cpath;
22 #endif