mannol
fc230c8671
Fixed tests and conflicts
2014-07-27 00:26:58 +02:00
mannol
54e7d29589
Make codec settings dynamic
2014-07-26 19:29:49 +02:00
irungentoo
6ede3e8ad4
Merge branch 'master' of https://github.com/mannol1/toxcore
2014-07-22 11:20:55 -04:00
mannol
0cf9f27b70
This should fix test failing
2014-07-21 22:11:59 +02:00
mannol
79115259a8
Fixed conflicts
2014-07-21 04:10:05 +02:00
mannol
1aeeef58b2
Improved protocol and cleaned code a bit
2014-07-21 01:10:57 +02:00
notsecure
b90ecb377d
locks in test
2014-07-07 18:47:49 -04:00
notsecure
c527979daa
make autotests compile
2014-07-07 17:37:05 -04:00
irungentoo
65b4c026f4
The width and height set during the video encoder initialization is
...
now described as the maximum width and height of images.
This is to work around what appears to be a bug in libvpx where the
resolution of the stream can be decreased but increasing it above
its originally set value introduces memory corruption.
2014-07-05 14:36:19 -04:00
irungentoo
c4f0650ae3
Fixed const related warnings.
2014-07-02 16:04:41 -04:00
irungentoo
139cfa7aeb
Merge branch 'master' of https://github.com/mannol1/toxcore
2014-06-22 19:54:40 -04:00
mannol
6f46dd5afd
Removed hamful code
2014-06-23 00:22:01 +02:00
irungentoo
881b2d900d
Fixed some warnings.
2014-06-15 20:49:39 -04:00
irungentoo
2fa8815a85
Fixed some warnings.
2014-06-10 18:51:40 -04:00
irungentoo
07936960df
Astyle and fixes.
2014-06-10 18:35:55 -04:00
irungentoo
ac5e44debb
Kill toxes when finished in tox_test to test tox_kill.
2014-06-06 09:50:19 -04:00
irungentoo
ad20432494
tox_test now checks if TOX_MAX_MESSAGE_LENGTH is correctly set.
2014-06-01 20:48:02 -04:00
irungentoo
89bf08287d
Renamed tox_do_run_interval to tox_do_interval.
...
tox_do_interval now returns a time in ms based on how much action
is going on in net_crypto.
2014-05-30 23:01:17 -04:00
irungentoo
2a719f3168
Fixed issue.
2014-05-25 12:45:09 -04:00
irungentoo
9a4659e575
Replaced randombytes_salsa20_random_buf() with randombytes() in av tests.
2014-05-25 12:28:59 -04:00
irungentoo
82e38883a2
Merge branch 'mannol1-Multicalls' into multi-av
2014-05-25 12:27:48 -04:00
mannol
565e95301f
Tests works and some fixes
2014-05-24 16:02:01 +02:00
mannol
c9f1c6882d
Merge upstream fo real now?
2014-05-20 00:27:02 +02:00
mannol
a1f2a18ae4
Merge upstream and other stuff
2014-05-20 00:10:40 +02:00
mannol
843171fbc8
This works.
2014-05-16 19:56:40 +02:00
irungentoo
a514167952
Exposed and tested disconnect notification TCP packets.
2014-05-15 20:57:55 -04:00
irungentoo
c5559e192d
Added OOB packets to the TCP client and server.
2014-05-14 17:15:43 -04:00
irungentoo
8afe4a4fd7
Really fixed TCP_test.
2014-05-14 06:30:05 -04:00
irungentoo
c2523a3c67
Fixed TCP_test.
...
TCP_test now tests set_tcp_connection_number.
2014-05-13 20:52:34 -04:00
irungentoo
8d50e4a866
Fixed tox_test sometimes timing out.
2014-05-13 12:09:40 -04:00
irungentoo
53cc5ea6a9
Fixed onion test.
2014-05-12 19:43:44 -04:00
mannol
9bb910a370
This should work
2014-05-10 18:00:49 +02:00
irungentoo
b0731f54cd
Fixed small issues.
...
Added set_buffer_end().
File transfer test now checks if pieces arrive correctly.
2014-05-09 21:46:37 -04:00
irungentoo
20e9d9c079
Fixed other test.
2014-05-02 21:51:55 -04:00
irungentoo
38ebfc2989
Fixed one test.
2014-05-02 21:44:09 -04:00
mannol
0fa03b9240
Bunch of random changes
2014-05-03 01:46:03 +02: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
mannol
42b25a4d3e
Yeah many calls
2014-04-27 19:21:26 +02:00
irungentoo
45d122e2cb
Fixed building with NaCl.
2014-04-25 11:17:20 -04:00
irungentoo
0559904ea2
Updated some files so that they could build with latest core.
...
Fixed some issues.
2014-04-23 12:29:24 -04:00
irungentoo
c46ab5821d
Fixed test.
2014-04-21 17:09:52 -04:00
irungentoo
496d4fe203
Fixed a test.
...
Removed function from Messenger.h
2014-04-21 16:54:47 -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
de079d7cf7
Some speedups and small fixes.
2014-04-16 13:53:51 -04:00
irungentoo
be413de396
Fixed regression, announce responses can contain 0 nodes.
2014-04-15 19:16:35 -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
229b2b2dcd
Added function to TCP client and some tests.
2014-04-14 16:59:48 -04:00
irungentoo
268172ec41
Pings and onion packets implemented in TCP_Client.c
...
Astyled one test and added a couple lines to another.
2014-04-12 22:00:46 -04:00
irungentoo
736f5f8034
Added TCP test to build system.
2014-04-10 20:46:24 -04:00
AZ Huang
e4a5c0ca09
Fix phone.c
2014-04-09 21:43:19 +08:00
irungentoo
faded12a71
Merge branch 'master' of https://github.com/mannol1/ProjectTox-Core into mannol1-master
2014-04-07 20:08:10 -04:00
mannol
6e1a3b5af7
Bug fix
2014-04-07 21:52:32 +02:00
irungentoo
bd0d24fc9c
Added TCP_client.
...
Some work done on the TCP part.
2014-04-06 20:51:03 -04:00
irungentoo
ef744ebbc2
Merge branch 'master' of https://github.com/mannol1/ProjectTox-Core into mannol1-master
2014-04-06 20:00:05 -04:00
mannol
3f0d6b5778
Codec settings
2014-04-06 23:59:18 +02:00
irungentoo
813198a6e7
Astyled test.
2014-04-05 14:47:58 -04:00
mannol
1efb1d341f
Rename suite
2014-04-05 17:36:54 +02:00
mannol
9b476ad94f
Added test
2014-04-05 17:09:44 +02:00
irungentoo
4f1e02bafa
tox_group_get_names now returns a list of name lengths along with the list of names.
...
TCP test now also tests pings.
2014-03-31 20:37:03 -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
249d2d9eb7
TCP server testing in progress.
2014-03-26 20:55:14 -04:00
irungentoo
2e48b31e47
Fixed an api inconsistency.
2014-03-20 20:32:37 -04:00
irungentoo
5770a0e29a
Merge branch 'api-fix'
...
Main changes:
1. Strings no longer need to be NULL terminated.
2. tox_get_friend_id is now named tox_get_friend_number.
3. The friend request callback function is now (Tox *tox, uint8_t *,
uint8_t *, uint16_t, void *), the Tox object pointer has been added to
it.
2014-03-18 20:02:50 -04:00
irungentoo
5babb281c0
Friend request callback now contains the Tox object.
2014-03-16 13:24:39 -04:00
irungentoo
3acf43b76a
A bit of work done on the TCP relay server.
2014-03-14 14:12:35 -04:00
irungentoo
d0d9f95b34
Fixed onion test.
2014-02-27 16:59:17 -05:00
irungentoo
1c676147a2
Fixed/updated tests.
2014-02-26 12:46:11 -05:00
irungentoo
50d2b45541
fixed build.
2014-02-22 11:52:46 -05:00
irungentoo
098df5ae31
Added local file sending test to tox_test and updated TODO.
2014-02-19 17:16:47 -05:00
irungentoo
62ef4ed95d
Astyled and added tests.
2014-02-18 13:49:17 -05:00
irungentoo
4b4507b44f
Fixed test issue.
2014-02-17 19:28:31 -05:00
Maxim Biro
ecbceac341
Fixed memory leaks and removed repeated code
2014-02-09 02:01:04 -05:00
irungentoo
696a6ba02e
Onion_test should be now a bit less failure prone.
2014-02-07 20:39:30 -05:00
irungentoo
7ccff33069
Made onion test taste more like onion.
2014-02-05 19:51:22 -05:00
irungentoo
a13e30e8bb
Test passes now, uncommented it.
2014-01-30 14:59:31 -05:00
irungentoo
f1e0e16b67
A bit of tests added.
2014-01-29 20:59:50 -05:00
irungentoo
00100ea335
random_nodes_path should return slightly better paths.
...
Fixed test in network_test failing on some machines because of localhost
ipv6 issues.
2014-01-21 11:14:16 -05:00
irungentoo
aff6b112c0
Merge branch 'onion'
2014-01-20 12:48:26 -05:00
Ben Iofel
174cec7f15
proper windows preprocessor detection
2014-01-19 19:30:14 -05:00
irungentoo
81dd4a8083
Fixed onion_test.
2014-01-19 14:41:29 -05:00
irungentoo
99ae23813b
Some optimizations and fixes.
2014-01-18 18:35:28 -05:00
irungentoo
cd2474a2f6
Incorporated onion into Tox.
...
Fixed a couple of issues related to that.
2014-01-17 13:35:40 -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
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
566c9f63bc
onion_announce seems to be working perfectly.
...
Stuff added and fixed.
2014-01-06 17:59:44 -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
97b9a9cf04
Added onion.c to build system and added a test.
2013-12-31 23:18:37 -05:00
irungentoo
a55437a220
Added some tests.
2013-12-22 22:30:14 -05:00
irungentoo
c51b8a9eba
Added function to save an encrypted version of the messenger.
...
Also added some tests.
2013-12-21 22:35:27 -05:00
irungentoo
a576e451ab
Added new tox autotest.
2013-12-18 20:34:11 -05:00
irungentoo
7092303823
Added simple test for tox.
2013-12-17 18:55:28 -05:00
irungentoo
15d17b0a3c
Astyled the code.
2013-12-16 20:49:24 -05:00
irungentoo
1c45e59938
Added/updated some basic docs and cleaned up some things.
2013-12-07 19:06:41 -05:00
irungentoo
7cd43ecc76
Merge branch 'master' into harden
2013-12-06 22:51:17 -05:00
irungentoo
245a1511e6
Added a assoc test.
...
Changed default assoc so that it behaves correctly.
2013-12-05 19:25:56 -05:00
Coren[m]
b132c92b3a
Assoc's array is now allocated dynamically and per default much smaller (320 entries).
...
id_hash() was not at all working as expected for very small bucket size (when (size / 4) was zero). Simplified to be trivially correct.
Also added a used flag on adding an entry, which is set by callers if they have that association in active use. Those get priority over unused entries on collision.
Fleshed out test to be at least elementary useful.
Each group chat now uses an own, small assoc (80 entries).
2013-11-17 01:05:00 +01:00