diff options
author | irungentoo <irungentoo@gmail.com> | 2015-09-09 14:40:22 -0400 |
---|---|---|
committer | Eniz Vukovic <eniz_vukovic@hotmail.com> | 2015-10-23 22:54:21 +0200 |
commit | 826e18315bdcda7757cc82536e841716c94643d8 (patch) | |
tree | b93e0c8d52ea5ce82b248c3edcb2891ed691368d | |
parent | 7da177cfd398a7be267d4f893ddb7fbf1d0b7556 (diff) |
Increased cookie timeout.
-rw-r--r-- | toxcore/net_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 628666c0..8f7c611e 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -47,7 +47,7 @@ static uint8_t crypt_connection_id_not_valid(const Net_Crypto *c, int crypt_conn | |||
47 | } | 47 | } |
48 | 48 | ||
49 | /* cookie timeout in seconds */ | 49 | /* cookie timeout in seconds */ |
50 | #define COOKIE_TIMEOUT 10 | 50 | #define COOKIE_TIMEOUT 15 |
51 | #define COOKIE_DATA_LENGTH (crypto_box_PUBLICKEYBYTES * 2) | 51 | #define COOKIE_DATA_LENGTH (crypto_box_PUBLICKEYBYTES * 2) |
52 | #define COOKIE_CONTENTS_LENGTH (sizeof(uint64_t) + COOKIE_DATA_LENGTH) | 52 | #define COOKIE_CONTENTS_LENGTH (sizeof(uint64_t) + COOKIE_DATA_LENGTH) |
53 | #define COOKIE_LENGTH (crypto_box_NONCEBYTES + COOKIE_CONTENTS_LENGTH + crypto_box_MACBYTES) | 53 | #define COOKIE_LENGTH (crypto_box_NONCEBYTES + COOKIE_CONTENTS_LENGTH + crypto_box_MACBYTES) |