summaryrefslogtreecommitdiff
path: root/core/Messenger.c
AgeCommit message (Collapse)Author
2013-08-24Rename core directory because of autoconf name clashjin-eld
While doing the checks configure might generate "core" files and will then try to remove them. Having a "core" directory generates an error while runing the configure script. There's no workaround but to rename the core directory.
2013-08-22init_cryptopacket is now called by new_DHT.irungentoo
2013-08-20astyle --options=tools/astylerc -r ./*.{c,h}irungentoo
2013-08-20Fixed DHT_test.c and added some checks.irungentoo
2013-08-20Refactor of core done.irungentoo
2013-08-20More refactoring done.irungentoo
2013-08-19Some refactoring done.irungentoo
2013-08-19Prevented possible MITM attack.irungentoo
Friends must now send to themselves at least one encrypted ping packet every 5 seconds. If no encrypted ping packets are recieved from a friend within 10 seconds the connection is killed.
2013-08-18Properly fixed possible realloc with size zero problem.irungentoo
2013-08-18Ran it through astyleSean Qureshi
2013-08-18Added minor error checking in Core, this helps prevent CERT MEM04-C; CWE-131Sean Qureshi
2013-08-18Fixed a core memory leakSean Qureshi
2013-08-17Fixed bug.irungentoo
2013-08-17Added dynamic memory allocation to crypto connections.irungentoo
Also fixed some possible bugs in Messenger.c
2013-08-17Messenger stores / loads nicknameMichael Rose
new toxic command to show nickname (mynick)
2013-08-16Metadata collection prevention part 2 of ???irungentoo
Improved friend request sending. As a side effect friend requests should now be routed less than before. See added comments for details.
2013-08-16Passed everything through astyle.irungentoo
2013-08-15Fixed loading and a small problem with the length of crypto requests.irungentoo
2013-08-15Check return value of realloc_friendlist and return FAERR_NOMEM on errorFlorian Hahn
2013-08-14Messenger fix from pr #461.irungentoo
2013-08-14fixing minor memory leak of friendlistChris Hall
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-13Friend requests with different nospam fix and added saving/loading of nospam.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-13Merge pull request #441 from slvr/timerirungentoo
Timer Subsystem
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-12Resolve Merge Conflictslvr
2013-08-12Merge remote-tracking branch 'upstream/master' into timerslvr
Conflicts: core/Messenger.c
2013-08-12remember to call timer_pollslvr
2013-08-12Messenger Timerslvr
2013-08-12Added LAN discovery timerslvr
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-11Send our current status and name to friend that just came online.alek900
Our username and status might have changed while our friend was offline.
2013-08-11Fixed a mistakeMaxim Biro
2013-08-11Replaced friendstatus with connectionstatusMaxim Biro
2013-08-11Merge pull request #429 from dparnell/pristineirungentoo
Fixed m_sendmessage to return the ID of the message sent
2013-08-11Fixed m_sendmessage to return the ID of the message sentDaniel Parnell
2013-08-11m_addfriend triggerd m_callback_friendstatus with a friendid thats not ↵alek900
returned yet from m_addfriend
2013-08-10Merge remote-tracking branch 'upstream/master' into prslvr
2013-08-10tabs -> spacesslvr
2013-08-09Fixed possible bug.irungentoo
2013-08-10Updated initMessengerslvr
2013-08-10network_registerhandlerslvr
2013-08-09Returned the length checkMaxim Biro
2013-08-09Introduced data pointer and data_lengthMaxim Biro
2013-08-09Changed the way statusmessage is allocatedMaxim Biro