summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-07-06 14:15:23 +0300
committerNick Mathewson <nickm@torproject.org>2017-07-07 11:12:27 -0400
commitc4d17faf81d8cfe4cf943ba11be03413c58f4d44 (patch)
tree0313df314f65493bda621bc703b6ef9e6ef73316 /src/or/circuitbuild.h
parent2432499705b0df5427604b5bf501bb22ccd73131 (diff)
downloadtor-c4d17faf81d8cfe4cf943ba11be03413c58f4d44.tar.gz
tor-c4d17faf81d8cfe4cf943ba11be03413c58f4d44.zip
Explicit length checks in circuit_init_cpath_crypto().
Diffstat (limited to 'src/or/circuitbuild.h')
-rw-r--r--src/or/circuitbuild.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/circuitbuild.h b/src/or/circuitbuild.h
index 6910b3a083..62a6367ed2 100644
--- a/src/or/circuitbuild.h
+++ b/src/or/circuitbuild.h
@@ -31,7 +31,8 @@ int circuit_timeout_want_to_count_circ(origin_circuit_t *circ);
int circuit_send_next_onion_skin(origin_circuit_t *circ);
void circuit_note_clock_jumped(int seconds_elapsed);
int circuit_extend(cell_t *cell, circuit_t *circ);
-int circuit_init_cpath_crypto(crypt_path_t *cpath, const char *key_data,
+int circuit_init_cpath_crypto(crypt_path_t *cpath,
+ const char *key_data, size_t key_data_len,
int reverse, int is_hs_v3);
struct created_cell_t;
int circuit_finish_handshake(origin_circuit_t *circ,
@@ -40,7 +41,7 @@ int circuit_truncated(origin_circuit_t *circ, crypt_path_t *layer,
int reason);
int onionskin_answer(or_circuit_t *circ,
const struct created_cell_t *created_cell,
- const char *keys,
+ const char *keys, size_t keys_len,
const uint8_t *rend_circ_nonce);
MOCK_DECL(int, circuit_all_predicted_ports_handled, (time_t now,
int *need_uptime,