summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
AgeCommit message (Collapse)Author
2014-05-08Merge branch 'master' into TCPirungentoo
2014-05-04Added arrays to store packets on send/recv in net crypto.irungentoo
Wrote down more of the protocol. Padding support has been added and implemented which will make it possible for us to pad packets to mitigate length related attacks.
2014-05-02Fixed one test.irungentoo
2014-05-02Messenger now works with the new net_crypto api.irungentoo
Added callbacks in net_crypto for the data packets and status changes. Added onion_getfriend_DHT_pubkey to onion_client. Net crypto isn't done yet so connections between toxes are not lossless, this means file sending is broken hence why the test fails.
2014-05-02Move the handshake creating code to a function.irungentoo
Fixed another instance where it was not sent.
2014-05-02Remove Lossless UDP (This breaks Tox.)irungentoo
2014-04-27Yeah many callsmannol
2014-04-23Properly deallocate friends' status messages in kill_messengerstal
Lightly tested. I'm not sure whether this creates a double-free bug
2014-04-23Major cleanups.irungentoo
Fixed circular dependency between DHT and net_crypto: DHT no longer depends on net_crypto. Moved the crypto request packets functions to crypto core and DHT. Cleaned up/added some defines that can be used to get the true maximum length of things like the friends request message. MAX_DATA_SIZE has been replaced in most places by more appropriate defines.
2014-04-21Fixed a test.irungentoo
Removed function from Messenger.h
2014-04-21Crypto related cleanups.irungentoo
Moved Bunch of functions from net_crypto to crypto_core. decrypt_data_fast and decrypt_data_symmetric were the same thing therefore, removed decrypt_data_fast. Replaced all the crypto_secretbox_* defines with the equivalent crypto_box_* one. New define: crypto_box_KEYBYTES that is equal to crypto_box_BEFORENMBYTES.
2014-04-20Small cleanup.irungentoo
2014-04-19Fixed possible pointer issues.irungentoo
2014-04-16multiple spelling fixesCarlos E. Garcia
2014-04-03Maximum name lengths should now be the real maximum and not one byte less.irungentoo
2014-04-02Some code cleanups.irungentoo
2014-04-01Fixed bug where TOX_FAERR_SETNEWNOSPAM would be returned instead ofirungentoo
TOX_FAERR_ALREADYSENT when re adding a confirmed friend.
2014-03-31tox_group_get_names now returns a list of name lengths along with the list ↵irungentoo
of names. TCP test now also tests pings.
2014-03-21Friends client id is now removed from the request received list when he is ↵irungentoo
deleted.
2014-03-20Fixed other api inconsistency.irungentoo
2014-03-20Fixed an api inconsistency.irungentoo
2014-03-18Fixed issue where other could send a bad userstatus.irungentoo
2014-03-18Fixed warning.irungentoo
2014-03-18Merge branch 'api-fix'irungentoo
Main changes: 1. Strings no longer need to be NULL terminated. 2. tox_get_friend_id is now named tox_get_friend_number. 3. The friend request callback function is now (Tox *tox, uint8_t *, uint8_t *, uint16_t, void *), the Tox object pointer has been added to it.
2014-03-16Friend request callback now contains the Tox object.irungentoo
2014-03-16retain old data file friendlists on loadJfreegman
2014-03-16add api function that gets the last time a friend was seen onlineJfreegman
2014-03-13Fixed bug, unconfirmed friends now load correctly.irungentoo
2014-03-08send_custom_user_packet now returns -1 when friend is offline.irungentoo
2014-03-07Some tox_wait_* improvementsMaxim Biro
2014-03-07Fixed some possible ways connections could linger indefinitely without being ↵irungentoo
killed.
2014-03-06Your userstatus and message are now saved with tox_save().irungentoo
2014-03-06Made save more portable.irungentoo
This should fix the issue of the friends list getting cleared when something in it changes.
2014-03-05Set typing status before calling callback.AZ Huang
2014-02-23Userstatus function fixes.irungentoo
2014-02-23Strings now no longer need to be NULL terminated.irungentoo
2014-02-21Added size functions for names and status messagesMaxim Biro
2014-02-21Some api changes.irungentoo
2014-02-18Astyled and added tests.irungentoo
2014-02-16Typing: Forgot the callback argument types.Jman012
2014-02-16Typing: Changed all return values to int for consistency and the -1 error.Jman012
2014-02-16Fixed user typing bug where it'd alway return an error.Jman012
2014-02-16Added user typing changes in core.Jman012
2014-02-15Added callback for A/V usage.irungentoo
2014-02-15Fixed issue.irungentoo
2014-02-14Added custom userpackets.irungentoo
A way to send and handle lossy UDP packets coming from friends. Will be used for A/V.
2014-02-12All strings should now be forced terminated when received.irungentoo
2014-02-07decrement counter on friend deleteJfreegman
2014-02-07added API function to get online friend countJfreegman
2014-01-20Adjusted some timeouts and fixed possible memory leak.irungentoo