irungentoo
015a8b7d75
Sendback data size is always 8 bytes.
2014-12-14 20:33:31 -05:00
irungentoo
6f3312c137
More group auto testing.
2014-12-13 21:56:36 -05:00
irungentoo
36851e7b38
Test if everything goes well when a peer leaves the group chat.
2014-12-11 20:10:57 -05:00
irungentoo
4eeeb8e9ab
Added a tox_add_friend auto test.
2014-12-10 12:12:37 -05:00
irungentoo
4ec9295259
Fixed tox_test.c
2014-12-09 18:13:39 -05:00
irungentoo
7d27893f1a
Merge branch 'more_consistent_custom_packet_handlers' of https://github.com/wrouesnel/toxcore
2014-12-09 16:39:52 -05:00
Will Rouesnel
d595a28b49
Patch auto_tests/tox_test.c with the new prototype
2014-12-09 11:00:24 +11:00
irungentoo
422f228921
Test now works with large groups.
2014-12-05 22:37:02 -05:00
irungentoo
5112156953
Added basic group message test.
2014-12-05 21:39:46 -05:00
irungentoo
035cd7ece3
Added simple group auto test.
2014-12-04 20:54:59 -05:00
mannol
e62ded3a6d
More av cleanup
2014-11-29 13:42:19 +01:00
irungentoo
767c0653bd
Attempted fix of threading issue in test.
2014-11-27 21:08:01 -05:00
irungentoo
89f2436fac
Astyle autotests.
2014-11-25 15:31:46 -05:00
irungentoo
279c33c01a
Merge branch 'master' of https://github.com/mannol/toxcore
2014-11-24 20:24:59 -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
mannol
386c9748d4
av refactor
2014-11-18 00:46:46 +01:00
dubslow
d90ee9d4e4
fix #1124 by adding salt manip functions
...
Also, all data now has the magic number prepended. This is incompatible
for all but the save/load functions, but I think nothing besides the one
experimental qTox branch used any of those, which is why I feel confident
about the change.
2014-10-23 04:19:18 -05:00
dubslow
ff1d4faa74
add new test cases, cleanup astray printf
2014-10-17 09:23:21 -05:00
dubslow
ffb13e4716
add load/save from key instead of pw
2014-10-17 06:02:15 -05:00
dubslow
e6f30694d3
refactor toxencryptedsave to allow passphrase encryption of arbitrary data
...
also a minor API change for clarity
2014-10-08 18:50:40 -05:00
dubslow
eee37b5767
fix #1104
2014-10-07 21:53:04 -05:00
irungentoo
f2a313359e
Added callbacks to onion_client and net_crypto for the temp dht key.
...
Better than the polling mess.
Moved DHT to Messenger from onion_client (still needs some cleanups).
2014-09-26 20:32:38 -04:00
irungentoo
939f2003ef
Removed now useless network sturct size tests.
2014-09-26 18:01:03 -04:00
irungentoo
900d72f951
Fixed test.
2014-09-21 15:15:35 -04:00
irungentoo
c43526be9c
Fixed memory leak.
2014-09-21 14:55:23 -04:00
dubslow
579e7998b7
encrypted save fully work with both libsodium and nacl
...
they both reliably pass "make check"
2014-09-12 21:15:05 -05:00
Dubslow
c26c6d86ae
memzero() segfaulted for unknown reasons... probably pebkac...
2014-09-11 22:42:22 -05:00
Dubslow
26566666aa
testing works, but doesn't pass...
2014-09-11 21:28:50 -05:00
irungentoo
a0302b7aca
Added tests for custom lossy and lossless packets.
...
Fixed bug with lossless packets.
2014-09-08 12:20:44 -04:00
irungentoo
06eff4b44b
Increased number of friends tested in tox_test.
2014-09-04 20:54:55 -04:00
irungentoo
ef78169842
Added disabling of UDP and basic SOCKS5 proxy support to public API.
...
tox_new() now takes a Tox_Options struct as argument.
If a NULL pointer is passed to that struct, defaults are used.
2014-08-14 18:34:20 -04:00
irungentoo
1298932deb
UDP can now be disabled.
...
new_messenger() now takes an options struct as an argument.
2014-08-14 15:27:34 -04:00
irungentoo
78dd2234e0
Added basic socks5 proxy support to TCP client.
2014-08-14 14:31:26 -04:00
irungentoo
bc4fe2c80d
Decreased maximum onion_test test time.
2014-08-13 10:15:25 -04:00
irungentoo
f6955f2f3e
Merge branch 'remove-sort_list' of https://github.com/pyruvate/toxcore
2014-08-09 17:35:23 -04:00
pyruvate
354f08ec3b
Tests fix for an original behavior for duplicates
2014-08-09 13:31:40 +03:00
pyruvate
bdf1c97273
Refactoring of node replacements in addto_lists function
...
An index for replacement candidate is searched
in one lookup cycle for all types (bad, possibly bad, good).
Sorting of items has been removed (sorting logic can be substituted
by a maximum search).
2014-08-09 11:33:20 +03:00
pyruvate
a460b9fbd0
Added tests for addto_lists function
2014-08-09 11:33:20 +03:00
pyruvate
ec9082f2c3
Remove DEFTESTCASE and DEFTESTCASE_SLOW redefinitions
2014-08-09 11:33:20 +03:00
irungentoo
69c8da64cf
The receiver of a file now needs to confirm that he did receive it
...
correctly.
This should fix an issue that happened when both clients got
disconnected when the file was almost finished sending. The sender
would show that the file had been sent successfully when it had not.
See the modifications to tox.h
2014-08-04 15:18:18 -04:00
irungentoo
0719a4296e
Merge branch 'mannol1-master'
2014-08-02 11:29:27 -04:00
mannol
6c1ac97da9
Added userdata pointer to audio/video callbacks
2014-08-02 01:09:33 +02:00
notsecure
c0a7cbbf73
fix test
2014-07-31 15:33:12 -04:00
pyruvate
87dd6becf7
Fix test_many_clients in tox_test
...
Stack variable to_comp goes out of scope,
but a reference to the variable is used later
in Fiend_Requests.
2014-07-28 02:54:43 +03:00
pyruvate
1e5e8eb2e8
Fixed undefined references from libvpx.so in toxav_basic_test
2014-07-27 16:51:45 +03:00
irungentoo
ab4673e873
Merge branch 'mannol1-master'
2014-07-26 21:26:32 -04:00
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