Commit Graph

13 Commits

Author SHA1 Message Date
lilia
f308236941 Fix tests
Update in-memory storage implementation to parse full address strings in
saveIdentity. Update usage of saveIdentity, passing in the full address string.
2017-07-02 16:12:07 -10:00
lilia
e68e17c861 Test SessionCipher for encrypt/decrypt identity checks
In order to facilitate generation of session state in these tests, move some
helpers from SessionBuilderTest.js into global namespace of the test page
2017-05-30 14:54:27 -07:00
lilia
ee00f080f4 Resolve true if saveIdentity overwrote a key
Reflect whether a saveIdentity operation reflects a replacement of an existing
key or not. The return value can be used by the caller to decide whether they
should clear sessions for the recipient.
2017-05-26 14:26:35 -07:00
lilia
63d2536263 Support for directional trust
Pass in a direction to isTrusted, based on constants defined by the storage
implementation. These values allow the trust store to determine whether a given
key is trusted, given the directional context.
2017-05-26 14:23:38 -07:00
lilia
3c0d6dc24b Normalize whitespace 2017-03-05 20:36:26 -08:00
lilia
538c7aecce Fix crashes when no preKey is present
Adds a test identical to the 'basic prekey v3' test with the addition of
`delete preKeyBundle.preKey` where appropriate.
2017-02-09 10:53:53 -08:00
lilia
ddba403ef5 Move registrationId from session record to session state
This was mostly used internally by SessionRecord to flag the lack of an
open session, but that can be replaced with an actual check for an open
session.
2016-09-19 20:21:53 -07:00
lilia
ffd60c7d94 Remove duplicate identityKey from SessionRecord
This is redundant to the identity key store, and only used to check
internal consistency between sessions and the 'current' remote identity,
though there's no particular reason we can't keep sessions from previous
identity keys.
2016-09-19 20:21:53 -07:00
lilia
8c5c6b6bb0 Add support for numeric fingerprints 2016-08-23 16:05:53 -07:00
lilia
a42fa1e6e1 Fix vim header comment 2016-07-31 23:20:57 -07:00
lilia
8e97de2701 Add travis 2016-06-15 13:17:10 -07:00
lilia
312efe24a2 Remove padding/unpadding operations
These should be handled at the service/application level.
2016-06-14 19:28:55 -07:00
lilia
bfdf169ad2 Version 1.0.0 2016-06-14 17:36:31 -07:00