Tor 0.4.9.2-alpha-dev
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
crypt_path.h
Go to the documentation of this file.
1/**
2 * \file crypt_path.h
3 * \brief Header file for crypt_path.c.
4 **/
5
6#ifndef CRYPT_PATH_H
7#define CRYPT_PATH_H
8
10
12
13void cpath_assert_ok(const crypt_path_t *cp);
14
15int cpath_append_hop(crypt_path_t **head_ptr, extend_info_t *choice);
16
18 crypt_path_t *cpath,
19 const char *key_data, size_t key_data_len);
20
21void
23
24void cpath_extend_linked_list(crypt_path_t **head_ptr, crypt_path_t *new_hop);
25
27
28void cpath_sendme_circuit_record_inbound_cell(crypt_path_t *cpath);
29
30const uint8_t *cpath_get_sendme_tag(crypt_path_t *cpath, size_t *len_out);
31
32#if defined(TOR_UNIT_TESTS)
33unsigned int cpath_get_n_hops(crypt_path_t **head_ptr);
34#endif /* defined(TOR_UNIT_TESTS) */
35
36#endif /* !defined(CRYPT_PATH_H) */
crypt_path_t * cpath_get_next_non_open_hop(crypt_path_t *cpath)
Definition: crypt_path.c:188
int cpath_append_hop(crypt_path_t **head_ptr, extend_info_t *choice)
Definition: crypt_path.c:59
void cpath_assert_layer_ok(const crypt_path_t *cp)
Definition: crypt_path.c:107
int cpath_init_circuit_crypto(relay_crypto_alg_t alg, crypt_path_t *cpath, const char *key_data, size_t key_data_len)
Definition: crypt_path.c:148
void cpath_assert_ok(const crypt_path_t *cp)
Definition: crypt_path.c:84
const uint8_t * cpath_get_sendme_tag(crypt_path_t *cpath, size_t *len_out)
Definition: crypt_path.c:178
void cpath_extend_linked_list(crypt_path_t **head_ptr, crypt_path_t *new_hop)
Definition: crypt_path.c:42
void cpath_free(crypt_path_t *victim)
Definition: crypt_path.c:159
Header for relay_crypto.c.
relay_crypto_alg_t
Definition: relay_crypto.h:16