mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
fix typos
This commit is contained in:
parent
223c7da080
commit
0fd8f5781b
@ -50,7 +50,7 @@ static void onion_queue_entry_remove(onion_queue_t *victim);
|
|||||||
* MAX_ONIONSKIN_CHALLENGE/REPLY_LEN." Also, make sure that we can pass
|
* MAX_ONIONSKIN_CHALLENGE/REPLY_LEN." Also, make sure that we can pass
|
||||||
* over-large values via EXTEND2/EXTENDED2, for future-compatibility.*/
|
* over-large values via EXTEND2/EXTENDED2, for future-compatibility.*/
|
||||||
|
|
||||||
/** Return true iff we have room to queue another oninoskin of type
|
/** Return true iff we have room to queue another onionskin of type
|
||||||
* <b>type</b>. */
|
* <b>type</b>. */
|
||||||
static int
|
static int
|
||||||
have_room_for_onionskin(uint16_t type)
|
have_room_for_onionskin(uint16_t type)
|
||||||
@ -727,7 +727,7 @@ extend_cell_parse(extend_cell_t *cell_out, const uint8_t command,
|
|||||||
cell_out->cell_type = RELAY_COMMAND_EXTEND2;
|
cell_out->cell_type = RELAY_COMMAND_EXTEND2;
|
||||||
++payload;
|
++payload;
|
||||||
/* Parse the specifiers. We'll only take the first IPv4 and first IPv6
|
/* Parse the specifiers. We'll only take the first IPv4 and first IPv6
|
||||||
* addres, and the node ID, and ignore everything else */
|
* address, and the node ID, and ignore everything else */
|
||||||
for (i = 0; i < n_specs; ++i) {
|
for (i = 0; i < n_specs; ++i) {
|
||||||
if (eop - payload < 2)
|
if (eop - payload < 2)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -22,7 +22,7 @@ fast_handshake_state_free(fast_handshake_state_t *victim)
|
|||||||
tor_free(victim);
|
tor_free(victim);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Create the state needed to perform a CREATE_FAST hasnshake. Return 0
|
/** Create the state needed to perform a CREATE_FAST handshake. Return 0
|
||||||
* on success, -1 on failure. */
|
* on success, -1 on failure. */
|
||||||
int
|
int
|
||||||
fast_onionskin_create(fast_handshake_state_t **handshake_state_out,
|
fast_onionskin_create(fast_handshake_state_t **handshake_state_out,
|
||||||
|
Loading…
Reference in New Issue
Block a user