irungentoo
733066a57e
Added TOX prefix to enum.
2013-08-23 06:31:19 -04:00
irungentoo
cabc5add79
New api proposal.
2013-08-22 18:40:29 -04:00
irungentoo
7719a9ed58
init_cryptopacket is now called by new_DHT.
2013-08-22 13:19:38 -04:00
Michael Rose
734b611b30
more ID extraction
2013-08-21 10:08:03 +02:00
Michael Rose
3868a5326c
refactoring packet IDs
2013-08-21 09:55:43 +02:00
irungentoo
e494785abd
Fixed bug.
2013-08-20 23:32:29 -04:00
irungentoo
128223d9d1
astyle --options=tools/astylerc -r ./*.{c,h}
2013-08-20 19:37:05 -04:00
irungentoo
747c290269
Fixed DHT_test.c and added some checks.
2013-08-20 15:53:15 -04:00
irungentoo
2f66b31244
nTox and cmake fixed.
2013-08-20 15:28:16 -04:00
irungentoo
ac621d96d3
Refactor of core done.
2013-08-20 14:47:32 -04:00
irungentoo
a1c40d753e
More refactoring done.
2013-08-20 12:08:55 -04:00
irungentoo
afa6edecc1
Some refactoring done.
2013-08-19 23:54:28 -04:00
irungentoo
4b480381ee
Fixed segfault.
2013-08-19 07:18:24 -04:00
irungentoo
17890b1f61
Realloc apparently doesn't always behave like free() if size is zero.
2013-08-19 07:15:56 -04:00
irungentoo
88986f793a
Prevented possible MITM attack.
...
Friends must now send to themselves at least one encrypted ping packet
every 5 seconds.
If no encrypted ping packets are recieved from a friend within 10
seconds the connection is killed.
2013-08-19 07:00:59 -04:00
irungentoo
45fec94452
Fixed segfault and removed deprecated code.
2013-08-18 11:01:15 -04:00
irungentoo
88ea4659e9
Properly fixed possible realloc with size zero problem.
2013-08-18 10:27:03 -04:00
Sean Qureshi
1986e6b7f4
Ran it through astyle
2013-08-18 01:48:36 -07:00
Sean Qureshi
a03dcbb54e
Fixes CERT MEM04-C; CWE-131 in net_crypto.c
2013-08-18 01:31:54 -07:00
Sean Qureshi
17d3878174
Added minor error checking in Core, this helps prevent CERT MEM04-C; CWE-131
2013-08-18 01:26:11 -07:00
Sean Qureshi
71bc275284
Fixed a core memory leak
2013-08-18 00:23:50 -07:00
irungentoo
f259ab5fa7
Fixed bug.
2013-08-17 11:30:48 -04:00
irungentoo
7d092c3467
Added dynamic memory allocation to crypto connections.
...
Also fixed some possible bugs in Messenger.c
2013-08-17 11:16:08 -04:00
Michael Rose
d1d24c123d
Messenger stores / loads nickname
...
new toxic command to show nickname (mynick)
2013-08-17 11:59:28 +02:00
irungentoo
1207304f0b
Metadata collection prevention part 2 of ???
...
Improved friend request sending.
As a side effect friend requests should now be routed less than before.
See added comments for details.
2013-08-16 18:57:00 -04:00
irungentoo
88ff81d9de
Passed everything through astyle.
2013-08-16 13:11:09 -04:00
irungentoo
173101624c
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core
2013-08-16 11:07:32 -04:00
irungentoo
095b3c4913
Some DHT hardening done.
...
See comments of added functions for details.
2013-08-16 11:04:28 -04:00
irungentoo
add81b3426
Merge pull request #471 from krisl/master
...
Add spam length to data length
2013-08-15 18:00:55 -07:00
irungentoo
b15230583c
Fixed loading and a small problem with the length of crypto requests.
2013-08-15 20:56:22 -04:00
Aaron Lipinski
ff7b4f8418
Add spam length to data length in comparison against max size
2013-08-16 08:27:03 +12:00
irungentoo
9e3d5d6488
Updated comment.
2013-08-15 14:26:26 -04:00
irungentoo
2663b9d23d
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core
2013-08-15 14:25:36 -04:00
irungentoo
575804d19f
Small improvement to DHT. Useless file removed. Small fix to toxic.
2013-08-15 14:24:32 -04:00
Florian Hahn
3590f0a521
Check return value of realloc_friendlist and return FAERR_NOMEM on error
2013-08-15 15:34:27 +02:00
Aaron Lipinski
6b38b704a4
provide access to the close client list
2013-08-15 12:02:56 +12:00
Aaron Lipinski
93b34ef9e3
move client data struct to header file
2013-08-15 12:02:56 +12:00
irungentoo
4330bfbf87
Metadata collection prevention part 1 of ???.
...
Crypto requests packets are packets that can be routed by nodes in the
DHT. In this pull request I have merged both Natping requests and friend
requests into one common packet (Crypto request packets). Both these
packets should now only be distinguishable by the size of the data in
them to an outside observer for an example on how to send and recieve
data with these packets see: friend_requests.c
Note that these packets are prefixed with id 32 (friend request packets)
which means this change is compatible with the currently running DHT
bootstrap servers.
Also changed small thing in DHT_test.c
2013-08-14 18:26:00 -04:00
irungentoo
a3d3d37c23
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core
2013-08-14 10:26:27 -04:00
irungentoo
5909a13ba4
Add friend now fails if it already is in DHT.
2013-08-14 10:26:02 -04:00
irungentoo
0338c3c9e8
Merge pull request #464 from slvr/crypto-fix
...
Incorrect constants: s/BOXZERO/ZERO/
2013-08-14 07:10:14 -07:00
irungentoo
8eb8fb2ab5
Messenger fix from pr #461 .
2013-08-14 09:52:03 -04:00
slvr
a854a730ec
Reduced redundant code, added new crypto test
2013-08-14 14:46:29 +01:00
slvr
ee34b51c24
s/BOXZERO/ZERO/
2013-08-14 14:29:39 +01:00
slvr
0b27a0cb35
Incorrect constants: s/BOXZERO/ZERO/
2013-08-14 14:26:04 +01:00
Chris Hall
cf5ad56a4a
fixing minor memory leak of friendlist
2013-08-14 17:35:15 +12:00
Chris Hall
0590d8325c
removing unnecessary function pointer _isset variables
2013-08-14 17:27:10 +12:00
irungentoo
63efa44dfa
Attempt to quickly fix a test.
2013-08-13 19:36:02 -04:00
irungentoo
06ccdb5b91
Simple XOR checksum added to address.
2013-08-13 19:07:59 -04:00
irungentoo
4132cdff49
clarified comment.
2013-08-13 18:30:14 -04:00