#define REFRESH_TOKEN_SIZE 20\r
#define MAX_URL_LEN 128\r
\r
-#define DEVICE_KEY_SIZE 20\r
+#define OLM_IDENTITY_KEYS_JSON_SIZE 128\r
+#define DEVICE_KEY_SIZE 44\r
+#define SIGNING_KEY_SIZE 44\r
\r
#define KEY_SHARE_EVENT_LEN 1024\r
\r
+#define OLM_ACCOUNT_MEMORY_SIZE 7528\r
+#define OLM_ACCOUNT_RANDOM_SIZE 32+32\r
+\r
#define OLM_SESSION_MEMORY_SIZE 3352\r
#define OLM_ENCRYPT_RANDOM_SIZE 32\r
\r
\r
typedef struct MatrixClient {\r
OlmAccount * olmAccount;\r
- OlmSession * olmSession;\r
+ char olmAccountMemory[OLM_ACCOUNT_MEMORY_SIZE];\r
\r
MatrixMegolmInSession megolmInSessions[NUM_MEGOLM_SESSIONS];\r
int numMegolmInSessions;\r
int numDevices;\r
\r
char deviceKey[DEVICE_KEY_SIZE];\r
+ char signingKey[DEVICE_KEY_SIZE];\r
\r
char userId[USER_ID_SIZE];\r
char server[SERVER_SIZE];\r
MatrixClient * client,\r
const char * accessToken);\r
\r
+bool\r
+MatrixClientSetDeviceId(\r
+ MatrixClient * client,\r
+ const char * deviceId);\r
+\r
bool\r
MatrixClientLoginPassword(\r
MatrixClient * client,\r