Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-02-24 | Fix a bunch of compiler warnings and remove suppressions. | iphydf | |
2018-02-18 | Use `const` more in C code. | iphydf | |
2018-02-14 | Get rid of the only GNU extension we used. | iphydf | |
2018-02-14 | Remove leftover symmetric key from DHT struct. | iphydf | |
2018-01-30 | Use nullptr as NULL pointer constant instead of NULL or 0. | iphydf | |
This changes only code, no string literals or comments. | |||
2018-01-22 | Use <stdlib.h> for alloca on FreeBSD. | iphydf | |
https://www.freebsd.org/cgi/man.cgi?alloca If stdlib.h does not define alloca, and we're using GCC (or Clang), we define the macro ourselves in terms of a GCC builtin. | |||
2018-01-16 | Make DHT a module-private type. | iphydf | |
2018-01-16 | Use apidsl to generate LAN_discovery.h. | iphydf | |
2018-01-16 | Make pack/unpack_ip_port public DHT functions. | iphydf | |
These will be needed for new group chats. | |||
2018-01-14 | Add random_u16 function and rename the others to match. | iphydf | |
2018-01-14 | Use apidsl to generate ping.h. | iphydf | |
The ping.api.h file looks rather ugly, but it works. This is an exercise in finding the complete set of use cases needed from apidsl for toxcore. We'll try to make things work as much as possible, and then make apidsl better and make the .api.h files pretty. | |||
2018-01-13 | Make Ping_Array a module-private type. | iphydf | |
2018-01-10 | Fix formatting in some C files. | iphydf | |
Also replace &(x) with &x for consistency. | |||
2017-09-17 | reset hole-punching parameters after not punching for a while | zugz | |
2017-08-24 | Remove useless 'to_net_family' and 'to_host_family' | Diadlo | |
2017-08-24 | Add platform independent constants | Diadlo | |
2017-08-24 | AF_INET -> TOX_AF_INET | Diadlo | |
2017-06-05 | Change way to iterate through assoc | Diadlo | |
2017-06-05 | Make work with assoc more generic | Diadlo | |
2017-06-05 | Improve formatting and syntax | Diadlo | |
2017-06-05 | Cleanup punch_holes | Diadlo | |
2017-06-05 | Add using id_equal | Diadlo | |
2017-06-05 | Update crypto_size and check index | Diadlo | |
2017-06-05 | Extract 'update_client_data' to reduce code duplication | Diadlo | |
2017-06-05 | Extract 'update_client_with_reset' function to reduce code duplication | Diadlo | |
2017-06-05 | Extract 'update_client' function | Diadlo | |
To make 'client_or_ip_port_in_list' code easy to read | |||
2017-06-05 | Extract variables | Diadlo | |
2017-06-05 | Change return type to be the same as return value type | Diadlo | |
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 | Add using macros to improve code | Diadlo | |
2017-06-05 | Add 'index_of' functions | Diadlo | |
- 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 | Extract SharedKey struct and use it as var instead of indexing | Diadlo | |
2017-06-05 | Add using C99 'for' syntax | Diadlo | |
2017-06-04 | Add 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-29 | check 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-03-26 | Add crypto_memzero for temp buffer | Diadlo | |
2017-02-26 | Add part of platform-independent network API implementation | Diadlo | |
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-21 | Use VLA macro | Maxim Biro | |
2017-02-11 | remove statics used in onion comparison functions | zugz | |
2017-01-28 | Add VLA compatibility macro for C89-ish compilers. | iphydf | |
2017-01-26 | Replace redundant packet type check in handler with assert. | Yuri | |
2017-01-21 | reduce thread-unsafe use of static variables | zugz | |
- 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-19 | Update 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-11 | Remove `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-11 | Fix logging condition for IPv6 client timestamp updates. | iphydf | |
2017-01-07 | Replace make_quick_sort with qsort | endoffile78 | |
2017-01-06 | Eliminate dead return statement. | iphydf | |
Previously, the `ipv6` variable was initialised to `-1`, but that value was never read. Either it was set to 0 or 1, or the function would return before it was read. Thus, I've changed it to uninitialised `bool is_ipv4` (inverted semantics to avoid negative conditions `if (!is_ipv6)`). The `pack_ip_port` function is a bit unfortunate, but I'm not rewriting it until we have a binary writer (I'd be rewriting it twice). | |||
2016-12-22 | Improve documentation of crypto_core. | iphydf | |
2016-12-22 | Wrap all sodium/nacl functions in crypto_core.c. | iphydf | |
2016-11-24 | add NAT hole punching level to Tox API | Gregory Mullen (grayhatter) | |
2016-11-11 | Add DHT_create_packet | endoffile78 | |