diff options
author | irungentoo <irungentoo@gmail.com> | 2014-01-19 13:53:24 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-01-19 13:53:24 -0500 |
commit | 639b37de672b26daae6bdb4119c0eb677cde0b54 (patch) | |
tree | 229d0b8fec4e3519fca29d95012cd6e8f447650b /toxcore/onion_client.h | |
parent | cdcb8b86007b6490557f1329f42c08732282c500 (diff) |
Small protocol change for more replay attack prevention.
see the changes to Prevent_Tracking.txt
Diffstat (limited to 'toxcore/onion_client.h')
-rw-r--r-- | toxcore/onion_client.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/onion_client.h b/toxcore/onion_client.h index 56adc9ee..afc29f77 100644 --- a/toxcore/onion_client.h +++ b/toxcore/onion_client.h | |||
@@ -36,6 +36,9 @@ typedef struct { | |||
36 | uint8_t client_id[CLIENT_ID_SIZE]; | 36 | uint8_t client_id[CLIENT_ID_SIZE]; |
37 | IP_Port ip_port; | 37 | IP_Port ip_port; |
38 | uint8_t ping_id[ONION_PING_ID_SIZE]; | 38 | uint8_t ping_id[ONION_PING_ID_SIZE]; |
39 | uint8_t data_public_key[crypto_box_PUBLICKEYBYTES]; | ||
40 | uint8_t is_stored; | ||
41 | |||
39 | uint64_t timestamp; | 42 | uint64_t timestamp; |
40 | 43 | ||
41 | uint64_t last_pinged; | 44 | uint64_t last_pinged; |
@@ -70,6 +73,8 @@ typedef struct { | |||
70 | uint8_t secret_symmetric_key[crypto_secretbox_KEYBYTES]; | 73 | uint8_t secret_symmetric_key[crypto_secretbox_KEYBYTES]; |
71 | uint64_t last_run; | 74 | uint64_t last_run; |
72 | 75 | ||
76 | uint8_t temp_public_key[crypto_box_PUBLICKEYBYTES]; | ||
77 | uint8_t temp_secret_key[crypto_box_SECRETKEYBYTES]; | ||
73 | struct { | 78 | struct { |
74 | oniondata_handler_callback function; | 79 | oniondata_handler_callback function; |
75 | void *object; | 80 | void *object; |