Commit graph

237 commits

Author SHA1 Message Date
Johan Pascal
fcc61d1aa5 Switch to sql based zrtp/lime cache
Warning: no migration from old xml cache provided yet
2017-04-01 11:05:08 +07:00
Ghislain MARY
a8418666e4 Fix deprecation warnings. 2017-03-20 11:15:26 +01:00
Benjamin Reis
b18702cf9e to_be_stored_api && do not filter SIP message notified to app 2017-02-28 17:00:29 +01:00
Sylvain Berfini
264bd2b2dc Added simple XOR IM Encryption Engine test/sample 2017-02-21 15:55:38 +01:00
Ghislain MARY
5193bb34e1 Add API to resend a chat message that has not been delivered. 2017-02-21 10:52:17 +01:00
Benjamin Reis
615f9d4e23 Send 200Ok to server if message we can't decrypt to avoid useless retransmission + adaptation of tests to this behavior 2017-02-20 11:19:47 +01:00
Simon Morlat
dbf7675070 fix compilation error without sqlite 2017-02-05 17:41:03 +01:00
Johan Pascal
d0222b5a87 Manage LIME key expiration date 2017-02-05 15:33:12 +07:00
Ghislain MARY
50f4e52966 Store chat message in database before file upload so that if the file upload fails we can try sending the chat message an other time. 2017-02-03 15:29:40 +01:00
Simon Morlat
7fd880bfdf fix crash 2017-02-01 14:22:12 +01:00
Ghislain MARY
b297a4cb1d Rework chat handling.
- Add content type information in LIME encrypted message
 - Single entry point for all types of chat messages that are first decrypted if necessary and then handled according to their content type
 - Add possibility to send chat messages with a content type that is not 'text/plain'
 - Encrypt IMDN
2017-01-31 12:25:12 +01:00
Ghislain MARY
537004730a Add IM notifications tests with lime enabled. 2017-01-24 11:36:02 +01:00
Sylvain Berfini
2b407fabfa Fixes for LIME when used with file body handler (requires belle-sip 1.5.0-133 or newer) 2017-01-18 12:46:14 +01:00
Sylvain Berfini
030b1c05d5 Fixed callback issue with file body handler if file is big enough + improved tester 2017-01-17 11:56:11 +01:00
Simon Morlat
16a6ffcb2c fix leak again 2017-01-16 11:26:43 +01:00
Simon Morlat
656ff43b13 fix most common warnings 2017-01-14 14:13:26 +01:00
Sylvain Berfini
63cc85751c Fixed an issue with LIME and Preferred policy + added tests 2017-01-12 16:40:22 +01:00
Sylvain Berfini
e7213322b1 Fix issue in some RTT tests 2017-01-10 12:12:35 +01:00
Ghislain MARY
9fa30c5c20 Handle error cases in IMDN notifications. 2017-01-09 16:55:16 +01:00
Ghislain MARY
e34327f58f Handle IM notification policy. 2017-01-03 14:56:56 +01:00
Ghislain MARY
f9ae431782 The (is_)read field of a LinphoneChatMessage is now deprecated, the LinphoneChatMessageStateDisplayed state is used instead. 2017-01-03 14:56:17 +01:00
Ghislain MARY
7889b0610b Store weak references of chat messages in the chat room to be able to returned the same LinphoneChatMessage object to the application. 2017-01-03 14:56:17 +01:00
Ghislain MARY
410f5b9e1c Revert message callbacks moved to LinphoneChatRoom instead of LinphoneChatMessage. 2017-01-03 14:56:17 +01:00
Ghislain MARY
9867c2fee7 Send and receive imdn. 2017-01-03 14:56:17 +01:00
Sylvain Berfini
41b9cf9c67 Fix allocs and frees in lime 2017-01-03 12:29:39 +01:00
Sylvain Berfini
97a73f1c60 Added message test 2016-12-20 15:52:27 +01:00
Sylvain Berfini
5eb5ea3473 Fixed RTT character not being freed correctly + RTT test with SRTP failing if SRTP not available 2016-12-15 15:26:09 +01:00
Simon Morlat
5d73bb8232 fix undefined prototypes (makes error in windows build) 2016-12-10 18:20:30 +01:00
Sylvain Berfini
835f9e4334 Clean temporary files created by Message suite in tester 2016-12-07 17:20:48 +01:00
Sylvain Berfini
85d8e09d59 Call IM Encryption Engine outoing & incoming callbacks also for composing messages, but do nothing with lime + test 2016-12-05 12:07:11 +01:00
Simon Morlat
a878da624f fix compilation issues when sqlite storage is disabled 2016-12-03 13:28:14 +01:00
Sylvain Berfini
9a26b72164 Merge remote-tracking branch 'private/dev_im_encryption_engine' 2016-12-01 11:12:10 +01:00
Ghislain MARY
33b72ce6b5 Move public header files in the include/linphone directory. 2016-11-15 14:41:18 +01:00
Sylvain Berfini
8aa812b133 Fixed uploaded file not being encrypted when using file body handler for upload
(requires commit e69a6d2c1b3edb0dff47f072e1cddc6ded06eaba from belle-sip branch dev_body_handler_inception)
2016-11-15 12:21:16 +01:00
Sylvain Berfini
d3333be071 More tests for lime file transfer + few improvements 2016-11-14 16:49:22 +01:00
Sylvain Berfini
e51fee9e5b Fixed some message tests by removing previously downloaded file 2016-11-14 14:39:50 +01:00
Sylvain Berfini
b45e6dcc8d Added remove custom header method for chat message + test 2016-11-14 11:39:10 +01:00
Sylvain Berfini
2a6e7ce241 Added more transfer tests to try all four combinations of upload/download body handlers 2016-11-10 15:56:42 +01:00
Sylvain Berfini
e8258de05b Merge remote-tracking branch 'origin/master' into dev_im_encryption_engine 2016-11-09 18:00:43 +01:00
Sylvain Berfini
7f9c7dcbf9 Added file body handler message tests for non-lime messages as well 2016-11-09 17:45:17 +01:00
Sylvain Berfini
4cb2ddcfad Forgot to commit changes to message_tester 2016-11-09 17:27:53 +01:00
Sylvain Berfini
c284239d54 Added callbacks in im encryption engine for decrypting incoming files in chat messages + improved lime test to check decrypted file is equal to sent one 2016-11-07 16:32:09 +01:00
Simon Morlat
29db7d5fdb fix memory leak 2016-11-05 00:06:51 +01:00
Sylvain Berfini
2c905e4cde Started im encryption engine, process incoming message with lime seems to work 2016-11-04 12:02:23 +01:00
Ghislain MARY
9a23352c4c Stricter compilation options + new compilation error fixes. 2016-10-19 17:31:07 +02:00
Sylvain Berfini
05cf0889ea Revert to old auth_info_requested callback and added a new one instead 2016-09-21 13:03:23 +02:00
Sylvain Berfini
f575f94bb4 Added methods to set TLS certificate/key on LinphoneAuthInfo + updated auth_info_requested callback 2016-09-20 12:44:43 +02:00
Ghislain MARY
7d9a8dfeca Remove wrong #if HAVE_SRTP. 2016-07-19 13:02:43 +02:00
Gautier Pelloux-Prayer
dce962bf58 fix leaks 2016-07-19 12:20:24 +02:00
Ghislain MARY
300c8b8737 Fix build for Windows 10. 2016-07-04 15:20:13 +02:00