diff options
author | irungentoo <irungentoo@gmail.com> | 2014-01-08 20:15:35 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-01-08 20:15:35 -0500 |
commit | 0fd8e49c386e357487ab9d68f2a9aa1d8a2356e0 (patch) | |
tree | 447b947694ca80b2b8cc583b362f9c62c374d7d0 /docs | |
parent | 5e6e5032014138e4d6659478085afe8d4a99188d (diff) |
Fixed problem in onion_announce.c
Added a way to know if a announce response is valid.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Prevent_Tracking.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/Prevent_Tracking.txt b/docs/Prevent_Tracking.txt index d8087070..46d05ce8 100644 --- a/docs/Prevent_Tracking.txt +++ b/docs/Prevent_Tracking.txt | |||
@@ -97,7 +97,7 @@ Data sent to Node D: | |||
97 | 97 | ||
98 | announce request packet: | 98 | announce request packet: |
99 | [uint8_t packet id (131)][nonce][our real long term public key or a temporary one (see next)] | 99 | [uint8_t packet id (131)][nonce][our real long term public key or a temporary one (see next)] |
100 | encrypted (with our real long term private key if we want to announce ourselves, a temporary one if we are searching for friends) and the pub key of Node D and the nonce:[[(32 bytes) ping_id][client id we are searching for]] | 100 | encrypted (with our real long term private key if we want to announce ourselves, a temporary one if we are searching for friends) and the pub key of Node D and the nonce:[[(32 bytes) ping_id][client id we are searching for][data to send back in response(fixed size)]] |
101 | 101 | ||
102 | (if the ping id is zero, respond with a announce response packet) | 102 | (if the ping id is zero, respond with a announce response packet) |
103 | (If the ping id matches the one the node sent in the announce response and the public key matches the one being searched for, | 103 | (If the ping id matches the one the node sent in the announce response and the public key matches the one being searched for, |
@@ -111,7 +111,7 @@ encrypted with that temporary private key and the nonce and the real public key | |||
111 | Data sent to us: | 111 | Data sent to us: |
112 | announce response packet: | 112 | announce response packet: |
113 | [uint8_t packet id (132)][nonce] | 113 | [uint8_t packet id (132)][nonce] |
114 | encrypted with the DHT private key of Node D, the public key in the request and the nonce:[[(32 bytes) ping_id][Node_Format * (maximum of 8)]] | 114 | encrypted with the DHT private key of Node D, the public key in the request and the nonce:[[data to send back in response(fixed size)][(32 bytes) ping_id][Node_Format * (maximum of 8)]] |
115 | (if the ping id is zero, it means the information to reach the client id we are searching for is stored on this node) | 115 | (if the ping id is zero, it means the information to reach the client id we are searching for is stored on this node) |
116 | 116 | ||
117 | data to route response packet: | 117 | data to route response packet: |