From b231ec39ba5b9df6288a50204e5dabe9f591c830 Mon Sep 17 00:00:00 2001 From: patrick-scho Date: Sun, 15 Oct 2023 14:11:51 +0200 Subject: use global static buffers to save memory, get Verify example working on ESP32 --- src/matrix.h | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'src/matrix.h') diff --git a/src/matrix.h b/src/matrix.h index d31a7f6..c07c742 100644 --- a/src/matrix.h +++ b/src/matrix.h @@ -47,9 +47,9 @@ #define JSON_ONETIME_KEY_SIGNED_SIZE 256 #define JSON_SIGNATURE_SIZE 256 -#define NUM_MEGOLM_SESSIONS 10 -#define NUM_OLM_SESSIONS 10 -#define NUM_DEVICES 10 +#define NUM_MEGOLM_SESSIONS 2 +#define NUM_OLM_SESSIONS 2 +#define NUM_DEVICES 5 // HTTP @@ -401,7 +401,7 @@ MatrixClientRequestMegolmInSession( const char * deviceId); // TODO: remove deviceId (query all devices) bool -MatrixClientGetOlmSessionIn( +MatrixClientGetOlmSession( MatrixClient * client, const char * userId, const char * deviceId, @@ -415,13 +415,6 @@ MatrixClientNewOlmSessionIn( const char * encrypted, MatrixOlmSession ** outSession); -bool -MatrixClientGetOlmSessionOut( - MatrixClient * client, - const char * userId, - const char * deviceId, - MatrixOlmSession ** outSession); - bool MatrixClientNewOlmSessionOut( MatrixClient * client, -- cgit v1.2.3