irungentoo
bd67129c3e
Added a define for the length of onion paths.
2015-05-01 15:46:48 -04:00
irungentoo
18b45ffade
Add function to get nodes from onion path.
2014-12-25 15:01:12 -05:00
irungentoo
6bbb939855
Cleaned up packet length types in toxcore.
...
They are now all uint16_t instead of sometimes being uint32_t.
Replaced some other uint32_t with unsigned ints.
2014-11-21 20:18:29 -05:00
irungentoo
70d338703d
Added function to create onion packets to send via TCP.
2014-08-13 06:41:35 -04:00
irungentoo
2c7654bd9a
No longer rely on source ip to get the path the packet was sent with.
2014-08-12 13:01:28 -04:00
irungentoo
6d4fdb3597
Merge branch 'const_correctness' of https://github.com/schuetzm/ProjectTox-Core
2014-07-02 15:41:59 -04:00
Marc Schütz
1494992a9f
Const-correctness for onion.c
2014-06-30 21:30:41 +02:00
Marc Schütz
0aa0cbda42
Const-correctness for toxcore/onion_announce.c
2014-06-30 21:26:51 +02:00
irungentoo
a82cbfff6a
Preparation work to make onion packets go through TCP.
2014-06-18 19:44:49 -04:00
irungentoo
750c75a47d
Astyled code.
2014-06-15 10:36:57 -04:00
Marc Schütz
4940c4c62b
Const correctness for various packet callbacks
2014-06-13 22:55:15 +02:00
notsecure
0d711afbec
IP_Port packing unpacking in onion.c
2014-05-19 09:18:04 -04:00
irungentoo
384750af8c
Major cleanups.
...
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-23 11:35:40 -04:00
irungentoo
9c6a8432ce
Crypto related cleanups.
...
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-21 16:51:36 -04:00
irungentoo
98cba889a7
TCP server now has onion functionality.
...
All the IP/Port related structs now have __attribute__ ((__packed__))
2014-03-29 22:19:03 -04:00
irungentoo
8aaa5fe996
TCP server almost ready.
2014-03-28 22:37:42 -04:00
irungentoo
3bcc6e2ae5
CPU optimizations.
...
Use get_shared_key() in more places.
2014-03-05 16:54:17 -05:00
irungentoo
cebae58ddc
Major speed/cpu usage/bandwidth improvements to onion.
2014-02-26 12:18:47 -05:00
irungentoo
cfb820c2fc
Made onion paths expire.
2014-02-13 13:03:19 -05:00
irungentoo
6cd1e7fb70
Tests added and some fixes for the onion part.
2014-01-05 19:22:38 -05:00
irungentoo
7e2d21271a
Some work on the onion part done.
2014-01-04 19:40:43 -05:00
irungentoo
d46891c3b7
A bit of work done on the onion part.
2014-01-03 22:13:20 -05:00
irungentoo
ec429b7fee
Some small cleanups.
...
TODO: remove old todos that have been done.
2014-01-01 22:24:09 -05:00
irungentoo
9c9e3b0e45
Added a function to create and send a onion packet.
2013-12-30 12:20:30 -05:00
irungentoo
042d759847
All recv packets now handled.
2013-12-25 20:23:14 -05:00
irungentoo
ad2037e165
Added the shell of onion.{c, h}
2013-12-24 16:22:56 -05:00