summaryrefslogtreecommitdiff
path: root/core/Messenger.h
AgeCommit message (Collapse)Author
2013-08-15Updated comment.irungentoo
2013-08-15Check return value of realloc_friendlist and return FAERR_NOMEM on errorFlorian Hahn
2013-08-14removing unnecessary function pointer _isset variablesChris Hall
2013-08-13Attempt to quickly fix a test.irungentoo
2013-08-13Simple XOR checksum added to address.irungentoo
2013-08-13clarified comment.irungentoo
2013-08-13Fixed spam problem. (I broke the API so this will not build)irungentoo
The friend address is what the byte string that you give away for people to add you will be called. 1. Every friend address now contains a number set by the friend. This is to prevent someone from randomly spamming people in the DHT with friend requests and makes it so you need the person to actually give you the address in some way to send the friend request. This number is expected to be encrypted with the friend request. All requests that do not contain this number will be rejected. This means the spammer can no longer use the DHT to collect lists of valid addresses to spam. It also enables users to quickly change the number in case a spammer gets hold of the address and starts spamming it. 2. A 2 byte checksum will be added (not implemented yet) to prevent people from accidentally adding random strings as friends. (NOTE that this has nothing to do with the spam problem I just decided to add a placeholder for it now.)
2013-08-13core: Fix a possible buffer overflow using getself_name().Andreas Schneider
If the passed buffer is smaller than MAX_NAME_LENGTH then, you will probably overflow it.
2013-08-12Added support for userdata in callbacksalek900
2013-08-12Messenger refactor - redid work from pull request 79Chris Hall
Moves static state out of Messenger.c and into a Messenger struct Purely stylistic, no functional changes were made. This commit also changed all the callers of Messenger as they now have to pass an instance of the Messenger struct to messenger functions. Also removed some uses of the 'static' keyword at the beginning of function definitions when the function was already declared static, as these caused gcc to whine.
2013-08-11Fixed a typoMaxim Biro
2013-08-11Replaced friendstatus with connectionstatusMaxim Biro
2013-08-08Merge pull request #400 from JFreegman/masterirungentoo
Added actions/alternative type of messages
2013-08-08added actions/alternate messagesJfreegman
2013-08-08Merge branch 'master' of https://github.com/nurupo/InsertProjectNameHere ↵irungentoo
into nurupo-master Conflicts: core/Messenger.c
2013-08-08Made a callback for Friend.status changeMaxim Biro
2013-08-07Reinstate semicolonstal
2013-08-07Re-export m_callback_userstatusstal
2013-08-07Merge branch 'master' of http://github.com/irungentoo/ProjectTox-CoreMaxim Biro
Conflicts: core/Messenger.c core/Messenger.h
2013-08-07Separated StatusMessage from UserStatusMaxim Biro
2013-08-07Document functions, and fix bug.Sebastian Stal
2013-08-07Add read receipts using packet ID 65.Sebastian Stal
2013-08-05Add functions for dealing with userstatus kinds.Sebastian Stal
2013-08-05Use void for functions with no parametersFlorian Hahn
2013-08-02updated return value commentscharmlesscoin
2013-08-02added #defines for friend.status as well as for erroring on m_addfriend*charmlesscoin
2013-08-01Updated comments.irungentoo
2013-07-30Small fixes.irungentoo
2013-07-30Merge branch 'master' of https://github.com/blackwolf12333/ProjectTox-Core ↵irungentoo
into blackwolf12333-master Also fixed his pull request.
2013-07-30renamed getname to getfriendname and added a getname function to get the ↵Peter Maatman
name of our client
2013-07-27Fixed name related functions.irungentoo
They now should give proper lengths and take length into account when sending.
2013-07-27Fixed small astyle problems.irungentoo
2013-07-27Ran the code through: astyle --style=linuxirungentoo
2013-07-26A *lot* of style changes.Konstantin Kowalski
2013-07-26Added basic Local/LAN discovery.irungentoo
2013-07-26Formatting.SilentSand
Many stylistic changes, mostly formatting code more closely to the coding style.
2013-07-26Small changeSilentSand
2013-07-25LicensingSilentSand
Added the GPLv3 license to some files in addition to fixing some comments at the beginning of the files.
2013-07-24Added simple init_networking() error checkingAstonex
2013-07-22Added support of linkage with C++ codeMaxim Biro
2013-07-22Modified the way friend requests worked.irungentoo
Added routing of friend requests.
2013-07-20fix comments of some filesjvrv
2013-07-18Move packet IDs to Messenger.h.Sebastian Stal
2013-07-18Add custom user statuses to core, updated nTox to support nicknames and user ↵Sebastian Stal
statuses.
2013-07-18Added nicknames and nickname syncing.irungentoo
2013-07-17Bug fixed, Loading and saving added to core.irungentoo
2013-07-13Fixed 2 small mistakes present in the last pull request.irungentoo
2013-07-13Added conversion from friend_id to client_idMaxim Biro
2013-07-11Use UTF-8 for all the text that is sent/recieved.irungentoo
2013-07-10Per friend request data added.irungentoo