aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/crypt_path.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-04-08 15:16:37 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-05-03 18:15:11 +0300
commit0c5176d00cfe44e645175c23ed48eccbc74b4842 (patch)
treea9bfc918dced34723c2f3b0a40a5e7a01460cf76 /src/core/or/crypt_path.h
parentf74a80dc3b2ada940e72cd174af5779cac3c3948 (diff)
downloadtor-0c5176d00cfe44e645175c23ed48eccbc74b4842.tar.gz
tor-0c5176d00cfe44e645175c23ed48eccbc74b4842.zip
Hiding crypt_path_t: Start with crypt_path.crypto .
Create some functions to eventually be able to hide crypt_path_t.crypto.
Diffstat (limited to 'src/core/or/crypt_path.h')
-rw-r--r--src/core/or/crypt_path.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/or/crypt_path.h b/src/core/or/crypt_path.h
index 7614aaff28..fe25d85cfe 100644
--- a/src/core/or/crypt_path.h
+++ b/src/core/or/crypt_path.h
@@ -15,3 +15,14 @@ int onion_append_hop(crypt_path_t **head_ptr, extend_info_t *choice);
/* rename */
void onion_append_to_cpath(crypt_path_t **head_ptr, crypt_path_t *new_hop);
+
+void
+cpath_crypt_cell(const crypt_path_t *cpath, uint8_t *payload, bool is_decrypt);
+
+struct crypto_digest_t *
+cpath_get_incoming_digest(const crypt_path_t *cpath);
+
+void
+cpath_set_cell_forward_digest(crypt_path_t *cpath, cell_t *cell);
+
+