Commit Graph

4100 Commits

Author SHA1 Message Date
Diadlo ffcee69db9 Extract 'update_client_with_reset' function to reduce code duplication 2017-06-05 02:02:33 +03:00
Diadlo 0eaa44650f Extract 'update_client' function
To make 'client_or_ip_port_in_list' code easy to read
2017-06-05 02:02:31 +03:00
Diadlo 71260e38e8 Extract variables 2017-06-05 01:51:12 +03:00
Diadlo 69c71ddd23 Change return type to be the same as return value type
Return value of 'addto_list' function is 'used' counter, which is uint32_t.
It will be better to use the same return type.
2017-06-05 01:51:12 +03:00
Diadlo 6197494d6b Add using macros to improve code 2017-06-05 01:51:12 +03:00
Diadlo db7b422f0c Add 'index_of' functions
- Replace 'for' with long body
- Replace friend_number function on index_of_friend_pk
- Replace client_in_nodelist on index_of_node_pk
2017-06-05 01:51:12 +03:00
Diadlo b3174bb6c4 Extract SharedKey struct and use it as var instead of indexing 2017-06-05 01:51:11 +03:00
Diadlo c12ef22138 Add using C99 'for' syntax 2017-06-05 01:09:39 +03:00
Maxim Biro b0aec02225 Split daemon's logging backends in separate modules 2017-06-04 16:07:03 -04:00
iphydf 1e8fa85aad Add a monolith_test that includes all toxcore sources.
This requires that every symbol, even if static (file-scope), is unique.
The idea is that we can easily run "whole" program static analysis on
programs that include monolith.h ("whole" is in quotes, as we don't
include dependencies like libsodium in this static analysis).
2017-06-04 17:48:23 +00:00
pranomostro 03f99bde2e Test for memberlist not changing after changing own name.
This test shows that the conference members callback is not invoked when
the own name changes.
2017-06-04 13:40:44 +00:00
iphydf 41850deb43 Factor out strict_abi cmake code into a separate module. 2017-06-04 12:20:35 +00:00
iphydf b782ef5d8e Fix formatting and spelling in version-sync script.
Also some minor reformatting and fixes to the hstox sut driver.
2017-06-04 12:07:43 +00:00
iphydf cda770cfe1 Forbid undefined symbols in shared libraries.
Also a little bit of refactoring:
- Moved add_cflag and friends from CMakeLists.txt to a separate
  AddCompilerFlag module.
- Build the spectest SUT if msgpack is found, even if spectest itself is
  not found, so once it exists, users can run it themselves or
  reconfigure cmake.
2017-06-04 10:08:51 +00:00
iphydf d4be41a3ad Use new encoding of Maybe in msgpack results.
The new encoding is `0` for `Nothing` and `[1, x]` for `Just x`.
2017-06-03 23:32:46 +00:00
iphydf a8866fc17f Make OSX test failures fail the Travis CI build. 2017-05-13 22:26:46 +02:00
pranomostro 7ef27a9105 Make variable names in file saving test less cryptic. 2017-05-13 22:59:50 +02:00
zugz 2474f43087 check if already in close list in ping_node_from_getnodes_ok()
fix index bounds check in add_to_close() and is_pk_in_close_list()

add TODO to write test for bug which fixed by this commit
2017-04-29 18:28:28 +02:00
Robin Lindén f6db9333e2 Release v0.1.8 v0.1.8 2017-04-27 20:20:19 +02:00
Maxim Biro c25e3d2d7c Revert "initial version of tox_loop"
This reverts commit 200ee1cace.
2017-04-22 15:31:25 -04:00
Maxim Biro c7f63737eb Revert "Implement tox_loop"
This reverts commit 5ff099763b.
2017-04-22 15:31:25 -04:00
Maxim Biro 5ed37e5438 Revert "Fix TokTok/c-toxcore#535"
This reverts commit 439f676d45.
2017-04-22 15:31:25 -04:00
Maxim Biro f6285d7a60 Fix markdown formatting 2017-04-19 20:22:28 -04:00
Ansa89 439f676d45 Fix TokTok/c-toxcore#535 2017-04-16 10:49:56 +02:00
Diadlo e565523640 Add test for DHT pack_nodes and unpack_nodes 2017-04-13 20:25:19 +00:00
Diadlo 6c9b95750c Add TCP_INET family to ip comparator 2017-04-13 20:25:19 +00:00
Yuri f751fcfbf6 Added missing includes: <netinet/in.h> and <sys/socket.h>
Found these missing includes while compiling on FreeBSD 11.
2017-04-12 21:35:14 +00:00
Ansa89 5ff099763b Implement tox_loop 2017-04-01 17:47:34 +02:00
michael bishop 200ee1cace initial version of tox_loop 2017-04-01 17:47:34 +02:00
Zoff 124d9e0446 Save android artifacts after CircleCI builds. 2017-04-01 07:37:59 +00:00
iphydf 8d81c5625d Implement missing TES constant functions.
Fixes #503.
2017-03-30 20:18:00 +00:00
iphydf aa2310ad2a Add TOX_NOSPAM_SIZE to the public API.
Fixes #456.
2017-03-30 19:36:43 +00:00
iphydf c780d25e3e Retry autotools tests the same way as cmake tests. 2017-03-26 19:03:43 +00:00
iphydf 9ff60ceb31 Reduce ctest timeout to 2 minutes from 5 minutes.
Fixes #411.
2017-03-26 19:03:25 +00:00
Carsten Brandt d4414ffa3a CMake: install bootstrapd if it is built
if bootstrapd option is enabled the binary should be
installed on `make install`.
2017-03-26 20:17:09 +02:00
Robin Lindén 48c86e942d Release v0.1.7 v0.1.7 2017-03-26 15:42:48 +02:00
Diadlo 3adc2b8f5b Add crypto_memzero for temp buffer 2017-03-26 13:12:34 +00:00
Diadlo c07c61c5ef Fix list malloc(0) bug 2017-03-26 12:51:30 +00:00
Diadlo f675474c08 Fix network malloc(0) bug 2017-03-26 12:40:52 +00:00
Diadlo 50c526e1a5 Move c_sleep to helpers.h and misc_tools.h
Also fix a mistake with forgotten braces around parameter
2017-03-25 20:40:34 +03:00
Carsten Brandt a1f9df48d6 make BUILD_TOXAV and option and fail if dependencies are missing
fixes #482
2017-03-25 17:22:16 +01:00
iphydf 63df16728c Fix appveyor script: install curl.
It should exist according to
https://www.appveyor.com/docs/how-to/download-file/, but in reality it
doesn't, so we install it manually.
2017-03-25 15:56:45 +00:00
Maxim Biro 10deb2ab5f Fix Travis always succeeding despite tests failing 2017-03-12 08:34:53 -04:00
Diadlo c1e3358dcd Fix formatting with astyle
Fix #494
2017-03-04 15:32:00 +03:00
Diadlo f91af5c93a Move 'family' copying after all address checks
Fix #495
2017-03-04 15:32:00 +03:00
Maxim Biro def92ab029 Add test for tox_strncasecmp() 2017-03-01 20:43:30 -05:00
Maxim Biro 61c3b47bef Disable -Wdisabled-macro-expansion
Due to clang's tolower() macro being recursive.
2017-03-01 20:43:30 -05:00
Maxim Biro aaca8251c8 Remove dependency on strings.h 2017-03-01 20:43:30 -05:00
LittleVulpix d4ca2941c5 Remove empty line
Found by chance by Nurupo when browsing the file
2017-02-27 22:14:30 +01:00
Diadlo 1387c8f150 Remove network dependency from toxcrypto 2017-02-26 23:19:24 +03:00