Commit Graph

398 Commits

Author SHA1 Message Date
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
Carlos E. Garcia
cf33c2f9ad multiple spelling fixes 2014-04-16 12:14:44 -04:00
Steven Noonan
20336c0076 media.h: include 'opus.h' instead of 'opus/opus.h'
The current 'opus/opus.h' works if your opus.h is in /usr/include/opus, as
/usr/include is already in the header search path. If your opus header search
path is found via pkg-config, however, you will get something like this:

  $ pkg-config --cflags opus
  -I/usr/local/Cellar/opus/1.1/include/opus

Since this is pointing directly to include/opus, the 'opus/' prefix on the
header include directive will break.

Since 'opus.h' should work in both cases (as in both cases it will be
discovered via pkg-config), just use the simpler 'opus.h'.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
2014-04-13 20:56:29 -07:00
Steven Noonan
1808c88c79 toxav/Makefile.inc: add LIBSODIUM_* variables to flags
These are needed if libsodium paths are discovered by 'configure'. Most systems
don't need this just because libsodium is already on the header/library search
paths, but on e.g. Mac OS X this is required.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
2014-04-13 20:56:29 -07:00
AZ Huang
416a079134 Fix memory leak. 2014-04-10 06:15:40 +08:00
AZ Huang
e4a5c0ca09 Fix phone.c 2014-04-09 21:43:19 +08:00
Dmitrij D. Czarkoff
6c47b4773a Drop typedef redeclarations
C99 doesn't permit redeclaring typedefs in the same scope.
2014-04-08 11:32:23 +02:00
mannol
6e1a3b5af7 Bug fix 2014-04-07 21:52:32 +02:00
mannol
3f0d6b5778 Codec settings 2014-04-06 23:59:18 +02:00
mannol
9b476ad94f Added test 2014-04-05 17:09:44 +02:00
Maks Naumov
5c49f7d2b9 fix RTPHeader filling by zeros underflow
regression from 6a78e2e71c
2014-03-28 00:29:18 +02:00
irungentoo
07078f731f Merge pull request #817 from mannol1/master
Fixed cancel and added handling of the glare case
2014-03-23 18:09:05 -04:00
mannol
05ddf40f99 Remove header 2014-03-23 22:49:53 +01:00
mannol
6c76aacbbb Why do it even care 2014-03-23 22:48:12 +01:00
mannol
88f286e607 Clare case fix
Wot fix
2014-03-22 19:42:05 +01:00
mannol
6b6dbc15e2 Well this seems to be working 2014-03-22 19:33:56 +01: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
mannol
6a63605501 Comment fix 2014-03-15 02:11:25 +01:00
mannol
e990f05817 Added new callback 2014-03-14 23:10:10 +01:00
mannol
dbc4314bda Invoke callback via invoke_callback func 2014-03-12 00:38:20 +01:00
mannol
9ba7cb7e76 Removed logging to stderr and fixed timeout handling 2014-03-12 00:22:49 +01:00
mannol
54b1dafb0b Changed msi callbacks 2014-03-11 22:59:20 +01:00
mannol
d1fbbae5e9 Added custom callback data and capability identifier 2014-03-11 00:36:47 +01:00
mannol
6a78e2e71c Fixed several bugs and added some features 2014-03-07 03:13:04 +01:00
AZ Huang
7f3e1aec52 Fix libtoxav link error. 2014-03-05 20:04:19 +08:00
mannol
4888d916d0 pkg-config and av 2014-02-23 23:13:38 +01:00
mannol
4f80d2995f Fixed pointer position 2014-02-19 23:15:33 +01:00
mannol
efb070df9f Removed user agent header from msi and updated travis build stuff 2014-02-19 23:12:36 +01:00
irungentoo
354a392d69 Added better documentation to the api, move some defines, fixed a possible issue. 2014-02-19 08:08:55 -05:00
irungentoo
a3904932bf crypto_secretbox_NONCEBYTES is the one to use for the symmetric encryption.
Not currently a big deal since they are the same size, but...
2014-02-19 07:34:44 -05:00
irungentoo
baa4a2f11d Astyled av code. 2014-02-16 20:01:30 -05:00
mannol
f79b327fd6 Fixed build 'error' 2014-02-16 19:11:55 -05:00
mannol
272ed7e6db Moved event to toxav 2014-02-16 19:11:55 -05:00
mannol
b47ae4f595 Try this fix 2014-02-16 19:11:55 -05:00
mannol
3ae37315e1 Added comments... 2014-02-16 19:11:55 -05:00
mannol
393433ce99 Public header ready to go 2014-02-16 19:11:55 -05:00
mannol
292708c336 Started adding public API 2014-02-16 19:11:55 -05:00
mannol
b30b98aa0b Fixed _all_ the issues 2014-02-16 19:11:55 -05:00
mannol
32284546bf Whoops 2014-02-16 19:11:55 -05:00
mannol
82a9d1ddd0 Fixed bug 2014-02-16 19:11:55 -05:00
mannol
faaaa05206 Fixed audio bug and added reason when terminating call 2014-02-16 19:11:55 -05:00
mannol
0a91084011 Added some fixes for payload calculation 2014-02-16 19:11:55 -05:00
Martijnvdc
172f18b5e8 Added fixes to rtp and updated phone 2014-02-01 06:52:48 -05:00
mannol
88f97078a2 Small fix 2014-01-26 21:02:11 +01:00
mannol
142340aa63 Added build system 2014-01-25 14:41:04 +01:00
mannol
81097ffe25 Minor fix 2014-01-25 02:03:24 +01:00
mannol
65d320e31d Done with encryption and core adaptations. 2014-01-25 01:32:33 +01:00