aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2012-10-03 23:56:34 -0400
committerRoger Dingledine <arma@torproject.org>2012-10-03 23:56:34 -0400
commit10b43f4c46378c5d08aaba01ee00081c18002a44 (patch)
tree063de88bda8c427e6a1c891127364f1deb1c95da /src/or/circuitbuild.h
parent05f6f8f26d5911ec33e953f0c21ca56021bfe17d (diff)
downloadtor-10b43f4c46378c5d08aaba01ee00081c18002a44.tar
tor-10b43f4c46378c5d08aaba01ee00081c18002a44.tar.gz
pass the reason from the truncated cell to the controller
(rather than just always declaring that the reason is END_CIRC_REASON_OR_CONN_CLOSED) resolves bug 7039.
Diffstat (limited to 'src/or/circuitbuild.h')
-rw-r--r--src/or/circuitbuild.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/circuitbuild.h b/src/or/circuitbuild.h
index c3905ca21..8ec48beb0 100644
--- a/src/or/circuitbuild.h
+++ b/src/or/circuitbuild.h
@@ -32,7 +32,8 @@ int circuit_init_cpath_crypto(crypt_path_t *cpath, const char *key_data,
int reverse);
int circuit_finish_handshake(origin_circuit_t *circ, uint8_t cell_type,
const uint8_t *reply);
-int circuit_truncated(origin_circuit_t *circ, crypt_path_t *layer);
+int circuit_truncated(origin_circuit_t *circ, crypt_path_t *layer,
+ int reason);
int onionskin_answer(or_circuit_t *circ, uint8_t cell_type,
const char *payload, const char *keys);
int circuit_all_predicted_ports_handled(time_t now, int *need_uptime,