mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Stop sending the current time in client NETINFO handshakes.
Implements part of proposal 222.
This commit is contained in:
parent
0c807cf3e4
commit
1d0ba9a61f
5
changes/no_client_timestamps_024
Normal file
5
changes/no_client_timestamps_024
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
o Minor features (security):
|
||||||
|
- Clients no longer send timestamps in their NETINFO cells. These were
|
||||||
|
not used for anything, and they provided one small way for clients
|
||||||
|
to be distinguished from each other as they moved from network to
|
||||||
|
network or behind NAT.
|
@ -2051,7 +2051,8 @@ connection_or_send_netinfo(or_connection_t *conn)
|
|||||||
memset(&cell, 0, sizeof(cell_t));
|
memset(&cell, 0, sizeof(cell_t));
|
||||||
cell.command = CELL_NETINFO;
|
cell.command = CELL_NETINFO;
|
||||||
|
|
||||||
/* Timestamp. */
|
/* Timestamp, if we're a relay. */
|
||||||
|
if (! conn->handshake_state->started_here)
|
||||||
set_uint32(cell.payload, htonl((uint32_t)now));
|
set_uint32(cell.payload, htonl((uint32_t)now));
|
||||||
|
|
||||||
/* Their address. */
|
/* Their address. */
|
||||||
|
Loading…
Reference in New Issue
Block a user