summaryrefslogtreecommitdiff
path: root/toxcore
AgeCommit message (Collapse)Author
2019-09-06fix concurrency issues in mono_timesudden6
Since mono_time is accessed from the main thread as well as the toxav thread it is needed to properly lock time updates.
2019-08-04fix overflow in peer nick lensudden6
2019-08-04fix missing group title length checksudden6
This fixes a buffer overflow when a malformed *.tox save file is loaded.
2019-05-30Release 0.2.10Robin Lindén
2019-05-19add configurable limit on number of stored frozen peerszugz (tox)
2019-05-01Do not send the same packet to the same node twice.Evgeny Kurnevsky
2019-02-10Expose api functions for enabling and disabling AV in AV groupszugz (tox)
A group loaded from a savefile starts with AV disabled.
2019-01-21Specify that buffer size for tox_conference_peer_get_name is given by $sizezugz (tox)
2019-01-12Release 0.2.9Robin Lindén
2019-01-12Add some const qualifierszugz (tox)
(Implementing suggestions of sudden6)
2019-01-12Implement all min/max functions for (un)signed int types.iphydf
Also, use them in the `onion_client` module.
2019-01-10Fix misaligned 4-byte access in trace logging.iphydf
This code is undefined behaviour as is, and breaks on various platforms requiring strict alignment (many microcontrollers).
2019-01-07Avoid sending group messages to a peer before we have its group numberzugz (tox)
2019-01-06Improve handling of peers entering and leaving conferenceszugz (tox)
* send freeze packet on quit * delete existing peers with same real_pk on adding a peer * record actual number of conference peers saved
2019-01-05Expose offline conference peers in APIzugz (tox)
2019-01-03Define tox_conference_id_size and tox_conference_uid_sizezugz (tox)
Closes #1264
2019-01-03Fix indices calculation for congestion control.Evgeny Kurnevsky
2019-01-03Added test and patch for VLA stack overflow vuln.zoff99
Also added and used the new crypto_malloc and crypto_free. The latter also zeroes out the memory safely. The former only exists for symmetry (static analysis can detect asymmetric usages).
2018-11-29Implement conferences savingzugz (tox)
* add global friend_connection status callback, used for group rejoining * stop leaving groups on killing tox
2018-11-23Return TOX_ERR_CONFERENCE_SEND_MESSAGE_NO_CONNECTION if we are not connected ↵zugz (tox)
to any peers
2018-10-31Add some hopefully helpful documentation to the functions in mono_time.hzugz (tox)
(I found I couldn't remember whether get_mono_time returned unix time or not, and had to source-dive to find out. This should make that unnecessary next time!)
2018-10-24Change method of PK production for fake friend in DHTNamsooCho
2018-10-20Make saving and loading the responsibility of Tox rather than Messengerzugz (tox)
2018-10-19Add `LOGGER_ASSERT` for checking fatal error conditions.iphydf
These are not compiled out under `NDEBUG` and should be provably correct.
2018-10-16Support DragonFlyBSD and prune unused variables.Leonid Bobrov
2018-10-11ensure save data unchanged after save and loadzugz (tox)
2018-10-09Consistently use camel case enum names.iphydf
Including in tests and implementation files.
2018-10-08Add LAN_discovery to the list of apidsl-generated files.iphydf
So it gets regenerated when the .api.h file changes.
2018-10-07Release 0.2.8Robin Lindén
2018-10-07Make sure logger levels stay in sync across filesMaxim Biro
2018-10-07Fix memleak in tcp server by wiping priority queues on deletionzugz (tox)
2018-09-26Remove a function-like macro and replace it with a function.iphydf
No use making this a macro. LTO will inline this anyway, if we care about performance. Generally, we avoid function-like macros that can be functions.
2018-09-26Use new `@pthread` library from Bazel for Windows compat.iphydf
See https://github.com/TokTok/toktok-stack/pull/38.
2018-09-25Combine last_reported_announced with last_seen in Onion_Friendzugz (tox)
This resets friend search rate in two circumstances where it should be reset: * When the friend gets a dhtpk packet to us; * When a friend connection to the friend goes down.
2018-09-24Add Cirrus CI configuration.iphydf
This CI can run Bazel tests, because it supports IPv6. This is nice, because now we can run IPv6 tests on every PR.
2018-09-20Send rejoin packets on conference disconnectionzugz (tox)
We were mistakenly not making a rejoin attempt on freezing connections due to all closest connections going down. This fixes that, and tweaks the test. I've still only done tens rather than hundreds of tests, but I'm fairly confident that the conference test now consistently passes.
2018-09-19Fix typosyangfl
2018-09-16Fixed a silly boolean practice using uint8_thugbubby
2018-09-14Standardise header guards.iphydf
Using the full path including the repo name.
2018-09-14Use C++ style casts in C++ code.iphydf
2018-09-10Assert that we don't kill tox before killing toxav.iphydf
Possibly this is what's happening in #1149.
2018-09-08Fix typo: tcp_replays -> tcp_relays.iphydf
2018-09-07Add messenger state plugin system.iphydf
This is for modules like groups to hook into to have their own state management in the `tox_savedata` format.
2018-09-06Avoid recursion in `ip_is_lan` and `ip_is_local`.iphydf
2018-09-06Ignore "unused-result" warning in super_donators code.iphydf
2018-09-05Add mechanism for recovering from disconnections in conferenceszugz
* add freezing and unfreezing of peers * add rejoin packet * revise handling of temporary invited connections * rename "peer kill" packet to "peer leave" packet * test rejoining in conference test * use custom clock in conference test
2018-09-03Avoid use of global mutable state in mono_time on win32.iphydf
This uses a trick to get read-write access to `this` from a `const` member function, similar to C++ `mutable`, but uglier.
2018-08-30Remove the use of `CLOCK_MONOTONIC_RAW`.iphydf
The raw clock isn't subject to NTP adjustments. It may run less accurately than the regular monotonic clock. I see no reason why raw would be better for tox than the normal one. This avoids one piece of OS-specific ifdef'd code.
2018-08-30Clean up `add_to_list` function a bit.iphydf
Can't trivially get rid of recursion here, since it's a non-linear recursive function.
2018-08-30Release 0.2.7Robin Lindén