Roman Proskuryakov
ed3a794c9b
fix: compare sensitive data with sodium_memcmp
...
fix: make increment_nonce & increment_nonce_number independent of user-controlled input
fix: make crypto_core more stable agains null ptr dereference
2016-01-27 02:14:59 +03:00
irungentoo
dedf86311b
Fixed possible bug.
2015-12-17 16:15:20 -05:00
irungentoo
97ba2f7640
Less packet spam.
2015-12-16 14:26:40 -05:00
irungentoo
73b2144edc
Increase max file transfer speed.
...
Fix bug that limited it to 1K packets per second.
2015-11-21 11:05:26 -05:00
irungentoo
25843bf141
More file transfer improvements.
2015-11-21 10:05:39 -05:00
irungentoo
608ee07c96
File transfer fix.
2015-11-20 21:48:25 -05:00
irungentoo
994a5db105
File transfer fix.
2015-11-20 20:34:15 -05:00
irungentoo
5a800fe467
Send queue size should not affect the speed of packets being resent.
2015-11-19 17:04:39 -05:00
irungentoo
548fafc4dd
Fixed division by 0.
2015-11-19 15:10:20 -05:00
irungentoo
0c29c00125
Attempted fix of disconnect when switching from TCP to UDP.
2015-11-19 15:03:02 -05:00
irungentoo
9fc96fae6f
Send more request packets if packet receive rate is high.
2015-11-17 19:12:16 -05:00
irungentoo
d699a9627f
Don't spam request packets.
2015-11-17 18:42:01 -05:00
irungentoo
e1089c1779
Less magic numbers.
2015-11-12 15:48:14 -05:00
irungentoo
c84b9c4b4c
Remove an old fix that didn't fix anything.
2015-11-12 15:32:40 -05:00
irungentoo
22634a4b93
Attempted fix of UDP disconnect bug that happens when both ipv4 and ipv6 are connected.
2015-11-11 18:58:41 -05:00
irungentoo
6b7f1deb79
Lower chances of disconnect during file transfers.
2015-11-11 11:00:08 -05:00
irungentoo
0d0b74f5a8
More file transfer improvements.
...
Use a formula instead of magic numbers.
2015-11-10 19:00:00 -05:00
irungentoo
7022cef26e
File transfer fixes.
...
Fixed file transfers disconnecting tox clients from each other in
some network conditions.
2015-11-09 20:13:53 -05:00
irungentoo
f71cada194
Increased cookie timeout.
2015-09-09 14:40:22 -04:00
irungentoo
5def57afcf
This might improve the file transfer disconnect issue.
2015-07-26 22:01:19 -04:00
irungentoo
749a9330c4
Link changes.
2015-07-07 22:57:11 -04:00
irungentoo
6aaac706fa
Fixed bug.
2015-06-28 22:15:29 -04:00
irungentoo
f2be0a3c5d
Fixed warning.
2015-06-25 22:18:34 -04:00
irungentoo
1434b319f3
Added code to net_crypto to calculate rtt.
2015-06-23 22:05:39 -04:00
irungentoo
a0e783213b
Lower the chances of disconnect when transferring files.
2015-06-21 21:36:10 -04:00
irungentoo
67df1ab7ce
Made new_tcp_connections() not depend on dht.
2015-06-16 23:00:24 -04:00
irungentoo
b072c692e7
Congestion control tweaks.
2015-05-31 20:10:38 -04:00
irungentoo
2ba076ac5c
Load only secret key from tox save, not public key.
...
Calculate public key from it.
2015-05-21 20:39:47 -04:00
irungentoo
8760aba257
Some protocol efficiency improvements.
...
Reduced the amount of waste from dropped packets.
2015-05-17 18:41:02 -04:00
irungentoo
e3ee9702fb
Don't resend the same packet twice within a short timeframe.
2015-05-16 21:57:07 -04:00
irungentoo
b5d712502b
Fixed friends getting disconnected when transferring files.
2015-05-15 21:27:50 -04:00
irungentoo
84d4f95038
Fixed possible connection issue.
2015-05-04 08:40:21 -04:00
irungentoo
7d13f1928e
Fixed some non standard C.
...
Replaced void * with uint8_t * in list.c
2015-05-01 15:13:38 -04:00
irungentoo
b2c966a6e3
Fixed some warnings.
...
Removed useless include.
2015-04-30 20:51:43 -04:00
irungentoo
28de3f59fd
Fixed some possible connection issues.
2015-04-24 20:39:45 -04:00
irungentoo
3e256e429f
Fixed a couple possible issues with the friend connection callback.
...
A TCP callback could be received when only a UDP connection was present.
Increased a UDP timeout to make it less likely to time out and switch to TCP.
2015-04-24 11:09:42 -04:00
irungentoo
390f94bfd5
Fixed possible bug.
2015-04-22 09:32:36 -04:00
irungentoo
50b81dc669
Fixed possible bug.
2015-04-22 09:29:16 -04:00
irungentoo
0a0ed45202
If a net_crypto connection isn't using the TCP relays, disconnect from them.
...
TCP_connections can now be put to sleep, a state where they store what they
were connected to without being connected and then resumed from sleep.
2015-04-21 14:30:39 -04:00
irungentoo
4a987bf751
Removed useless stuff.
2015-04-19 10:34:13 -04:00
irungentoo
ef5ef8ef36
If connection is directly connected, don't fallback to sending with tcp
...
if sending directly fails.
2015-04-19 09:49:24 -04:00
irungentoo
1a2fa1b7e6
Some changes to net crypto.
...
Should fix certain connection issues that sometimes happen.
The dht public key of the peer must be known to create the connection.
If the dht pk of the peer changes when a connection is active, it is
killed to make way for the new one.
2015-04-18 22:14:37 -04:00
irungentoo
b4fc0809a7
The only secure compare function currently needed is one to compare 2 public keys.
2015-04-18 13:13:29 -04:00
irungentoo
0886b4f7b8
Enable proxy support in TCP_connection.
2015-04-18 09:32:17 -04:00
irungentoo
2a2390b5e7
Assign some TCP relays for use with onion packets and keep them connected
...
for that purpose.
2015-04-17 20:50:05 -04:00
irungentoo
0bc3730387
Made net_crypto use TCP_connection.
...
TODO:
-Reconnection.
-If UDP connction is good, connect to less TCP relays.
-Store some TCP relays in friend connection associated to each friend?
2015-04-15 20:53:21 -04:00
irungentoo
083bfdd25a
Use define instead of 0.
2015-04-04 19:21:51 -04:00
irungentoo
11e8e8bd3a
When link can't send packets anymore, stop the request chunk callback.
...
Removed time variable in packet struct and replaced it with sent
variable.
2015-03-13 16:51:41 -04:00
irungentoo
b4320e5fac
File sending improvements.
...
Use correct double to integer conversion.
2015-03-12 18:56:33 -04:00
irungentoo
0d67598aed
File transfer fixes and improvements.
2015-03-12 18:01:08 -04:00