Commit Graph

171 Commits

Author SHA1 Message Date
irungentoo
e85feb8a3d
Fixed a bug where someone could just send back the ping request packet
with only the first byte set to 1 instead of 0 and the public key set
to the one of the reciever as a valid response packet.

This breaks network compatibility with all previous cores.
2014-05-19 12:56:36 -04:00
irungentoo
454cadb91c
Changed cookie/cookie request packet.
Cookie now contains the dht public key of the peer which makes
more sense than including the real public key of the reciever.

It means we no longer have to rely entirely on onion_client to
find the dht public key of the other peer.
2014-05-17 09:21:07 -04:00
irungentoo
c5559e192d
Added OOB packets to the TCP client and server. 2014-05-14 17:15:43 -04:00
irungentoo
1580a5c696
Added kill packets.
There should be no more delay between a peer closing their client
and their friend being notified of them going offline. (unless the
kill packet is lost)
2014-05-11 18:27:23 -04:00
irungentoo
a26ced5fcb
Merge branch 'master' into TCP 2014-05-08 18:26:01 -04:00
irungentoo
fca5e1b99a
Added arrays to store packets on send/recv in net crypto.
Wrote down more of the protocol.

Padding support has been added and implemented which will make it
possible for us to pad packets to mitigate length related attacks.
2014-05-04 20:04:43 -04:00
irungentoo
47aa53a384
Protocol implementation is starting to look ok.
Still need to decide exactly how data packets will work though.
2014-05-01 19:20:28 -04:00
irungentoo
0505df009b
Added number to cookie request/response packets to prevent possible
DoS issue.
2014-04-30 09:24:05 -04:00
irungentoo
3863e01e22
Some more work done on the middle network protocol.
Handshake most likely has no more possible flaws to it, next thing
to do is to do the same with the data packets.

Wrote a couple more functions.
2014-04-29 20:45:32 -04:00
irungentoo
b9370d519f
Added some functions to create/handle middle level protocol packets. 2014-04-28 20:14:07 -04:00
irungentoo
a79eafbb52
The data in the DHT get nodes and send nodes packets can now be of
variable length.
2014-04-25 09:02:49 -04:00
irungentoo
1bfe15ee88
Decided pretty much how the handshake would work.
Started writing the code.

Astyled some files.
2014-04-22 20:28:40 -04:00
irungentoo
db3672bf3f
Added text document explaining what needs to be done before TCP can be merged. 2014-04-18 22:00:12 -04:00
Carlos E. Garcia
cf33c2f9ad multiple spelling fixes 2014-04-16 12:14:44 -04:00
irungentoo
f9bf7b074a
Major protocol changes, this commit breaks all network compatibility.
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-04-15 18:09:07 -04:00
irungentoo
27a7bf5b1e
TCP server now sends/handles ping packets. 2014-03-30 20:56:59 -04:00
irungentoo
8aaa5fe996
TCP server almost ready. 2014-03-28 22:37:42 -04:00
irungentoo
3acf43b76a A bit of work done on the TCP relay server. 2014-03-14 14:12:35 -04:00
irungentoo
2bb5e2c084 Started writing the code for the TCP relay server. 2014-03-12 20:47:07 -04:00
irungentoo
128a0d2444 Detailed docs for TCP server pretty much done.
Implementation coming soon.
2014-03-11 20:01:52 -04:00
Agatha
1cb38abf99 Minor documentation cleanup
This commit fixes some typos and grammar mistakes. It
also fixes some of the long text lines and generally
makes the documentation more readable.
2014-03-04 07:48:38 -05:00
Maxim Biro
5a142bb697 Renamed dht server to dht node 2014-02-22 17:07:15 -05:00
irungentoo
098df5ae31 Added local file sending test to tox_test and updated TODO. 2014-02-19 17:16:47 -05:00
irungentoo
3df67bc6aa Updated TODO. 2014-02-17 09:35:24 -05:00
irungentoo
2772cb318b updated/fixed TODO list. 2014-02-14 12:06:24 -05:00
irungentoo
d6e2f903a7 Added entry to TODO and a public key cracker (vanity key finder) to other/fun. 2014-02-10 19:53:44 -05:00
irungentoo
51d8c41390 Fixed group chat doc. 2014-01-23 09:05:43 -05:00
irungentoo
639b37de67 Small protocol change for more replay attack prevention.
see the changes to Prevent_Tracking.txt
2014-01-19 13:53:24 -05:00
irungentoo
cdcb8b8600 Added no_replay and added some things to the docs. 2014-01-19 09:44:33 -05:00
irungentoo
a49a09f94b Onion data packets can now be handled in onion_client.
oniondata_registerhandler(...) can be used to register different packet
types to handle them and send_onion_data(...) can be used to send these
packets.
2014-01-14 14:20:42 -05:00
irungentoo
6cb1e9309f updated TODO. 2014-01-10 11:24:14 -05:00
irungentoo
ea7d1a726d Putting the sendback outside the encrypted part of the response.
It's more useful this way.
2014-01-09 19:54:42 -05:00
irungentoo
0fd8e49c38 Fixed problem in onion_announce.c
Added a way to know if a announce response is valid.
2014-01-08 20:15:35 -05:00
irungentoo
7e2d21271a Some work on the onion part done. 2014-01-04 19:40:43 -05:00
irungentoo
97a141c0cc Some work done on the onion announce part. 2014-01-02 22:33:46 -05:00
irungentoo
3d5a88f56a Updated TODO. 2014-01-02 19:03:28 -05:00
irungentoo
ad2037e165 Added the shell of onion.{c, h} 2013-12-24 16:22:56 -05:00
irungentoo
01949b6a67 Added proposal on how to solve all the privacy related problems with the DHT. 2013-12-23 16:21:07 -05:00
irungentoo
606c2c12ab Small fixes. 2013-12-07 21:13:07 -05:00
irungentoo
1c45e59938 Added/updated some basic docs and cleaned up some things. 2013-12-07 19:06:41 -05:00
Peter Maatman
7fc3ed009a Update av_api.md
forgot one paragraph
2013-11-01 12:01:39 +01:00
Peter Maatman
52ee379677 Update av_api.md
some markup was fucked up :P
2013-11-01 12:00:42 +01:00
Peter Maatman
21c8c672c1 Update av_api.md
that looks better :)
2013-11-01 11:59:05 +01:00
Peter Maatman
760edd0c56 Update av_api.md
and some more
2013-11-01 11:55:22 +01:00
Peter Maatman
0234609ab1 Update av_api.md
add some more shiny stuff
2013-11-01 11:53:26 +01:00
Peter Maatman
9ff287569e Update av_api.md
add some code blocks in the markup
2013-11-01 11:52:31 +01:00
Peter Maatman
6c0cfd08e6 Update av_api.md 2013-11-01 11:50:46 +01:00
Peter Maatman
fb13210477 Update av_api.md 2013-11-01 11:50:07 +01:00
irungentoo
b41edb05fd Updated hardening doc. 2013-10-30 20:25:02 -04:00
irungentoo
6391208ab3 Added some things to the TODO list. 2013-10-16 16:18:14 -04:00
Alexander Huffman
017860f812 Update TODO 2013-10-15 08:12:37 -03:00
mannol
5bc2560904 tox A/V: integration of A/V code into tox
Also-by: Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
2013-10-13 16:40:15 +02:00
irungentoo
77ec510858 Hardening the Tox network, document writing in progress. 2013-10-10 20:47:06 -04:00
irungentoo
01ddd3249c Updated TODO. 2013-09-29 11:40:42 -04:00
David Gumberg
7d1fb4bef0 A markdown-formatted file had the .txt extension 2013-09-22 14:15:09 -07:00
irungentoo
04e7b0eb6c Fixed small problems, updated TODO. 2013-09-14 18:59:04 -04:00
Alexander Huffman
0ef7daaa25 Update TODO 2013-09-09 11:01:04 -03:00
Alexander Huffman
1d75ed7342 Update TODO 2013-09-07 15:19:28 -03:00
irungentoo
bdf31fc6b5 Added TODO list and made m_copy*_statusmessage functions return length of copied buffer on success. 2013-09-07 13:27:44 -04:00
irungentoo
c59975dd7e Work in progress group chats.
Not done yet.
2013-09-03 08:53:07 -04:00
irungentoo
5b627fe4d8 Removed out of date documentation. 2013-08-31 11:59:35 -04:00
pete
82b8927af7 Correct a lot of the grammar and spelling. Also spent a few hours fixing the comments so they follow a standard. 2013-08-29 22:17:51 +01:00
jin-eld
1ec70337cf Remove cmake build system 2013-08-24 03:36:43 +03:00
irungentoo
f2c336e4f5 Added docs detailing containing latest protocol changes. 2013-08-16 20:02:53 -04:00
naxuroqa
cc21c62b71 moved conf.py to its right place
cleaned up the cmake for building the docs nicer
2013-08-16 16:15:15 +02:00
volgafan
437554b999 Update install.rst
sudo should be used instead bash
2013-08-05 15:53:50 -07:00
Greg
751ecba283 Update commands.rst 2013-08-02 09:17:29 -04:00
Florian Hahn
95e0eadd67 Sphinx is not required for building any more 2013-08-01 22:30:59 +02:00
Florian Hahn
2b8bb6304e Remove markdown files 2013-08-01 22:14:26 +02:00
Florian Hahn
1fb96df087 Update link to install documentation 2013-08-01 22:13:46 +02:00
Florian Hahn
0fab783138 Add install.rst to documentation toc 2013-08-01 22:11:04 +02:00
Florian Hahn
3f64046f6c Convert INSTALL.md to reSt 2013-08-01 22:10:38 +02:00
Florian Hahn
c7b8d9184b add reSt versions of start_guide and start_guide.de 2013-08-01 21:46:48 +02:00
Florian Hahn
d4b1598d93 Remove using_tox.rst 2013-08-01 21:46:18 +02:00
Florian Hahn
d34130215f Remove ALL target from docs 2013-08-01 21:23:49 +02:00
Florian Hahn
f956a07245 Add cmake files for building docs 2013-08-01 21:22:41 +02:00
Florian Hahn
2711cd7f6c Add sphinx config files 2013-08-01 21:22:41 +02:00
irungentoo
6244af0512 Merge branch 'useless-start-guide' of https://github.com/KenanY/ProjectTox-Core into KenanY-useless-start-guide 2013-08-01 08:13:40 -04:00
Kenan Yildirim
9ce3864c93 Move start_guide.md to docs/ and delete using_tox.md
`start_guide.md` is virtually an exact duplicate of `using_tox.md`.
2013-07-31 23:58:48 -04:00
charmlesscoin
e52db5b8b7 Wrote the commands down and a 'start up' guide. 2013-07-31 05:00:40 -04:00
Oliver Hunt
0ec04a92af Removed docs, all are now in the wiki 2013-07-21 09:50:36 +01:00
NemDiggers
16dbdd0012 Remove WHY.txt 2013-07-19 00:20:57 -04:00
sometwo
d6f6d4e860 Update TODO.txt 2013-07-18 17:03:49 -03:00
irungentoo
c8d7044efb Status packet is now id 49 (It's cleaner that way). 2013-07-18 15:59:14 -04:00
Sebastian Stal
b190dc6fbe Add custom user statuses to core, updated nTox to support nicknames and user statuses. 2013-07-18 10:56:50 -07:00
irungentoo
7611ca810f Added draft of routing protocol. 2013-07-18 13:45:28 -04:00
irungentoo
ad44110fd5 Added nicknames and nickname syncing. 2013-07-18 11:47:27 -04:00
irungentoo
5b761ba9ca Added FAQ 2013-07-13 19:49:27 -04:00
irungentoo
835ef0320d Added something to DHT_hardening.txt 2013-07-13 10:01:19 -04:00
irungentoo
79aa715514 First part of DHT hardening done.
Added crypto to the DHT communications.

This defeats completely the first attack mentioned in
docs/DHT_hardening.

Also updated the build system to build the latest test (it links it with
libsodium)
2013-07-12 16:27:19 -04:00
irungentoo
1989246f49 Some more ideas on how to harden the DHT. 2013-07-11 08:41:24 -04:00
irungentoo
f471602d5d updated TODO 2013-07-10 12:54:39 -04:00
irungentoo
ae6f898a9e Added some thoughts on how to harden the DHT. 2013-07-09 18:27:56 -04:00
irungentoo
c00cf85078 Spelling mistakes fixed. 2013-07-08 12:36:11 -04:00
irungentoo
9a0d749083 Added IDEAS.txt and added checks to 2 net_crypto functions. 2013-07-07 23:09:00 -04:00
irungentoo
6a9805d368 Small fixes in the crypto doc. 2013-07-06 11:02:47 -04:00
irungentoo
7458473dca Forward secrecy implemented into crypto. 2013-07-06 10:57:49 -04:00
irungentoo
244705b577 Added WHY.txt 2013-07-05 21:06:46 -04:00
irungentoo
b75b99a20a Updated roadmap and TODO. 2013-07-05 17:24:43 -04:00
irungentoo
358f46f648 Some slight modifications to the crypto protocol. 2013-07-04 18:38:01 -04:00