summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
AgeCommit message (Collapse)Author
2014-05-17add_tcp_relay_peer() can be used to add relays that we know thatirungentoo
peer is connected to. Some cleanups/fixes.
2014-05-17Added a function to get the DHT public key stored in net_crypto.irungentoo
The DHT public keys in onion_client/net_crypto are synced and set to whichever is more recent. Tox peers now try to connect directly even when already connected with a TCP relay.
2014-05-17Net_crypto can now handle packets sent as TCP OOB packets.irungentoo
Added timestamp to know which DHT public key is good in case onion_client and net_crypto report different ones.
2014-05-16Fixed typo.irungentoo
2014-05-12Fixed some issues.irungentoo
Friends with multiple ips (on LAN) should be handled better. Remade the function to check the crypto connection status.
2014-05-11Fixed issue where callbacks were not set for accepted connection.irungentoo
2014-05-09Fixed small issues.irungentoo
Added set_buffer_end(). File transfer test now checks if pieces arrive correctly.
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-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