Commit Graph

334 Commits (b0e38c0e7255d1b66703799223405ea100d5e3fc)

Author SHA1 Message Date
Matthew Chen 036c6dca41 Merge branch 'release/2.32.0' 7 years ago
Matthew Chen 973afd041d Merge branch 'hotfix/2.31.1' into release/2.32.0 7 years ago
Matthew Chen b290c9a89f Fix headers for censorship circumvention. 7 years ago
Michael Kirk 128bb9be8c Merge tag '2.32.0.17' 7 years ago
Michael Kirk b6e336a071 Merge tag '2.31.1.0' into release/2.32.0 7 years ago
Michael Kirk 24a19eaaca update REST endpoint ack url 7 years ago
Matthew Chen 8110e0c765 Clean up usage of TSAccountManager. 7 years ago
Michael Kirk 12b916ad36 Merge tag '2.31.0.37' into release/2.32.0 7 years ago
Matthew Chen dacccccf74 Remove UD websocket. 7 years ago
Matthew Chen c2cc74f387 Fix build break. 7 years ago
Matthew Chen 949225d525 Respond to CR. 7 years ago
Matthew Chen bbdeeffc76 Use persistent HTTP connection for UD requests. 7 years ago
Matthew Chen c0e57bb35b Use persistent HTTP connection for UD requests. 7 years ago
Matthew Chen 11f8fcc80f Use persistent HTTP connection for UD requests. 7 years ago
Matthew Chen d71a4c6ff3 Revert "Randomly fail half of all websocket requests."
This reverts commit cae430bac9.
7 years ago
Matthew Chen cae430bac9 Randomly fail half of all websocket requests. 7 years ago
Michael Kirk 7cba367c0a reconcile jobqueue tests with NSTimer based retry 7 years ago
Michael Kirk 79bed93b2d reconcile jobqueue with new readiness based setup 7 years ago
Michael Kirk 27cb91e9c8 Plumb through messageAlbumId so an Attachment knows what album (if any) it
belongs to.
7 years ago
Matthew Chen 57de089118 Add support for album captions to models. 7 years ago
Matthew Chen 1c7add2b8f Respond to CR. 7 years ago
Matthew Chen 39c820b866 Distinguish 'app will/did become ready' events. 7 years ago
Matthew Chen eb2e16872e Distinguish 'app will/did become ready' events. 7 years ago
Matthew Chen f6591fac25 Add debug UI for multi-image sends. 7 years ago
Matthew Chen 40aa78e001 Merge remote-tracking branch 'origin/release/2.31.0' 7 years ago
Matthew Chen 698e48f2d8 Respond to security review. 7 years ago
Michael Kirk c686e766b1 Exception audit, fail directly where intended 7 years ago
Michael Kirk 3a6aafc454 Swift Exception wrap NSData+keyVersionByte 7 years ago
Matthew Chen a5f715eca1 Fix network manager error wrapping. 7 years ago
Michael Kirk ccd30e0e1f more logging 7 years ago
Matthew Chen 7de289f6be Remove SSKUnidentifiedAccess. 7 years ago
Matthew Chen dbe635f721 Try random UD access keys in profile gets. 7 years ago
Michael Kirk 0c2bb439f9 kick-queue upon reachability 7 years ago
Michael Kirk 54c63c7a2e Reachability Singleton 7 years ago
Michael Kirk b8e4bfff86 shuffle isReady->isSetup, centralize starting workStep 7 years ago
Michael Kirk 751b6e5688 documentation for MessageSenderJobQueue 7 years ago
Michael Kirk 037bdebfab clarify backoff delay examples 7 years ago
Michael Kirk 3560f3be5c Durable send operation
TODO
-[x] respect order of queue
-[x] replacements
  -[x] those w/o completion handler
  -[x] basic send+log operation persists
  -[x] send+ui completion
  -[x] share extension
  -[x] update state jobs
-[x] App Lifecyle
  -[x] settable
  -[x] Mark as ready on startup
  -[x] Fail appropriate jobs on startup

NICE TO HAVE
-[x] concurrent per senders
-[ ] longer retry (e.g. 24hrs)
-[ ] App Lifecyle
  -[x] retry failed jobs on startup?
  -[ ] reachability

DONE
-[x] basic passing test
-[x] datamodel
-[x] queue/classes
7 years ago
Matthew Chen 00d79900e4 Fix edge cases around UD v. linked devices. 7 years ago
Matthew Chen d656ae1017 Fix edge cases around UD v. linked devices. 7 years ago
Matthew Chen 2894db0d6e Add request maker. 7 years ago
Matthew Chen 7115d45d08 Changes for UD in production. 7 years ago
Matthew Chen 353f91db64 Respond to CR. 7 years ago
Matthew Chen 2f4094e801 Fix UD auth edge cases. 7 years ago
Matthew Chen 4d89670f19 Fix UD auth edge cases. 7 years ago
Michael Kirk d6a6024f37 Update PromiseKit 7 years ago
Matthew Chen c9922cda3e Respond to CR. 7 years ago
Matthew Chen eb7abdfc64 Account attributes updates. 7 years ago
Matthew Chen f1d93d4472 Merge remote-tracking branch 'origin/release/2.30.2' 7 years ago
Michael Kirk e22ad8ba66 include underlying error in wrapped TSNetworkErrors 7 years ago
Michael Kirk e7170dc6e8 conventional error structure for connectivity error 7 years ago
Matthew Chen 1f37980a0d Suppress UD against production service to avoid de-registration. 7 years ago
Matthew Chen 960b4f537d Suppress UD against production service to avoid de-registration. 7 years ago
Michael Kirk a5db222c7a move ud auth to request factory 7 years ago
Michael Kirk fb2abdcd1a UD auth for profile fetching
Converging with Android, use UnidentifiedAccess getter
7 years ago
Michael Kirk 0be1f8cca2 Move UD auth into request initializers 7 years ago
Matthew Chen 01ca416f42 Fix rebase breakage. 7 years ago
Matthew Chen 2f2b6b071b UD sends over web sockets; update web socket auth for UD. 7 years ago
Matthew Chen 3b06434d4f Split out second web socket. 7 years ago
Matthew Chen c137e95ae5 Move socket manager to hang on SSKEnvironment. 7 years ago
Matthew Chen a697072271 Respond to CR. 7 years ago
Matthew Chen ccb67f49a3 Fix issues in UD send & receive. 7 years ago
Matthew Chen 0b41e5e240 Rework profile fetch to reflect UD changes. 7 years ago
Matthew Chen d08479980d UD send via REST. 7 years ago
Matthew Chen cec8df422e Respond to CR. 7 years ago
Matthew Chen 3eb84ed0e0 Move message processing singletons to SSKEnvironment. 7 years ago
Matthew Chen 4ab281346a Respond to CR. 7 years ago
Matthew Chen 39f1be65f3 Respond to CR. 7 years ago
Matthew Chen 1b1312c455 Clean up ahead of CR. 7 years ago
Matthew Chen 1d40cbfb41 Rework account attributes; persist manual message fetch; add "unrestricted UD" setting. 7 years ago
Matthew Chen b808c2b33b Respond to CR. 7 years ago
Matthew Chen e98c572158 Sketch out sender certificate validation. 7 years ago
Matthew Chen 7fd15d2fd9 Add server certificate methods to UD manager. 7 years ago
Matthew Chen 7d727b7ac9 Modify proto wrapper builders to require required fields. 7 years ago
Matthew Chen 3738155c81 Fix build breakage from SMK. 7 years ago
Matthew Chen 0125535d4d Pull out SignalCoreKit. 7 years ago
Matthew Chen bb5c9ff106 Respond to CR. 7 years ago
Matthew Chen 0884598a3a Fix CDS cookie handling. 7 years ago
Matthew Chen c368aabf9c Fix the "de-register" logic. 7 years ago
Matthew Chen b10bf441c4 Add note about curl cookie support. 7 years ago
Matthew Chen bcb882f5aa Update CDS URLs. 7 years ago
Matthew Chen 39ebdf0921 Log curl command for failed requests in debug builds. 7 years ago
Matthew Chen 83e6484156 Respond to CR. Rework how OWSUploadOperation's networkManager property. 7 years ago
Matthew Chen e1db60c1c0 Rework creation of singletons. 7 years ago
Matthew Chen b883209f91 Refine logging. 7 years ago
Michael Kirk cb55ba57f5 CR: rename classes, no functional changes 7 years ago
Michael Kirk 85d35b52d6 restore PreKey upload failure tracking 7 years ago
Michael Kirk 3df0e72eda Extract SPK rotation and CreatePreKey operations 7 years ago
Michael Kirk 286d3c8ce9 Serialize RefreshKeyOperation
TODO

-[] rotate signed prekey job
-[] verify current prekey w/ server
-[] create keys
7 years ago
Michael Kirk 01811a4891 fix swift method signature 7 years ago
Michael Kirk 1eb05c1d01 remove unused preKeyLastResort 7 years ago
Matthew Chen 9b94580dae Update assertions.
* Streamline precompiled headers.
* Remove obsolete assertions in Constraints.h.
7 years ago
Matthew Chen 3a12446be8 Modify environment accessors to use our 'shared' convention. 7 years ago
Matthew Chen bd05cdc031 Rename TextSecureKitEnv to SSKEnvironment. 7 years ago
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
7 years ago
Matthew Chen f473f60111 Apply OWS log functions in Objective-C. 7 years ago
Matthew Chen cc5a480baa Apply OWS log functions in Objective-C. 7 years ago
Matthew Chen c0d486b1f1 Apply OWS log functions in Objective-C. 7 years ago
Matthew Chen 3a50377902 Apply OWS log functions in Objective-C. 7 years ago
Matthew Chen 713606271c Rename fail macros in Obj-C. 7 years ago
Matthew Chen 5b50e81b4f Rename fail macros in Swift. 7 years ago
Matthew Chen d4f7b5d45b Respond to CR. 7 years ago
Matthew Chen f34bdd34bc Respond to CR. 7 years ago
Matthew Chen cf6f3841a8 Apply new Swift logging. 7 years ago
Michael Kirk 82e559d11b Use swift macros for main thread assert 7 years ago
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
7 years ago
Matthew Chen db3df249bf Merge NSData categories. 7 years ago
Matthew Chen e5eda8b45d Add convenience initializers to proto wrappers. 7 years ago
Matthew Chen 68241e8a0a Respond to CR. 7 years ago
Matthew Chen 67110d0def Migrate to websocket proto wrappers. 7 years ago
Matthew Chen 45e782c243 Revamp orphan data cleaner. 7 years ago
Matthew Chen ab31e5a07f Code generate Swift wrappers for protocol buffers. 7 years ago
Matthew Chen 16e51b8542 Fixup CDS auth properties. 7 years ago
Matthew Chen 4a4edc68e7 Clean up data. 7 years ago
Michael Kirk b860dce7f9 Swift protos for Envelope 7 years ago
Michael Kirk f002f89f2c Update retryable
Per Jeff, don't handle CDS requests yet.
7 years ago
Michael Kirk 558b3bd245 Report contact discovery feedback 7 years ago
Michael Kirk 8c5d6ba9bb Respond to code review. 7 years ago
Michael Kirk b42f528713 Integrate with new contact discovery endpoint
Also:
* use system cookie parsing
* add AESGCM additional authenticated data parameter

// FREEBIE
7 years ago
Matthew Chen bebb8ecfd1 Cycle the socket after linking a new device. 7 years ago
Matthew Chen 75c3b385b2 Respond to CR. 7 years ago
Matthew Chen f2fdb96931 Clean up ahead of PR. 7 years ago
Matthew Chen d7bb2b7505 Remote attestation. 7 years ago
Matthew Chen f3ba6d4c27 Remote attestation. 7 years ago
Michael Kirk b7288b2565 Move contact intersection into batched operation
// FREEBIE
7 years ago
Nancy Mast c2f7c15f72 removed jsq strings, modified MULTIDEVICE_PAIRING_MAX_RECOVERY text and comment 7 years ago
Matthew Chen d14f764b50 Streamline SignalRecipient. 7 years ago
Michael Kirk d591fb7f2c Fix some compiler warnings 7 years ago
Matthew Chen 16a1dcfb77 Respond to CR. 7 years ago
Matthew Chen ac6f78a5fc Tweak message cells. 7 years ago
Michael Kirk e88dc15255 Fix failing assert: only set state on main thread
MessageSender completion queue is not the main queue.

// FREEBIE
7 years ago
Matthew Chen a7d712d1b2 Respond to CR. 7 years ago
Matthew Chen e507256e52 Outage detection. 7 years ago
Matthew Chen c96e2bb8b4 Outage detection. 7 years ago
Matthew Chen 20b1a2606e Outage detection. 7 years ago
Matthew Chen 7f346326f6 Add re-registration UI. 7 years ago
Matthew Chen fc4763673f Improve de-registration checks in socket manager. 7 years ago
Matthew Chen 985f735f1a Track and persist "is de-registered" state. 7 years ago
Matthew Chen d5c738af2f Clean up websocket logging. 7 years ago
Matthew Chen b59140cb3f Revert some of the socket sending logging. 7 years ago
Matthew Chen 3fe63726e0 Improve logging around socket messages. 7 years ago
Matthew Chen e7ca98fcfe Improve logging around socket messages. 7 years ago
Matthew Chen 61ec865b6d Respond to CR. 8 years ago
Matthew Chen 4342b04bd3 Include response data in 'request over websocket' failures. 8 years ago
Matthew Chen 4d498563e7 Unify the socket manager's 'can send requests' logic. 8 years ago
Michael Kirk 966b1ac84b Treat `id` as reserved word, use consistent setter style
// FREEBIE
8 years ago
Matthew Chen d4fe671261 Respond to CR. 8 years ago
Matthew Chen 0a41684374 Respond to CR. 8 years ago
Matthew Chen dc36ae134d Respond to CR. 8 years ago
Matthew Chen 1a441cc40c Respond to CR. 8 years ago