summaryrefslogtreecommitdiff
path: root/core/friend_requests.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-21more ID extractionMichael Rose
2013-08-20astyle --options=tools/astylerc -r ./*.{c,h}irungentoo
2013-08-20More refactoring done.irungentoo
2013-08-19Some refactoring done.irungentoo
2013-08-16Passed everything through astyle.irungentoo
2013-08-15Merge pull request #471 from krisl/masterirungentoo
Add spam length to data length
2013-08-15Fixed loading and a small problem with the length of crypto requests.irungentoo
2013-08-16Add spam length to data length in comparison against max sizeAaron Lipinski
2013-08-14Metadata collection prevention part 1 of ???.irungentoo
Crypto requests packets are packets that can be routed by nodes in the DHT. In this pull request I have merged both Natping requests and friend requests into one common packet (Crypto request packets). Both these packets should now only be distinguishable by the size of the data in them to an outside observer for an example on how to send and recieve data with these packets see: friend_requests.c Note that these packets are prefixed with id 32 (friend request packets) which means this change is compatible with the currently running DHT bootstrap servers. Also changed small thing in DHT_test.c
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-12Added support for userdata in callbacksalek900
2013-08-10tabs -> spacesslvr
2013-08-10network_registerhandlerslvr
2013-08-09Fix a recurring typo in code and comments.Christian Brueffer
2013-08-05Fix bug where friendreq_handlepacket did not do bounds checkingNick ODell
2013-07-27Ran the code through: astyle --style=linuxirungentoo
2013-07-26A *lot* of style changes.Konstantin Kowalski
2013-07-26Fix braces and a commentsometwo
2013-07-26Fixed the multiple friends request recieved at the same time problem.irungentoo
2013-07-26Formatting.SilentSand
Many stylistic changes, mostly formatting code more closely to the coding style.
2013-07-25LicensingSilentSand
Added the GPLv3 license to some files in addition to fixing some comments at the beginning of the files.
2013-07-22Modified the way friend requests worked.irungentoo
Added routing of friend requests.