Chris Hall
0590d8325c
removing unnecessary function pointer _isset variables
2013-08-14 17:27:10 +12:00
irungentoo
63efa44dfa
Attempt to quickly fix a test.
2013-08-13 19:36:02 -04:00
irungentoo
06ccdb5b91
Simple XOR checksum added to address.
2013-08-13 19:07:59 -04:00
irungentoo
4132cdff49
clarified comment.
2013-08-13 18:30:14 -04:00
irungentoo
97f449a2f1
Fixed spam problem. (I broke the API so this will not build)
...
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-13 09:32:31 -04:00
Andreas Schneider
6b06431e9b
core: Fix a possible buffer overflow using getself_name().
...
If the passed buffer is smaller than MAX_NAME_LENGTH then, you
will probably overflow it.
2013-08-13 09:50:51 +02:00
alek900
8d3e68b74d
Added support for userdata in callbacks
2013-08-12 14:23:46 +02:00
Chris Hall
4293c4b1e6
Messenger refactor - redid work from pull request 79
...
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-12 21:37:38 +12:00
Maxim Biro
ee95bf08af
Fixed a typo
2013-08-11 16:52:43 -04:00
Maxim Biro
eaa7d3e0a0
Replaced friendstatus with connectionstatus
2013-08-11 14:57:47 -04:00
irungentoo
5024bab930
Merge pull request #400 from JFreegman/master
...
Added actions/alternative type of messages
2013-08-08 12:40:15 -07:00
Jfreegman
8719f46645
added actions/alternate messages
2013-08-08 15:00:30 -04:00
irungentoo
9634a23437
Merge branch 'master' of https://github.com/nurupo/InsertProjectNameHere into nurupo-master
...
Conflicts:
core/Messenger.c
2013-08-08 14:39:27 -04:00
Maxim Biro
f66b6ce50b
Made a callback for Friend.status change
2013-08-08 02:12:19 -04:00
stal
0e03b049d8
Reinstate semicolon
2013-08-07 22:58:39 -07:00
stal
67c2b9fffd
Re-export m_callback_userstatus
2013-08-07 22:05:23 -07:00
Maxim Biro
f669b28a6c
Merge branch 'master' of http://github.com/irungentoo/ProjectTox-Core
...
Conflicts:
core/Messenger.c
core/Messenger.h
2013-08-07 19:18:40 -04:00
Maxim Biro
9801eceaa4
Separated StatusMessage from UserStatus
2013-08-07 18:12:31 -04:00
Sebastian Stal
c0828667e7
Document functions, and fix bug.
2013-08-07 10:06:07 -07:00
Sebastian Stal
105e2fa4a3
Add read receipts using packet ID 65.
2013-08-07 09:53:52 -07:00
Sebastian Stal
b7f989266d
Add functions for dealing with userstatus kinds.
2013-08-05 12:30:07 -07:00
Florian Hahn
5617bf0bf1
Use void for functions with no parameters
2013-08-05 15:57:17 +02:00
charmlesscoin
b114575df8
updated return value comments
2013-08-02 12:35:34 -04:00
charmlesscoin
4b49df896f
added #defines for friend.status as well as for erroring on m_addfriend*
2013-08-02 12:33:11 -04:00
irungentoo
91216719a5
Updated comments.
2013-08-01 20:40:58 -04:00
irungentoo
1b4eea2186
Small fixes.
2013-07-30 19:38:05 -04:00
irungentoo
87388b302e
Merge branch 'master' of https://github.com/blackwolf12333/ProjectTox-Core into blackwolf12333-master
...
Also fixed his pull request.
2013-07-30 14:30:33 -04:00
Peter Maatman
12b19f6910
renamed getname to getfriendname and added a getname function to get the name of our client
2013-07-30 17:09:09 +02:00
irungentoo
deb124f539
Fixed name related functions.
...
They now should give proper lengths and take length into account when
sending.
2013-07-27 21:08:06 -04:00
irungentoo
4edf2207fe
Fixed small astyle problems.
2013-07-27 08:48:50 -04:00
irungentoo
14b43651c1
Ran the code through: astyle --style=linux
2013-07-27 08:43:36 -04:00
Konstantin Kowalski
241aca98bd
A *lot* of style changes.
2013-07-26 23:07:25 -04:00
irungentoo
3d1c77dc57
Added basic Local/LAN discovery.
2013-07-26 10:24:56 -04:00
SilentSand
59b34e423b
Formatting.
...
Many stylistic changes, mostly formatting code more closely to the
coding style.
2013-07-26 04:02:17 -04:00
SilentSand
b9169ff1b2
Small change
2013-07-26 02:43:38 -04:00
SilentSand
f377eb9ca2
Licensing
...
Added the GPLv3 license to some files in addition to fixing some
comments at the beginning of the files.
2013-07-25 21:45:56 -04:00
Astonex
29aa702a4f
Added simple init_networking() error checking
2013-07-24 00:32:50 +01:00
Maxim Biro
52f3b1553f
Added support of linkage with C++ code
2013-07-22 18:06:24 -04:00
irungentoo
55361eac6f
Modified the way friend requests worked.
...
Added routing of friend requests.
2013-07-22 14:52:42 -04:00
jvrv
a72777ed70
fix comments of some files
2013-07-20 00:00:10 -03:00
Sebastian Stal
0de611627d
Move packet IDs to Messenger.h.
2013-07-18 13:58:03 -07:00
Sebastian Stal
b190dc6fbe
Add custom user statuses to core, updated nTox to support nicknames and user statuses.
2013-07-18 10:56:50 -07:00
irungentoo
ad44110fd5
Added nicknames and nickname syncing.
2013-07-18 11:47:27 -04:00
irungentoo
4864cb9edb
Bug fixed, Loading and saving added to core.
2013-07-17 12:07:19 -04:00
irungentoo
11a2bf0878
Fixed 2 small mistakes present in the last pull request.
2013-07-13 18:20:58 -04:00
Maxim Biro
c2fb803ad5
Added conversion from friend_id to client_id
2013-07-13 18:09:17 -04:00
irungentoo
e830861a9d
Use UTF-8 for all the text that is sent/recieved.
2013-07-11 08:54:34 -04:00
irungentoo
0b18dcda6f
Per friend request data added.
2013-07-10 17:31:58 -04:00
irungentoo
f471602d5d
updated TODO
2013-07-10 12:54:39 -04:00
irungentoo
e680d885d7
Delete friends function now works and some other changes.
2013-07-09 20:25:52 -04:00