Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
"All rights reserved" was incorrect. The project was licensed under GPL3,
which means a lot of rights are licensed to everybody in the world, i.e.
not reserved to the "Tox Project".
|
|
|
|
This header is a requirement for the public API, therefore is assumed to
exist. It is a C99 standard library header, and _Bool is not intended to
be used directly, except in legacy code that defines bool (and
true/false) itself. We don't use or depend on such code. None of our
client code uses or depends on such code. There is no reason to not use
bool.
|
|
Messenger is slightly twisty when it comes to sending connection status
callbacks It will very likely need at the very least a partial refactor to
clean it up a bit. Toxcore shouldn't need void *userdata as deep as is
currently does.
(amend 1) Because of the nature of toxcore connection callbacks, I decided to
change this commit from statelessness for connections changes to statelessness
for friend requests. It's simpler this was and doesn't include doing anything
foolish in the time between commits.
group fixup because grayhatter doesn't want to do it
"arguably correct" is not how you write security sensitive code
Clear a compiler warning about types within a function.
|
|
|
|
Some test fixes.
|
|
|
|
Added a function to enable and disable TCP onion connections.
|
|
Attempted fix of connection checking to make it more stable.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This commit makes tox use one Onion_Client_Paths struct for all
friends instead of one per friend.
This should lower the number of ips tox sends packets to which is
what I think causes the router issues.
|
|
|
|
|
|
Put bootstrap nodes in a separate list than known good nodes.
|
|
|
|
They are now all uint16_t instead of sometimes being uint32_t.
Replaced some other uint32_t with unsigned ints.
|
|
|
|
|
|
speed.
|
|
Astyled.
|
|
Better than the polling mess.
Moved DHT to Messenger from onion_client (still needs some cleanups).
|
|
|
|
Forgot to commit it with before last commit.
|
|
|
|
Coming soon: a function to disable UDP.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Friends can now exchange TCP relay addresses so that they can
connect together.
Currently all bootstrap nodes are treated as TCP relays.
|
|
|
|
Added timestamp to know which DHT public key is good in case
onion_client and net_crypto report different ones.
|
|
over a huge cookie.
This reduces the size of the onion announce packets by 100 bytes.
|
|
|
|
Added callbacks in net_crypto for the data packets and status changes.
Added onion_getfriend_DHT_pubkey to onion_client.
Net crypto isn't done yet so connections between toxes are not
lossless, this means file sending is broken hence why the test fails.
|
|
Fixed circular dependency between DHT and net_crypto: DHT no longer
depends on net_crypto.
Moved the crypto request packets functions to crypto core and DHT.
Cleaned up/added some defines that can be used to get the true maximum
length of things like the friends request message.
MAX_DATA_SIZE has been replaced in most places by more appropriate defines.
|
|
Moved Bunch of functions from net_crypto to crypto_core.
decrypt_data_fast and decrypt_data_symmetric were the same thing
therefore, removed decrypt_data_fast.
Replaced all the crypto_secretbox_* defines with the equivalent
crypto_box_* one.
New define: crypto_box_KEYBYTES that is equal to
crypto_box_BEFORENMBYTES.
|