summaryrefslogtreecommitdiff
path: root/toxcore/onion_client.c
AgeCommit message (Collapse)Author
2014-05-18TCP branch now ready for start of real testing.irungentoo
Friends can now exchange TCP relay addresses so that they can connect together. Currently all bootstrap nodes are treated as TCP relays.
2014-05-17add_tcp_relay_peer() can be used to add relays that we know thatirungentoo
peer is connected to. Some cleanups/fixes.
2014-05-17Added function to set the DHT public key in onion_client.irungentoo
2014-05-17Net_crypto can now handle packets sent as TCP OOB packets.irungentoo
Added timestamp to know which DHT public key is good in case onion_client and net_crypto report different ones.
2014-05-14Added OOB packets to the TCP client and server.irungentoo
2014-05-14It's bad to have more than one path with the same first node in theirungentoo
same path array.
2014-05-13pack/unpack nodes can now pack and unpack TCP nodes.irungentoo
2014-05-12Use ping_array to store onion announce information instead of sendingirungentoo
over a huge cookie. This reduces the size of the onion announce packets by 100 bytes.
2014-05-08Merge branch 'master' into TCPirungentoo
2014-05-07Fixed bug.irungentoo
memcmp is easy to confuse visually with memcpy but they do very different things. It was also comparing (copying) the senders real public key with their DHT public key.
2014-05-06Removed useless code.irungentoo
2014-05-02Messenger now works with the new net_crypto api.irungentoo
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.
2014-04-25The data in the DHT get nodes and send nodes packets can now be ofirungentoo
variable length.
2014-04-23Updated some files so that they could build with latest core.irungentoo
Fixed some issues.
2014-04-23Major cleanups.irungentoo
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.
2014-04-21Crypto related cleanups.irungentoo
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.
2014-04-16Some speedups and small fixes.irungentoo
2014-04-16multiple spelling fixesCarlos E. Garcia
2014-04-16DHT_bootstrap.c now has TCP server functionality enabled.irungentoo
Fixed a regression (same type as last commit).
2014-04-15Major protocol changes, this commit breaks all network compatibility.irungentoo
Removed a bunch of useless space from various structs. pack_nodes() and unpack_nodes() are now used to transmit lists of nodes for the DHT and onion parts. They provide a way to transmit both ipv6 and ipv4 nodes in the same packet in a portable way that takes as little space as possible without compression. Using pack_nodes, merged the send nodes and send nodes ipv6 packets into one packet greatly reducing the risk of amplification attacks.
2014-03-09Reduced the number of useless onion packets sent.irungentoo
2014-03-08send_custom_user_packet now returns -1 when friend is offline.irungentoo
2014-03-07Fixed clients not connecting when there is only 2 people on the network.irungentoo
2014-03-07Speeded up onion requests.irungentoo
Also increased the maximum number of announce entries.
2014-03-03Some small changes/fixes.irungentoo
Changed some timeouts and made cryptopacket_handle return correctly.
2014-03-03Made onion paths expire eventually client side.irungentoo
2014-02-28Very simple fix to lower bandwidth usage at startup.irungentoo
2014-02-26Major speed/cpu usage/bandwidth improvements to onion.irungentoo
2014-02-15Fixed some possible issues.irungentoo
2014-02-13Onion now eventualy deletes friends from the DHT search.irungentoo
This should improve long term bandwidth usage by a bit.
2014-02-02Fixed warning.irungentoo
2014-01-31Fixed error in last commit.irungentoo
The tests actually work.
2014-01-31Improved onion connection by a bit.irungentoo
2014-01-30Fixed bug with client_ping_nodes() not pinging any nodes.irungentoo
2014-01-25Fixed possible anonimity leak with the onion routing.irungentoo
2014-01-24Set last_noreplay to zero when friend goes offline.irungentoo
2014-01-21Decreased interval between sending announce packets.irungentoo
2014-01-21Fixed bug.irungentoo
2014-01-21Adjusted some timeouts.irungentoo
2014-01-21Fixed some portability issues.irungentoo
2014-01-20Adjusted some timeouts and fixed possible memory leak.irungentoo
2014-01-20Enabled onion in bootstrap_serverdaemon.irungentoo
2014-01-20Fakeid packets are now also sent via the DHT.irungentoo
2014-01-19Small protocol change for more replay attack prevention.irungentoo
see the changes to Prevent_Tracking.txt
2014-01-19Added no_replay and added some things to the docs.irungentoo
2014-01-18Some optimizations and fixes.irungentoo
2014-01-18Fixed segfault.irungentoo
2014-01-17Small performance increases.irungentoo
2014-01-17Incorporated onion into Tox.irungentoo
Fixed a couple of issues related to that.
2014-01-16Wrote random_path function.irungentoo
Added onion_client to the build system.