Commit Graph

51 Commits

Author SHA1 Message Date
Michael Kirk f52a58e31e Handle known sender 2018-11-16 17:22:40 -06:00
Michael Kirk 6c2dbbc7c3 verify envelope source before proceeding with error handling 2018-11-16 10:32:02 -06:00
Michael Kirk 3bef78335d find -E . -type f -regex ".*\.(m|h|swift)" -exec sed -i "" -e "s/trywrapped_/throwswrapped_/g" {} \; 2018-10-30 11:35:34 -06:00
Michael Kirk cb9aa6304c find -E . -type f -regex ".*\.(m|h)" -exec sed -i "" -e "s/try_/throws_/" {} \; 2018-10-30 11:35:34 -06:00
Michael Kirk 8d823193f1 Exception wrap WhisperMessage for Swift 2018-10-30 11:35:34 -06:00
Michael Kirk 1482c600b4 Exception wrap PreKeyWhisperMessage for Swift 2018-10-30 11:35:34 -06:00
Michael Kirk 60769a3d17 Exception wrap SessionCipher for Swift 2018-10-30 11:35:34 -06:00
Michael Kirk e26db74fcd only check prekeys when decrypting a PKWM 2018-10-29 13:38:59 -06:00
Matthew Chen 9d7c3afdaf Show (threadless) error notifications for UD decrypt failures. 2018-10-16 11:00:38 -04:00
Matthew Chen fab79e2673 Respond to CR. 2018-10-10 09:59:10 -04:00
Matthew Chen 75e59bbc6f Discard self-sent messages during the decryption process. 2018-10-10 09:10:45 -04:00
Matthew Chen e47b69e0aa Send sync messages to self via UD (only); discard self-sent sync messages. 2018-10-10 09:10:45 -04:00
Matthew Chen a697072271 Respond to CR. 2018-10-05 10:32:32 -04:00
Matthew Chen f9e90215b3 Respond to CR. 2018-10-05 09:28:53 -04:00
Matthew Chen ccb67f49a3 Fix issues in UD send & receive. 2018-10-04 11:56:37 -04:00
Matthew Chen c856859fbd Fix build breakage. 2018-10-04 11:56:21 -04:00
Matthew Chen 1b25a18e57 Respond to CR. 2018-10-04 11:50:22 -04:00
Matthew Chen f0b16186cd Respond to CR. 2018-10-03 10:08:45 -04:00
Matthew Chen b8c5e14758 Apply UD trust root value for staging. 2018-10-03 09:34:16 -04:00
Matthew Chen 0c0d2a702e Decrypt incoming UD messages. 2018-10-03 09:32:21 -04:00
Matthew Chen 3eb84ed0e0 Move message processing singletons to SSKEnvironment. 2018-10-03 09:25:29 -04:00
Matthew Chen e1db60c1c0 Rework creation of singletons. 2018-09-19 15:11:26 -04:00
Matthew Chen b883209f91 Refine logging. 2018-09-18 16:35:12 -04:00
Michael Kirk 920a82564f Merge tag '2.29.3.3' 2018-09-15 09:17:08 -05:00
Michael Kirk 2c9d905a16 Message processor ignores messages from blocked group 2018-09-12 19:16:14 -05:00
Matthew Chen 3a12446be8 Modify environment accessors to use our 'shared' convention. 2018-09-07 16:20:41 -04:00
Matthew Chen bd05cdc031 Rename TextSecureKitEnv to SSKEnvironment. 2018-09-07 16:19:00 -04:00
Michael Kirk c7662b5a86 Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics
Going forward, we want to prefer safer asserts, but we don't want to blindly
apply crashing asserts across the codebase
2018-09-07 10:00:48 -06:00
Matthew Chen f473f60111 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen cc5a480baa Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen 3a50377902 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen 713606271c Rename fail macros in Obj-C. 2018-08-27 10:29:51 -04:00
Michael Kirk c05700fd98 Log in OWSFail
step 1: rename OWSFail->OWSFailNoProdLog
step 2: rename OWSProdLogAndFail->OWSFail
step 3: Convert OWSFailNoProdLog->OWSFail where we want logging
step 4: Rename OWSCFail->OWSCFailNoProdLog
step 5: Rename OWSProdLogAndCFail -> OWSCFail
step 6: Convert OWSCFailNoProdLog -> OWSCFail where we want logging
2018-08-09 15:30:19 -06:00
Matthew Chen ab31e5a07f Code generate Swift wrappers for protocol buffers. 2018-08-03 14:05:20 -04:00
Matthew Chen f814157a9e Code generate Swift wrappers for protocol buffers. 2018-08-01 11:20:55 -04:00
Michael Kirk b860dce7f9 Swift protos for Envelope 2018-07-25 13:04:26 -06:00
Matthew Chen cc91cb3dbf Respond to CR. 2018-07-18 13:57:22 -04:00
Matthew Chen 05a4222b2d Streamline SignalRecipient. 2018-07-18 13:57:22 -04:00
Matthew Chen d14f764b50 Streamline SignalRecipient. 2018-07-18 13:57:21 -04:00
Michael Kirk 872c89fbff Update recipient devices on successful decrypt to avoid wasting a valid session
created by sender.

Make device set immutable.
2018-07-13 10:04:54 -06:00
Matthew Chen c5981b164b Notify users of corrupt messages. 2018-04-24 13:41:44 -04:00
Michael Kirk 9c81eb44a1 Replace remaining UI usage of `interaction.description`
// FREEBIE
2018-04-21 19:21:18 -04:00
Matthew Chen 5ce39337ed Handle malformed protos. 2018-04-16 16:15:46 -04:00
Matthew Chen d6f4db1523 Rename TSStorageManager to OWSPrimaryStorage. 2018-03-06 17:12:13 -03:00
Matthew Chen 43765ef3b5 Respond to CR. 2018-02-09 10:31:29 -05:00
Matthew Chen 51cec20c50 Clean up ahead of PR. 2018-02-09 10:31:29 -05:00
Matthew Chen 074046b98e Add protocol context to protocol kit. 2018-02-09 10:31:29 -05:00
Matthew Chen 6e840ff956 Fix build warnings from XCode 9. 2017-11-09 02:52:44 -05:00
Matthew Chen 9573e0e16d Move more work off the main thread.
// FREEBIE
2017-09-28 14:30:27 -04:00
Matthew Chen bfb03c0db4 Fix message processing edge cases.
// FREEBIE
2017-09-21 17:06:08 -04:00