Commit graph

729 commits

Author SHA1 Message Date
ylecollen
b03cdebfb5 Update the tab size to 4 spaces 2017-01-02 17:10:59 +01:00
ylecollen
5e0bbe7702 Rename getUnreleasedCount to isReleased. 2017-01-02 16:29:44 +01:00
ylecollen
47a52dcf41 Use a 4 spaces tabulation 2017-01-02 16:02:17 +01:00
ylecollen
8f3d5bed72 Fix tabulations mix and split block of variables when it is possible. 2017-01-02 15:32:14 +01:00
ylecollen
f4ae0d86c9 getOlmAccountId is aonly public in the OLM SDK package 2017-01-02 15:28:42 +01:00
ylecollen
b893b81c82 Simplify signMessageJni 2017-01-02 14:41:54 +01:00
ylecollen
60bcf865d0 remove useless "new string" 2017-01-02 14:19:22 +01:00
ylecollen
2a7c191d84 identityKeys / oneTimeKeys : remove useless try/catch blocks 2017-01-02 14:18:12 +01:00
ylecollen
b2b182161e Update the README files. 2017-01-02 14:04:53 +01:00
ylecollen
da2e1c5902 setRandomInBuffer : clear tempByteArray content 2017-01-02 14:01:45 +01:00
Richard van der Hoff
bd6ab72ca4 Fix jenkins failure
do npm install before running the js tests
2016-12-23 10:40:17 +00:00
Richard van der Hoff
86b64b653a Bump version numbers throughout 2016-12-22 15:03:00 +00:00
Richard van der Hoff
ac323b738d Update release process instructions 2016-12-22 15:02:43 +00:00
Richard van der Hoff
e71dc46a1e Update CHANGELOG 2016-12-22 14:51:56 +00:00
Richard van der Hoff
90b3613053 Merge pull request #36 from matrix-org/manuroe/olmkit
OLMKit
2016-12-22 14:43:01 +00:00
ylecollen
2593c69a8a Update the copyrights 2016-12-22 11:12:41 +01:00
ylecollen
c3eb050be2 signMessage : the utf8 conversion is done on Java side. 2016-12-21 18:37:34 +01:00
ylecollen
e17eb69048 create a dedicated file for olm_manager. 2016-12-21 17:47:21 +01:00
ylecollen
e6d634f9db move getOlmLibVersionJni to the bottom 2016-12-21 16:31:56 +01:00
ylecollen
2e77e39579 move getOlmLibVersionJni 2016-12-21 16:26:07 +01:00
ylecollen
ffb40326ff Fix a potential memory leak. 2016-12-21 15:17:53 +01:00
ylecollen
643165067f setRandomInBuffer uses java.lang.SecureRandom. 2016-12-21 15:10:54 +01:00
ylecollen
bacdc3c539 Add an encoding type while converting byte[] to string 2016-12-21 13:06:51 +01:00
ylecollen
1c067b1cb6 remove the RTL support by default. 2016-12-21 13:01:12 +01:00
ylecollen
d741c012f3 identityKeys and oneTimeKeys return Map instead of JSON. 2016-12-21 12:58:00 +01:00
Richard van der Hoff
fb91b1f182 Merge pull request #41 from matrix-org/rav/js_tests
Add some tests for the Javascript wrappers
2016-12-20 12:03:07 +00:00
manuroe
46ad79517e OLMKit: More zeroing 2016-12-20 11:46:57 +01:00
ylecollen
c553d18a9a Update the readme files. 2016-12-20 10:42:06 +01:00
ylecollen
2fab6f946e Update the execution mode 2016-12-20 10:10:52 +01:00
manuroe
3540926b98 OLMKit: Reset intermediate buffers to zeroes 2016-12-19 18:10:37 +01:00
Richard van der Hoff
e2e398bd94 Add some tests for the Javascript wrappers
These would have helped avoid the recent FRV.
2016-12-19 09:43:58 +00:00
Richard van der Hoff
819f0d24db Merge pull request #40 from matrix-org/rav/fix_encryption
Avoid buffer overrun on encryption
2016-12-16 15:01:45 +00:00
Richard van der Hoff
8e554ab5ef Avoid buffer overrun on encryption
Make sure we null-terminate encrypted strings before passing them to
UTF8ToString.

This used to work when we allocated the buffer on the stack, because it turns
out that allocate() zeroinits the returned memory. malloc(), of course, does
not.
2016-12-16 14:42:41 +00:00
Richard van der Hoff
7fd63bcac7 Merge pull request #39 from matrix-org/rav/messages_on_heap
Allocate memory for message blobs on the heap
2016-12-15 16:54:39 +00:00
Richard van der Hoff
09b3e1eecd typo 2016-12-15 16:28:30 +00:00
Richard van der Hoff
8356fa37ad zero out plaintext buffers
Avoid leaving copies of the plaintext sitting around in the emscripten heap.
2016-12-15 13:37:34 +00:00
Richard van der Hoff
2e04868c46 Merge pull request #38 from matrix-org/rav/handle_load_exceptions
Better handling of exceptions during loading, and import OLM_OPTIONS
2016-12-14 14:34:39 +00:00
Richard van der Hoff
76610c0a3a Allocate memory for message blobs on the heap
Messages can be very large, so we don't really want to allocate them on the
stack. Switch to using the heap for them, and try to clean up some of the
string handling while we're at it.
2016-12-14 12:05:56 +00:00
Richard van der Hoff
51b141ecb6 Let apps override emscripten settings
Read settings from OLM_OPTIONS to allow apps to configure some options. In
particular, this is useful for setting the heap size.
2016-12-14 11:46:12 +00:00
Richard van der Hoff
1bf807bf33 Better handling of exceptions during loading
If we get an exception during load, don't define half of window.Olm (which
confuses apps).

This is a partial fix to https://github.com/vector-im/riot-web/issues/2726.
2016-12-12 16:52:03 +00:00
pedroGitt
ac0ccb224d Update decryptMessage() API with the error message as an output parameter 2016-11-28 11:56:20 +01:00
pedroGitt
0263cd3039 Remove un used code 2016-11-28 11:53:54 +01:00
manuroe
aa12cbcac2 OLMKit: Make returned NSError provide the raw olm error string (ex:"UNKNOWN_MESSAGE_INDEX") in their NSLocalizedDescriptionKey.
NSLocalizedFailureReasonErrorKey can contain more contextual information.
2016-11-24 11:45:59 +01:00
pedroGitt
d3d3024ea2 Add missing gradle folder 2016-11-24 10:21:12 +01:00
pedroGitt
b3c2015616 Rename JNI API: getOlmLibVersion() => getOlmLibVersionJni() 2016-11-23 09:36:46 +01:00
pedroGitt
e63be97774 Update with master branch => OLM V2.0.0 2016-11-23 01:20:47 +01:00
pedroGitt
7a6897642b Merge remote-tracking branch 'origin/master' into pedroc/android_e2e_dev 2016-11-23 00:04:58 +01:00
pedroGitt
c725a561a2 Add lib version as sufix in the aar file name 2016-11-23 00:01:34 +01:00
manuroe
93926e9047 OLMKit: Fixed warnings in objc wrapper 2016-11-18 11:39:39 +01:00
manuroe
29de7825c9 OLMKit: Update Copyrights 2016-11-17 15:50:23 +01:00