aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-05-16fix group demo to work with Olm.init()Matthew Hodgson
2020-05-16fix 1:1 demo to work with Olm.init()Matthew Hodgson
2020-05-16spell out error msg if you don't Olm.initMatthew Hodgson
2020-05-16fix build on latest emscriptenMatthew Hodgson
2020-05-15remove overzealous -D param to install which breaks build on macOSMatthew Hodgson
2020-05-13add a note about calling Olm.initHubert Chathi
2020-05-07fix type signature of unpickle in Inbound/OutboundGroupSessionHubert Chathi
Thanks to Dominic Fischer for spotting.
2020-05-07Add wasm target to Makefilestoically
Allows building an WASM-ready archive with emscripten. This allows e.g. to compile to the `wasm32-unknown-unknown` target with Rust. Related matrix-rust-sdk PR: https://github.com/matrix-org/matrix-rust-sdk/pull/31 Signed-off-by: stoically <stoically@protonmail.com>
2020-04-29Merge branch 'uhoreg/typescript' into 'master'Hubert Chathi
Add TypeScript definition file See merge request matrix-org/olm!11
2020-04-29add missing declaration for PkDecryption#decrypt and SAS classHubert Chathi
2020-04-24add declarations for Inbound/OutboundGroupSessionHubert Chathi
2020-04-24initial TypeScript definition fileHubert Chathi
2019-11-08Update signing.md to use operatornameRichard van der Hoff
2019-11-08Merge branch 'rav/fix_math' into 'master'Richard van der Hoff
Fix some math blocks See merge request matrix-org/olm!10
2019-11-08Update olm.mdRichard van der Hoff
2019-11-08Update signing.mdRichard van der Hoff
2019-11-08Update megolm.mdRichard van der Hoff
2019-10-23CMakeLists.txt: export include directories in install(TARGETS)Alexey Rusakov
Without that, if olm is installed to a non-standard location, the user code might run CMake configuration fine but further building will fail. Signed-off-by: Alexey Rusakov <Alexey.Rusakov@pm.me>
2019-10-09release 3.1.43.1.4Hubert Chathi
2019-10-09Merge branch 'dbkr/olm_session_describe' into 'master'Hubert Chathi
Add olm_session_describe See merge request matrix-org/olm!9
2019-10-08check return value of snprintf, fix typo, add clarificationHubert Chathi
2019-10-04Pass in a buffer to olm_session_describeDavid Baker
instead of having a static one, as that could end up taking up a lot of memory if your app keeps olm sessions hanging about.
2019-10-01doc stringDavid Baker
2019-10-01Add olm_session_describeDavid Baker
As a way to dump the state of an olm session, ie. the chain indicies, so we can debug why olm sessions break and get out of sync.
2019-09-30Merge branch 'dbkr/emscripten_is_picky_about_pic' into 'master'Hubert Chathi
Build the js objects without PIC See merge request matrix-org/olm!8
2019-09-30Merge branch 'dbkr/wrong_comment_breaks_everything' into 'master'Hubert Chathi
Fix comment and also js build See merge request matrix-org/olm!7
2019-09-30Build the js objects without PICDavid Baker
This confuses emscripten now
2019-09-30Fix comment and also js buildDavid Baker
The python that searches the header files for exports isn't smart enough to know what is a comment and what isn't, so it picks this up too and emscripten then complains about it being undefined.
2019-08-22Merge branch 'rav/megolm_doc_format' into 'master'Hubert Chathi
Update megolm.md See merge request matrix-org/olm!6
2019-08-22Update megolm.mdRichard van der Hoff
2019-08-08Makefile: Overwrite symlinks in install and install-debugTrygve Aaberge
Without this, it's not possible to run the install or install-debug rules multiple times. Signed-off-by: Trygve Aaberge <trygveaa@gmail.com>
2019-07-03Merge branch 'python/drop-hypothesis' into 'master'Hubert Chathi
tests: Drop hypothesis from the python tests. See merge request matrix-org/olm!5
2019-07-03CMakeLists.txt: add env vars to target_include_directoriesAlexey Andreyev
2019-06-24release 3.1.33.1.3Hubert Chathi
2019-06-22Merge branch 'python/unicode_decode_errors' into 'master'Matthew Hodgson
Python unicode decode errors when decrypting. See merge request matrix-org/olm!4
2019-06-20tests: Simplify the input parameter for the Unicode decoding tests.Damir Jelić
2019-06-20tests: Use Unicode literals in the Unicode decoding tests.Damir Jelić
This is needed because the function returns Unicode strings and the comparison will fail under python2 unless Unicode literals are used.
2019-06-20tests: Simplify the sha256 tests for python.Damir Jelić
Hypothesis isn't used anymore and the strings are now constants, meaning that the hashes should never match.
2019-06-20tests: Drop hypothesis from the tests.Damir Jelić
Hypothesis recently had some problems with the typing module breaking the tox tests. Since Hypothesis isn't really used much in the test this patch removes it from them as well as from the test-requirements.
2019-06-20_compat: Make the encoding argument explicit in to_unicode_str().Damir Jelić
2019-06-20olm: Rename the errors function argument in the decryption functions.Damir Jelić
2019-06-19Merge branch 'matthew/define-secrecy' into 'master'Matthew Hodgson
explicitly define backward & forward secrecy See merge request matrix-org/olm!3
2019-06-20fix typo & more wording from lucaMatthew Hodgson
2019-06-19_compat: Remove the now unused native_str.Damir Jelić
2019-06-19_compat: Change the to_native_str into a to_unicode_str function.Damir Jelić
The to_native_str function was supposed to produce Unicode decoded native strings for python2 and python3. Upon further consideration this doesn't make much sense since under python2 it would need to decode the bytes into a Unicode string and turn it back into a python2 str. The ability to use the replacement character requires us to use a Unicode string under python2 as well.
2019-06-19_compat: Remove unused import.Damir Jelić
2019-06-18incorporate review from vdh & lucaMatthew Hodgson
2019-06-18Makefile: Add an isort target.Damir Jelić
2019-06-18olm: Allow decryption functions to define how to handle unicode decode errors.Damir Jelić
This patch changes the decryption functions not to fail if there was an unicode decode error while converting the decrypted bytes plaintext into a native python string. Characters that cannot be decoded as unicode are now replaced with the unicode replacement character (U+FFFD). The old behaviour of raising an UnicodeDecodeError can be achieved by passing the "strict" error handling scheme to the decrypt function.
2019-06-18explicitly define backward & forward secrecyMatthew Hodgson
as it repeatedly trips people up, including me