irungentoo
2de0840d8a
The comments say this function only returns -1 on error, fixed that.
2014-06-16 19:32:23 -04:00
irungentoo
6408c406b2
Added more input validation to add_friend functions.
2014-06-16 19:31:39 -04:00
liuguangzhao
f09171b901
fix func proto
2014-06-16 21:38:22 +00:00
irungentoo
881b2d900d
Fixed some warnings.
2014-06-15 20:49:39 -04:00
irungentoo
750c75a47d
Astyled code.
2014-06-15 10:36:57 -04:00
irungentoo
a38d962b04
Merge branch 'const_correctness' of https://github.com/schuetzm/ProjectTox-Core into schuetzm-const_correctness
2014-06-15 10:29:13 -04:00
irungentoo
1a3d45f83d
Updated toxdns howto.
2014-06-14 11:38:27 -04:00
irungentoo
d6a9ce3175
Fixed some issues in toxdns and added a test.
...
Added request_id.
request_id must be obtained with tox_generate_dns3_string, stored,
then passed to tox_decrypt_dns3_TXT when we want to decrypt the
received response.
2014-06-14 11:31:56 -04:00
irungentoo
9c11c15385
Added toxdns.
...
toxdns currently contains functions to make it easier for clients
to create tox dns3 requests and handle tox dns3 responses: an
encrypted way of querying Tox DNS id servers for Tox ids from
usernames.
2014-06-14 09:54:40 -04:00
Marc Schütz
4940c4c62b
Const correctness for various packet callbacks
2014-06-13 22:55:15 +02:00
Marc Schütz
714b2aeaee
Const correctness in toxcore/group_chats.c
2014-06-13 22:35:44 +02:00
Marc Schütz
920a87be35
Const correctness in toxcore/friend_requests.c
2014-06-13 22:18:37 +02:00
Marc Schütz
5a34595f58
Const correctness in toxcore/onion_client.c
2014-06-13 22:18:18 +02:00
Marc Schütz
6d7a4d3746
Const correctness for toxcore/assoc.c
2014-06-13 22:08:03 +02:00
irungentoo
0b4640a508
Fixed typo.
...
This typo doesn't seem to cause any issue because according to the
code in vanilla NaCl the first crypto_box_ZEROBYTES (for encryption)
and crypto_box_BOXZEROBYTES (for decryption) of the array passed to
the crypto_box*() functions don't need to be zero for it to work.
The documentation however clearly states that they need to be zero
which means they need to be zero.
2014-06-13 15:05:05 -04:00
irungentoo
8d8083b38c
join_groupchat now fails when not direct connected.
2014-06-13 07:11:14 -04:00
irungentoo
c49d74a125
Attempt fix of tox_sync not building on some systems.
2014-06-13 05:38:19 -04:00
irungentoo
a0d50a6090
Updated TODO.
2014-06-12 11:17:24 -04:00
irungentoo
2740099da0
pthread is now a core dependency instead of just a toxav dependency.
...
Fixed possible thread bug with sending A/V packets.
TODO: eventually make toxcore thread safe.
2014-06-12 11:15:20 -04:00
irungentoo
4f2674eb0f
Added ability to set custom lossless packets in Messenger.
2014-06-11 20:01:07 -04:00
irungentoo
63f25f86d3
Fixed segfault when logging was enabled.
...
m->chats[c] can be NULL if more than one group chat is created and
one of the first ones is deleted.
2014-06-11 09:18:14 -04:00
irungentoo
95e896a52e
Added warnings to travis building.
2014-06-10 19:02:43 -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
Marc Schütz
99d5940140
Const correctness in various interdependent files
2014-06-10 20:54:48 +02:00
Marc Schütz
8bdf487d19
Const correctness in toxcore/network.c
2014-06-10 18:54:16 +02:00
Marc Schütz
e651cc9984
Const correctness in toxcore/list.c
2014-06-10 18:42:52 +02:00
Marc Schütz
55d986270b
Const correctness in toxcore/crypto_core.c
2014-06-10 18:38:43 +02:00
Marc Schütz
9e028b243a
Const correctness for toxcore/util.c
2014-06-10 18:27:05 +02:00
irungentoo
890472886c
Removed None becouse it conflicted with the None defined in other
...
headers.
2014-06-10 09:49:59 -04:00
irungentoo
b74922adb0
Removed very old savefile compatibility to cleanup the code.
2014-06-09 20:42:13 -04:00
irungentoo
7a11c10429
Fixed some nTox bugs.
2014-06-08 09:21:37 -04:00
irungentoo
e7faa2cd11
Merge branch 'kitech-ntox'
2014-06-08 08:41:08 -04:00
liuguangzhao
9aa28c10b8
fix nTox cmdline input slow problem.
2014-06-08 14:08:52 +00:00
irungentoo
f2101a7d86
Toxcore closer to building correctly with gcc -std=c99.
2014-06-07 22:56:52 -04:00
irungentoo
99572e944a
IN6_ARE_ADDR_EQUAL was used only once, replaced it.
2014-06-07 19:47:00 -04:00
irungentoo
550fced157
Phone was removed from core a while back.
2014-06-06 23:36:48 -04:00
irungentoo
02f889e52a
Updated documentation.
2014-06-06 23:11:35 -04:00
irungentoo
d540d9f426
Updated outdated crypto doc.
2014-06-06 23:05:35 -04:00
irungentoo
7adefb6e6b
Renamed list functions to fix conflict issue on certain machines.
2014-06-06 13:23:21 -04:00
irungentoo
ac5e44debb
Kill toxes when finished in tox_test to test tox_kill.
2014-06-06 09:50:19 -04:00
irungentoo
2cbfbef6e5
Fixed possible bug in list.
2014-06-06 09:00:12 -04:00
irungentoo
a4ac1497a5
Fixed regression that made packet_send_rate increase even when
...
no data was transmitted.
2014-06-05 19:16:03 -04:00
irungentoo
0b3980fc73
Removed useless code
2014-06-05 18:26:25 -04:00
irungentoo
94a675f3e9
Optimized net_crypto UDP packet sorting using list.
2014-06-05 18:05:17 -04:00
irungentoo
c6d885eede
Merge branch 'mannol1-master'
2014-06-04 19:40:01 -04:00
mannol
11ca389e38
Fixed bug when passing invalid call index
2014-06-05 01:36:01 +02:00
irungentoo
aa256d5858
Doubled minimum transfer rate.
...
File transfers got stuck because it was too low.
2014-06-04 17:55:07 -04:00
irungentoo
dc6f46a240
Request packets are now sent with send_data_packet_helper().
...
This means all data packets are now padded the same way.
2014-06-04 17:35:38 -04:00
irungentoo
b44b58cae4
Added data packet padding to toxcore.
...
Data sent as lossless or lossy is now padded with:
((MAX_CRYPTO_DATA_SIZE - data_length) % CRYPTO_MAX_PADDING) bytes
in order to reduce the possibility of length related attacks.
I set CRYPTO_MAX_PADDING to 8 but it can be changed anytime without
breaking network compatibility between tox cores.
2014-06-04 13:28:56 -04:00