ylecollen
65352d05aa
->Replace 2 spaces tabs by 4 spaces.
...
->fix the NULL and 0 pointer comparisons mixes
2017-01-03 09:32:59 +01:00
ylecollen
b03cdebfb5
Update the tab size to 4 spaces
2017-01-02 17:10:59 +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
b893b81c82
Simplify signMessageJni
2017-01-02 14:41:54 +01:00
ylecollen
da2e1c5902
setRandomInBuffer : clear tempByteArray content
2017-01-02 14:01:45 +01: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
d741c012f3
identityKeys and oneTimeKeys return Map instead of JSON.
2016-12-21 12:58:00 +01: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
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
04fd4c5a13
Fix the decrypt issue (crash on V5.1.1) when the message to decrypt contains emojis:
...
- add an internal specific JNI function (javaCStringToUtf8()) to perform the UTF-8 conversion
- the SDK is configured to enable/disable the use of javaCStringToUtf8()
2016-11-14 11:56:37 +01:00
pedroGitt
6348a45515
Introduce a new log file (ENABLE_JNI_LOG) to disable/enable logs in JNI side
2016-10-27 18:02:38 +02:00
pedroGitt
31f8fe23c5
Fix random issue: increase random seed precision to micro sec
...
- previously the random seed was seconds based, and it could originate identical identity keys for different OlmAccount
2016-10-27 11:44:33 +02:00
pedroGitt
b0fc867bfe
Update verifyEd25519Signature() unit test: add a test to detect a key length too small
...
- add logs in verifyEd25519SignatureJni() to print the key used
2016-10-26 15:08:39 +02:00
pedroGitt
a6401c72e6
Update olm_matches_inbound_session_(from)() return code processing
2016-10-25 18:14:39 +02:00
pedroGitt
f3d4789b58
Renaming:
...
- generateOneTimeKeys => generateOneTimeKeysJni
- maxOneTimeKeys => maxOneTimeKeysJni
2016-10-25 18:13:44 +02:00
pedroGitt
6b3cb69ded
Fix compiler warnings
...
- for 32bits platform target
- when debug flag is not defined
2016-10-24 17:21:28 +02:00
pedroGitt
acafa69c67
Add possibility to define NDK_DEBUG flag
2016-10-24 17:14:35 +02:00
pedroGitt
3ec91b849b
Add possibility to define NDK_DEBUG flag
2016-10-24 16:51:03 +02:00
pedroGitt
332d9d0c09
Add serialization for inbound group session
...
- remove compiler warnings when logs are not enabled
- new getInstanceId() function to refactor code
2016-10-23 23:55:45 +02:00
pedroGitt
fae857582c
Add serialization for outbound group session
2016-10-21 19:05:20 +02:00
pedroGitt
71f57b79e5
Update android platform to 16
2016-10-21 19:03:18 +02:00
pedroGitt
fb87d8feee
Serialization for OlmAccount and OlmSession OK
2016-10-21 18:09:20 +02:00
pedroGitt
1511962df1
Add serialization feature to OlmAccount
...
- new JNI API: serializeDataWithKeyJni() and initWithSerializedDataJni()
- update account unit test
- modify OlmAccount constructor API: an exception may be thrown
2016-10-20 17:42:57 +02:00
pedroGitt
8b050e5e1e
Local variable renaming
2016-10-20 17:40:20 +02:00
pedroGitt
09fd7246ea
Format update
2016-10-20 17:36:53 +02:00
pedroGitt
0cb45abdf3
Update logs
2016-10-20 17:36:20 +02:00
pedroGitt
a6913c49c2
Fix javadoc header comment
2016-10-18 19:00:23 +02:00
pedroGitt
034fa6be40
- Add new API for OlmUtility
...
- Introducing namespace AndroidOlmSdk
- Fix logs (function names mixed up)
- Add new check based on the calling java object instance type (IsInstanceOf())
- Fix return value for getXXXInstanceId() in case of failure. Now 0 is returned.
2016-10-18 15:59:36 +02:00
pedroGitt
4545b7bc19
Fix "invalid address or address of corrupt passed to dlfree" in 32bits platform devices
2016-10-17 16:53:36 +02:00
pedroGitt
7e69d96afc
Add extra tests to check if the calling JAVA instance is the expected one
2016-10-17 16:48:29 +02:00
pedroGitt
ebfcd03ce5
- Add in/outbound group unit test OK
2016-10-14 18:43:57 +02:00
pedroGitt
1028099550
- Add inbound and outbound group sessions
...
- Modify constructors for inbound and outbound group sessions
- Add new Ecxception class
2016-10-14 15:27:20 +02:00
pedroGitt
57ec6fff88
Temp commit.. adding group session API in progress
2016-10-13 19:21:01 +02:00
pedroGitt
147df845d0
Enbale all ABI platforms
2016-10-13 14:39:44 +02:00
pedroGitt
572c7cd464
Renaming JNI API decryptMessage in decryptMessageJni
2016-10-13 10:44:59 +02:00
pedroGitt
e59ee33b67
Add missing copyright headers
2016-10-13 10:33:43 +02:00
pedroGitt
42c85adbc4
Update function API signatures with macros
2016-10-13 10:27:24 +02:00
pedroGitt
293a12a138
Fix warning compiler
2016-10-13 10:26:27 +02:00
PedroGitt
f88ee7677c
- Fix encrypt API (update lencrypted ength)
...
- Fix warning compiler
2016-10-13 00:19:47 +02:00
pedroGitt
1679c4513f
Temp commit: debug in progress
2016-10-12 19:04:50 +02:00
pedroGitt
f2ca1ce304
- Add OlmSession unit test
...
- Simplify JNI function signatures definition (Account & Session)
2016-10-11 15:53:49 +02:00