aboutsummaryrefslogtreecommitdiff
path: root/java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_session.cpp
AgeCommit message (Collapse)Author
2017-01-10Update after a new reviewylecollen
2017-01-10-> Check the function descriptionsylecollen
-> Update the deserialization methods (the jni methods create an object instance before deserializing them.
2017-01-09remove the useless malloc(len+1) + zero terminatedylecollen
2017-01-09use the same way to name the creation method i.e. createNewXX. Avoid the ↵ylecollen
initWithXX.
2017-01-09Simplify the function declarations in olm_jni to avoid having to cast the ↵ylecollen
getXXX methods
2017-01-04The olm objects are serialized as byte[] instead of strings.ylecollen
2017-01-04OlmSession triggers exception when there is a failure.ylecollen
2017-01-04Simplify the serialization / deserializtion methods (CommonSerializeUtils)ylecollen
2017-01-03initInboundSessionWithAccount triggers an exception when it fails.ylecollen
2017-01-03-> the byte[] to String conversions are done on Java level (when it is possible)ylecollen
-> remove javaCStringToUtf8
2017-01-03There is more GetStringUTFChars call.ylecollen
2017-01-03-> simplify OlmSession.DecryptMessageylecollen
-> Always use javaCStringToUtf8 to convert byte array to String
2017-01-03->Replace 2 spaces tabs by 4 spaces.ylecollen
->fix the NULL and 0 pointer comparisons mixes
2016-12-22Update the copyrightsylecollen
2016-12-21setRandomInBuffer uses java.lang.SecureRandom.ylecollen
2016-11-14Fix the decrypt issue (crash on V5.1.1) when the message to decrypt contains ↵AndroidSdk_v0.2.0pedroGitt
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-10-25Update olm_matches_inbound_session_(from)() return code processingpedroGitt
2016-10-24Fix compiler warningspedroGitt
- for 32bits platform target - when debug flag is not defined
2016-10-23Add serialization for inbound group sessionpedroGitt
- remove compiler warnings when logs are not enabled - new getInstanceId() function to refactor code
2016-10-21Add serialization for outbound group sessionpedroGitt
2016-10-21Serialization for OlmAccount and OlmSession OKpedroGitt
2016-10-20Local variable renamingpedroGitt
2016-10-18- Add new API for OlmUtilitypedroGitt
- 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-17Fix "invalid address or address of corrupt passed to dlfree" in 32bits ↵pedroGitt
platform devices
2016-10-14- Add in/outbound group unit test OKpedroGitt
2016-10-14- Add inbound and outbound group sessionspedroGitt
- Modify constructors for inbound and outbound group sessions - Add new Ecxception class
2016-10-13Temp commit.. adding group session API in progresspedroGitt
2016-10-13Renaming JNI API decryptMessage in decryptMessageJnipedroGitt
2016-10-13Fix warning compilerpedroGitt
2016-10-13- Fix encrypt API (update lencrypted ength)PedroGitt
- Fix warning compiler
2016-10-12Temp commit: debug in progresspedroGitt
2016-10-11- Add OlmSession unit testpedroGitt
- Simplify JNI function signatures definition (Account & Session)
2016-10-07- Add decryptMessageJni() to olm_session.cpp APIpedroGitt
- review comments header - refactor utility functions
2016-10-06- Update Unit tests for OlmAccountpedroGitt
- new file olm_utility.cpp to have a stand alone function to initialize/alloc a random buffer - new class OlmMessage - complete OlmSession API with encryptMessage() - comments review - OlmAccount unit tests are green - new gradle to compile the shared lib according to debug mode
2016-10-05First commit adding Olm Lib for AndroidpedroGitt
- Add Android Studio project