X-Git-Url: https://gitweb.ps.run/matrix_esp_thesis/blobdiff_plain/10325eaf40c80eb91f1c1eceea880c3abd54efd7..07e667e29883740aa0b82199cf0518a2e2684e26:/src/matrix.h diff --git a/src/matrix.h b/src/matrix.h index 5e5eabd..073f610 100644 --- a/src/matrix.h +++ b/src/matrix.h @@ -115,13 +115,25 @@ bool MatrixMegolmOutSessionInit( MatrixMegolmOutSession * session, const char * roomId); - + bool MatrixMegolmOutSessionEncrypt( MatrixMegolmOutSession * session, const char * plaintext, char * outBuffer, int outBufferCap); +bool +MatrixMegolmOutSessionSave( + MatrixMegolmOutSession * session, + const char * filename, + const char * key); + +bool +MatrixMegolmOutSessionLoad( + MatrixMegolmOutSession * session, + const char * filename, + const char * key); + // Matrix Client @@ -156,6 +168,16 @@ MatrixClientInit( MatrixClient * client, const char * server); +bool +MatrixClientSave( + MatrixClient * client, + const char * filename); + +bool +MatrixClientLoad( + MatrixClient * client, + const char * filename); + bool MatrixClientSetAccessToken( MatrixClient * client, @@ -283,6 +305,7 @@ MatrixClientRequestDeviceKeys( + bool MatrixHttpInit( MatrixClient * client);