aboutsummaryrefslogtreecommitdiff
path: root/src/core/crypto
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-04-29 11:38:11 -0400
committerDavid Goulet <dgoulet@torproject.org>2019-04-29 12:17:57 -0400
commit0d8b9b56c5332b8f0205f460d0b23bb7f5620eff (patch)
tree31beacd28649e85f5e6bfaebc53b688376ee6783 /src/core/crypto
parent67c22541830cf1dfc1c02843a1d4dd81c2df16ff (diff)
downloadtor-0d8b9b56c5332b8f0205f460d0b23bb7f5620eff.tar.gz
tor-0d8b9b56c5332b8f0205f460d0b23bb7f5620eff.zip
sendme: Better function names
From nickm's review, improve the names of some functions. Part of #26288 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/crypto')
-rw-r--r--src/core/crypto/relay_crypto.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/crypto/relay_crypto.c b/src/core/crypto/relay_crypto.c
index 3a6dad4b1d..5be45d6c7a 100644
--- a/src/core/crypto/relay_crypto.c
+++ b/src/core/crypto/relay_crypto.c
@@ -154,8 +154,8 @@ relay_decrypt_cell(circuit_t *circ, cell_t *cell,
*layer_hint = thishop;
/* This cell is for us. Keep a record of this cell because we will
* use it in the next SENDME cell. */
- if (sendme_circuit_is_next_cell(thishop->deliver_window)) {
- sendme_circuit_note_inbound_cell(thishop);
+ if (sendme_circuit_cell_is_next(thishop->deliver_window)) {
+ sendme_circuit_record_inbound_cell(thishop);
}
return 0;
}
@@ -230,8 +230,8 @@ relay_encrypt_cell_inbound(cell_t *cell,
/* We are about to send this cell outbound on the circuit. Keep a record of
* this cell if we are expecting that the next cell is a SENDME. */
- if (sendme_circuit_is_next_cell(TO_CIRCUIT(or_circ)->package_window)) {
- sendme_circuit_note_outbound_cell(or_circ);
+ if (sendme_circuit_cell_is_next(TO_CIRCUIT(or_circ)->package_window)) {
+ sendme_circuit_record_outbound_cell(or_circ);
}
/* encrypt one layer */