summaryrefslogtreecommitdiff
path: root/toxcore/group.c
AgeCommit message (Collapse)Author
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-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-01-28Add VLA compatibility macro for C89-ish compilers.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".
2016-12-22Wrap all sodium/nacl functions in crypto_core.c.iphydf
2016-10-29Rename some internal "group chat" things to "conference".iphydf
This is to allow new group chats to coexist with old group chats. We do not rename everything in group.[ch] to conference, yet, because it's not currently necessary, and a general internal API overhaul is due at some point anyway.
2016-09-24Make toxcore code C++ compatible.iphydf
It is still C code, so still compatible with C compilers as well. This change lets us see more clearly where implicit conversions occur by making them explicit.
2016-09-21Make group callbacks statelessJfreegman
2016-09-18Make internal chat list function take uint32_t* as well.iphydf
The public one already does this, and the internal one actually assigns `uint32_t`s.
2016-09-17Complete old groupchat conversion to new APIJfreegman
2016-09-17ApiDSL'ing old group chats (now: conference).iphydf
2016-09-16Ensure that all TODOs have an owner.iphydf
In the future, all TODOs added either need a bug number (TODO(#NN)) or a person's github user name. By default, I made irungentoo the owner of all toxcore TODOs, mannol the owner of toxav TODOs, and myself the owner of API TODOs.
2016-09-13Group #include directives in 3-4 groups.iphydf
1. Current module (if C file). 2. Headers from current library. 3. Headers from other library (e.g. toxcore includes in toxav). 4. System headers.
2016-09-10make the majority of the callbacks stateless and add some status to a testcasemichael bishop
2016-09-06Improve static and const correctness.iphydf
- Any non-externally-visible declarations should be `static`. - Casting away the `const` qualifier from pointers-to-const is dangerous. All but one instance of this are now correct. The one instance where we can't keep `const` is one where toxav code actually writes to a chunk of memory marked as `const`. This code also assumes 4 byte alignment of data packets. I don't know whether that is a valid assumption, but it's likely unportable, and *not* obviously correct. - Replaced empty parameter lists with `(void)` to avoid passing parameters to it. Empty parameter lists are old style declarations for unknown number and type of arguments. - Commented out (as `#if DHT_HARDENING` block) the hardening code that was never executed. - Minor style fix: don't use `default` in enum-switches unless the number of enumerators in the default case is very large. In this case, it was 2, so we want to list them both explicitly to be warned about missing one if we add one in the future. - Removed the only two function declarations from nTox.h and put them into nTox.c. They are not used outside and nTox is not a library.
2016-09-06Make friend requests statelessGregory Mullen (grayhatter)
Messenger is slightly twisty when it comes to sending connection status callbacks It will very likely need at the very least a partial refactor to clean it up a bit. Toxcore shouldn't need void *userdata as deep as is currently does. (amend 1) Because of the nature of toxcore connection callbacks, I decided to change this commit from statelessness for connections changes to statelessness for friend requests. It's simpler this was and doesn't include doing anything foolish in the time between commits. group fixup because grayhatter doesn't want to do it "arguably correct" is not how you write security sensitive code Clear a compiler warning about types within a function.
2016-09-02Do not use `else` after `return`.iphydf
http://llvm.org/docs/CodingStandards.html#use-early-exits-and-continue-to-simplify-code
2016-08-31Add braces to all if statements.iphydf
2016-08-18Make tox_callback_friend_name stateless.iphydf
See #27 and #40 for details.
2016-01-27 fix: replace memset with sodium_memzero for sensitive dataRoman Proskuryakov
2016-01-27 fix: compare sensitive data with sodium_memcmpRoman Proskuryakov
fix: make increment_nonce & increment_nonce_number independent of user-controlled input fix: make crypto_core more stable agains null ptr dereference
2015-06-13Fixed warning.irungentoo
2015-06-02Small change.irungentoo
2015-02-17Updated types in Messenger callbacks to fit with the ones in the new api.irungentoo
Friend number changed from int32_t to uint32_t. Some lengths changed to size_t.
2015-02-16Allow empty names and status messages.irungentoo
2015-01-19Fixed gcc warnings.irungentoo
2015-01-09Send lossy packets to less peers.irungentoo
Send them to the two closest peers that we did not recieve the packet from.
2014-12-08Restore compatibility with older group chats.irungentoo
2014-12-08Delete close connection when peer leaves chat.irungentoo
2014-12-06Group stability fixes.irungentoo
2014-12-02Fixed bug where group chat would see connection as offline when it was online.irungentoo
Clarified something in the docs.
2014-12-01Groupchat stability fixes.irungentoo
Query for peers if we were connected to nobody for some reason.
2014-12-01Removed useless code.irungentoo
2014-12-01Prevent joining groupchat more than once.irungentoo
2014-12-01Group chats should be less likely to break.irungentoo
2014-11-30Joining a group chat should be more reliable.irungentoo
Only disconnect from the friend we used to join when we are connected to at least 3 other people.
2014-11-19get peer pubkey apidubslow
2014-11-15Last fix didn't really work well.irungentoo
This one should work better.
2014-11-15Setting groupchat title when the groupchat isn't connected shouldirungentoo
now return success.
2014-11-15Some modifications to the last pull request.irungentoo
2014-11-14add api function to get group titleJfreegman
2014-11-14Group chat title fixes.irungentoo
2014-11-13Merge branch 'titles' of https://github.com/dubslow/toxcoreirungentoo
2014-11-12Properly fixed group av issue.irungentoo
2014-11-12Fixed groupchat bug that caused peers to not connect to each other.irungentoo
2014-11-11Fixed group av issues.irungentoo
2014-11-11Fixed audio groupchat issue.irungentoo
2014-11-11fix type checkingdubslow
2014-11-11public api, finishing tweaksdubslow
2014-11-11add title send to peer senddubslow