Commit Graph

3968 Commits

Author SHA1 Message Date
iphydf b14b8d07fa Add compatibility pkg-config modules: libtoxcore, libtoxav.
These were generated by the autotools build. Some clients may depend on
these files instead of the newer split pkg-config files. New clients
should be using the toxcore, toxav, toxencryptsave, and toxdns modules.
2016-12-13 20:58:32 +00:00
iphydf 4cf69996cc Add apidsl file for toxencryptsave.
This breaks the toxencryptsave API. It hides the Tox_Pass_Key struct
definition.
2016-12-13 14:24:40 +00:00
sudden6 3cfe5544b1 Fix version compatibility test.
Also added some test cases for it.
2016-12-13 02:06:25 +00:00
iphydf 2dc2ac52b9 Fix --enable-logging flag in autotools configure script.
We also never really tested this, because we run make distcheck, which
does another configure with default flags instead of the ones we passed.

Fixes #317.
2016-12-13 00:52:58 +00:00
Robin Lindén 029c4fb83f Fix padding in SAVED_FRIEND struct and add test.
Test covers saving and loading of a Tox instance with a friend added.
2016-12-13 01:36:28 +01:00
iphydf f208fb53b1 Conditionally enable non-portable assert on LP64.
This only works on LP64. It may fail on Windows, which can be LLP64
(IL32P64).
2016-12-12 19:43:16 +00:00
GDR! ba476e82bb Merge remote-tracking branch 'upstream/master' 2016-12-12 16:59:37 +01:00
GDR! c684499375 Move -ltoxcore to be the first linked library 2016-12-12 14:09:34 +01:00
iphydf c8d7cf5002 Fix off by one error in saving our own status message. 2016-12-10 15:22:06 +00:00
Gregory Mullen (grayhatter) d68505a2d3 net_crypto give handle_data_packet_helper a better name 2016-12-10 03:02:43 -08:00
Maxim Biro 697530af3b Improve toxencryptsave documentation 2016-12-09 03:01:36 -05:00
iphydf d8ae726d0a Don't build nTox by default.
Build it on Travis. It won't be built on the windows builds regardless
of having it enabled globally.

Fixes #292.
2016-12-05 22:02:30 +00:00
Gregory Mullen (grayhatter) d66b3eabd5 rename messenger function, prepend m_ 2016-12-03 13:21:27 -08:00
Maxim Biro f0f53dbd55 Don't error on warnings by default
Having -Werror set by default causes users' builds to fail because
toxcore is not warning-free. Failing on errors is appropriate for the
development phase, e.g. when building it in a CI enviroment, but it
doesn't make much sense to fail builds for users and let them figure out
that they need to pass -DWARNINGS=OFF to make the library build.
2016-11-28 15:13:01 -05:00
Gregory Mullen (grayhatter) d6bad9078b Version Patch v0.0.4 => v0.0.5 v0.0.5 2016-11-24 19:55:45 -08:00
Gregory Mullen (grayhatter) ad517eb1df add NAT hole punching level to Tox API 2016-11-24 17:38:34 -08:00
Ismael Luceno 19711d0fd0 Add knob to suppress building the nTox client 2016-11-23 22:01:50 -02:00
Ismael Luceno 15993d40a4 Add knob to suppress building the toxav test 2016-11-23 22:01:50 -02:00
iphydf 656f0b9112 Support float32 and float64 in msgpack type printer. 2016-11-21 02:25:11 +00:00
Maxim Biro 551660a64a Fix a memory leak in GroupAV 2016-11-20 20:51:48 -05:00
Maxim Biro 44ac196936 Fix NULL pointer dereference in log calls 2016-11-20 20:32:48 -05:00
Maxim Biro a403c996b5 Fix a memory leak in hstox interface 2016-11-20 20:14:53 -05:00
Robin Lindén 6e1a01bd16 Made saveformat platform-independent.
Fixes #215.
2016-11-21 00:28:33 +00:00
iphydf 75a33d2201 Mark Tox_Options struct as deprecated.
We will remove it in v0.1.
2016-11-21 00:16:59 +00:00
iphydf 3bc5ad1c13 Add NONE enumerator to bit mask. 2016-11-20 16:38:30 +00:00
iphydf 878efdc969 Convert to and from network byte order in set/get nospam.
Fixes #205.
2016-11-15 17:56:21 +00:00
Gregory Mullen (grayhatter) 8822f595a8 new_messenger(options ... ) must never be null 2016-11-14 23:37:24 -08:00
iphydf 404042cc2d v0.0.4 v0.0.4 2016-11-14 02:20:25 +01:00
Mikhael-Danilov 06ad5613bc Support arbitrary video resolutions in av_test 2016-11-12 20:10:56 +03:00
iphydf 8bbde23f48 Use apidsl for the crypto_core API.
This allows us to use apidsl features like namespaces to enforce a
naming standard.
2016-11-12 11:55:40 +00:00
iphydf a205b788ad Disable -Wunused-but-set-variable compiler warning flag.
This warning is triggered in `av_test.c`, where we have an open issue.
Silencing the warning locally would make the issue less visible. This
way, we will see the warning when we start removing the `-Wno-*` flags.
2016-11-11 23:31:13 +00:00
endoffile78 8899b69b40 Add DHT_create_packet 2016-11-11 15:53:04 -06:00
iphydf fe1fea82c3 Add decode/encode PlainText test support.
These are implemented in terms of decode/encode CipherText. They do the
exact same thing, since they are both simple length-prefixed byte arrays.
2016-11-11 00:00:37 +00:00
iphydf b2dd50f9fc Work around Travis issue that causes build failures.
Travis seems to no longer set $TERM, which breaks opam. We now manually
set it to some hopefully sane value.
2016-11-10 23:45:48 +00:00
iphydf aed24408db Remove new_nonce function in favour of random_nonce.
`new_nonce` has been an alias for `random_nonce` for a while now. Having
two names for the same operation is confusing. `random_nonce` better
expresses the intent. The documentation for `new_nonce` talks about
guaranteeing that the nonce is different from previous ones, which is
incorrect, it's just quite likely to be different.
2016-11-09 22:30:49 +00:00
iphydf 42dfdf73c1 Add spectest to the cmake test suite.
This allows for easier development. It is not used on travis (yet).
2016-11-08 21:58:26 +00:00
iphydf dd5e69b3bf Disable some gcc-specific warnings.
Also, disable -pedantic on C++, because it's not really useful there,
and causes a lot of warnings on `enum FOO { BAR, };` (comma at end of
enumerator list).
2016-11-08 12:03:20 +00:00
iphydf 2a7bc19004 Release v0.0.3. v0.0.3 2016-11-07 00:56:59 +00:00
iphydf 82515f92ee Move log callback to options.
Previously, all log messages generated by tox_new (which is quite a lot)
were dropped, because client code had no chance to register a logging
callback, yet. This change allows setting the log callback from the
beginning and removes the ability to unset it.

Since the log callback is forever special, since it can't be stateless,
we don't necessarily need to treat it uniformly (with `event`).
2016-11-06 20:35:09 +00:00
iphydf fcc8ad943e Rename log levels to remove the extra "LOG" prefix.
`TOX_LOG_LEVEL_LOG_TRACE` => `TOX_LOG_LEVEL_TRACE`.
2016-11-06 19:54:34 +00:00
iphydf 5019a5aaf9 Change packet kind enum to use hex constants.
Hex constants make it clearer that you can only use 2 nibbles (the two
digits of the number, displayed as two columns in the source code), i.e.
1 byte, for the packet kind. It also makes the bit representation easier
to see.
2016-11-06 15:46:27 +00:00
endoffile78 3f53090c1d Remove assoc 2016-11-06 09:14:53 -06:00
iphydf 7b6b47a610 Enable address sanitizer on the cmake build. 2016-11-06 12:19:34 +00:00
iphydf cf94537266 Enable all possible C compiler warning flags.
We disable the ones that fire, so we can use -Werror. We can then
investigate each warning individually and see whether to fix it or to
keep silencing it.
2016-11-06 01:32:10 +00:00
Gregory Mullen (grayhatter) ee3121c3f6 Convert series of NET_PACKET_* defines into a typedef enum
fixup! TravisCI shorten IRC message
2016-11-05 15:12:04 -07:00
iphydf 64870b6fd2 Move packing and unpacking DHT request packets to DHT module.
These definitely don't belong in a module called "crypto core". The DHT
module seems like the best place to put them, since they are sent to DHT
nodes.
2016-11-03 11:56:29 +00:00
iphydf 96c672aef5 Compile as C++ for windows builds.
Compiling as C++ changes nothing semantically, but ensures that we don't
break C++ compatibility while also retaining C compatibility.

C++ compatibility is useful for tooling and additional diagnostics and
analyses.
2016-11-02 18:50:41 +00:00
iphydf e2d63e0497 Remove unimplemented "time delta" parameter.
In the future, we may want to revisit this parameter, but right now, it
serves no purpose and only confuses tools.
2016-11-02 15:30:40 +00:00
Gregory Mullen (grayhatter) fba3bfa7a4 TravisCI shorten IRC message 2016-10-30 21:04:54 +00:00
Gregory Mullen (grayhatter) 60e15f165e Version Patch v0.0.2 v0.0.2 2016-10-30 11:16:16 -07:00