aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/crypt_path.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-04-08 16:18:44 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-05-03 18:15:11 +0300
commitf5635989b06260710b282e75be7b731e2846f700 (patch)
tree62c67a6dfd0618a65470c1975d54a7c79217f9c5 /src/core/or/crypt_path.h
parent18d61c0e6e71dace189384c8af7f4fec158969b3 (diff)
downloadtor-f5635989b06260710b282e75be7b731e2846f700.tar.gz
tor-f5635989b06260710b282e75be7b731e2846f700.zip
Hiding crypt_path_t: Create a constructor for crypt_path_t.
We are using an opaque pointer so the structure needs to be allocated on the heap. This means we now need a constructor for crypt_path_t. Also modify all places initializing a crypt_path_t to use the constructor.
Diffstat (limited to 'src/core/or/crypt_path.h')
-rw-r--r--src/core/or/crypt_path.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/or/crypt_path.h b/src/core/or/crypt_path.h
index e8455c6326..c6d1cd1400 100644
--- a/src/core/or/crypt_path.h
+++ b/src/core/or/crypt_path.h
@@ -3,6 +3,8 @@
* \brief Header file for crypt_path.c.
**/
+crypt_path_t *crypt_path_new(void);
+
/* rename */
void assert_cpath_layer_ok(const crypt_path_t *cp);