summaryrefslogtreecommitdiff
path: root/toxcore
AgeCommit message (Collapse)Author
2017-06-05Add using id_equalDiadlo
2017-06-05Update crypto_size and check indexDiadlo
2017-06-05Extract 'update_client_data' to reduce code duplicationDiadlo
2017-06-05Extract 'update_client_with_reset' function to reduce code duplicationDiadlo
2017-06-05Extract 'update_client' functionDiadlo
To make 'client_or_ip_port_in_list' code easy to read
2017-06-05Extract variablesDiadlo
2017-06-05Change return type to be the same as return value typeDiadlo
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-05Add using macros to improve codeDiadlo
2017-06-05Add 'index_of' functionsDiadlo
- 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-05Extract SharedKey struct and use it as var instead of indexingDiadlo
2017-06-05Add using C99 'for' syntaxDiadlo
2017-06-04Add a monolith_test that includes all toxcore sources.iphydf
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-04-29check if already in close list in ping_node_from_getnodes_ok()zugz
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-27Release v0.1.8Robin Lindén
2017-04-22Revert "initial version of tox_loop"Maxim Biro
This reverts commit 200ee1cace2f17537e6982ac447ea65d7c7a00b3.
2017-04-22Revert "Implement tox_loop"Maxim Biro
This reverts commit 5ff099763b1f56414572e1c12eb2f003117db5a0.
2017-04-22Revert "Fix TokTok/c-toxcore#535"Maxim Biro
This reverts commit 439f676d45d75f59f47a000a6adca8e9fe6a6e4e.
2017-04-16Fix TokTok/c-toxcore#535Ansa89
2017-04-13Add TCP_INET family to ip comparatorDiadlo
2017-04-12Added missing includes: <netinet/in.h> and <sys/socket.h>Yuri
Found these missing includes while compiling on FreeBSD 11.
2017-04-01Implement tox_loopAnsa89
2017-04-01initial version of tox_loopmichael bishop
2017-03-30Add TOX_NOSPAM_SIZE to the public API.iphydf
Fixes #456.
2017-03-26Release v0.1.7Robin Lindén
2017-03-26Add crypto_memzero for temp bufferDiadlo
2017-03-26Fix list malloc(0) bugDiadlo
2017-03-26Fix network malloc(0) bugDiadlo
2017-03-12Fix Travis always succeeding despite tests failingMaxim Biro
2017-03-04Fix formatting with astyleDiadlo
Fix #494
2017-03-04Move 'family' copying after all address checksDiadlo
Fix #495
2017-02-27Remove empty lineLittleVulpix
Found by chance by Nurupo when browsing the file
2017-02-26Remove network dependency from toxcryptoDiadlo
2017-02-26Add part of platform-independent network API implementationDiadlo
socket -> net_socket htons -> net_htons htonl -> net_htonl connect -> net_connect sendto -> net_sendto_ip4 getaddrinfo -> net_getipport sa_family_t -> Family
2017-02-21Use VLA macroMaxim Biro
2017-02-11remove statics used in onion comparison functionszugz
2017-01-28Add VLA compatibility macro for C89-ish compilers.iphydf
2017-01-26Release v0.1.6.iphydf
2017-01-26Replace redundant packet type check in handler with assert.Yuri
2017-01-26Add platform-independent Socket and IP implementationDiadlo
2017-01-24Add Android build to CI.Zoff
Fixes #340 Fixes #457
2017-01-22Add appveyor build for native windows tests.iphydf
It doesn't compile, yet. A few changes (like VLA support) need to be made before we can enable appveyor as a required PR check.
2017-01-21reduce thread-unsafe use of static variableszugz
- rework ip_ntoa() to avoid use of static variables - rework sort_client_list() to avoid use of static variables - move static 'lastdump' into Messenger struct - rework ID2String() to avoid use of static variables; rename to id_to_string() - fetch_broadcast_info(): attempt to mitigate risks from concurrent execution - current_time_monotonic(): attempt to mitigate risks from concurrent execution - comment on non-thread-safety of unix_time_update
2017-01-19Release v0.1.5.iphydf
2017-01-19Update license headers and remove redundant file name comment.iphydf
"All rights reserved" was incorrect. The project was licensed under GPL3, which means a lot of rights are licensed to everybody in the world, i.e. not reserved to the "Tox Project".
2017-01-18Setup autotools to read .so version info from a separate fileSergey 'Jin' Bostandzhyan
We want to use the same libtool style .so versions in both build systems, ideally both systems should read the version information from the same configuration file. This commit introduces an so.version configuration file and sets up the autotools to use it. The version numbers in so.version define the ABI compatibility and should be updated prior to each release. implements #323
2017-01-12Release v0.1.4.iphydf
2017-01-11Remove `TOX_DEBUG` and have asserts always enabled.iphydf
These are cheap asserts. I've also replaced the fprintf's with `LOGGER_ERROR` calls.
2017-01-11Check that TCP connections aren't dropped in callbacks.iphydf
They aren't, but it's unclear whether it's structurally impossible.
2017-01-11Fix logging condition for IPv6 client timestamp updates.iphydf
2017-01-10Always kill invalid file transfers when receiving file controls.iphydf
Previously, toxcore would send a kill control to the friend only if the file control was valid. Determining which file transfer is used does not depend on the specific file control. We can always kill it in that case. Also, added some logging for file control logic, since there is no other feedback on error (failure of the file control handler is swallowed).