Commit Graph

11 Commits (793a7449b0b389876cac587c9e248e39904ebba3)

Author SHA1 Message Date
Michael Kirk 5da7dc1fd3 Archive sessions upon identity change.
Session clearing must be in IdentityKeyStore implementation

Trying to do it in the protocol will not work with multiple devices,
because we'll only archive the session of the first sending device.

// FREEBIE
8 years ago
Michael Kirk 1db9c8b344 prefer archiving vs deleting sessions.
This gives us a little resiliency to handling messages out of order
across key change.

We still *always* print SN when they change.
And we still verify that the session used for encrypt/decrypt is the trusted
session

// FREEBIE
8 years ago
Michael Kirk 806a64ee53 Store session as Immutable to be clear about when it's mutated.
// FREEBIE
8 years ago
Michael Kirk 29e86901e7 Do not cache session objects
Ensure that any uncommitted session mutation doesn't hang around.

// FREEBIE
8 years ago
Michael Kirk 97f93eef7e only assert queues in debug
// FREEBIE
8 years ago
Michael Kirk 513c275107 Log when we delete sessions
// FREEBIE
8 years ago
Michael Kirk 9e74f38095 deprecate unused method
I'd want to spend time validating correctness if we ever wanted to use
this.

// FREEBIE
8 years ago
Michael Kirk 9a444f4288 Assert that session mutation occurs on serial queue
// FREEBIE
8 years ago
Michael Kirk 2dbcfed3ba Mark a stored session as unfresh
in case of YapDB object cache.

// FREEBIE
8 years ago
Michael Kirk f4dfd65840 Debug method to print stored sessions
// FREEBIE
8 years ago
Frederic Jacobs 5d91a5bd4f Init Commit 10 years ago