From 07e667e29883740aa0b82199cf0518a2e2684e26 Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 20 Jul 2023 23:15:26 +0200 Subject: cli send encrypted & manage megolm session, save/load megolm sessions --- src/matrix.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/matrix.h') diff --git a/src/matrix.h b/src/matrix.h index 91ed208..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 -- cgit v1.2.3