diff options
| author | Patrick | 2023-07-13 13:44:26 +0200 |
|---|---|---|
| committer | Patrick | 2023-07-13 13:44:26 +0200 |
| commit | 10325eaf40c80eb91f1c1eceea880c3abd54efd7 (patch) | |
| tree | e160ff671e0b4404148b0e389e3d630b62fc191e /src | |
| parent | 6646bd126f9faf1e687b203512d29da243acaa90 (diff) | |
| download | matrix_esp_thesis-10325eaf40c80eb91f1c1eceea880c3abd54efd7.tar.gz matrix_esp_thesis-10325eaf40c80eb91f1c1eceea880c3abd54efd7.zip | |
added esp project
Diffstat (limited to 'src')
| -rw-r--r-- | src/matrix.c | 2 | ||||
| -rw-r--r-- | src/matrix.h | 27 |
2 files changed, 16 insertions, 13 deletions
diff --git a/src/matrix.c b/src/matrix.c index 1d2c3fa..fbcf97e 100644 --- a/src/matrix.c +++ b/src/matrix.c @@ -10,7 +10,7 @@ #define LOGIN_URL "/_matrix/client/v3/login"
#define ENCRYPTED_REQUEST_SIZE (1024*5)
-#define ENCRYPTED_EVENT_SIZE 1024
+#define ENCRYPTED_EVENT_SIZE (1024*10)
#define ROOMEVENT_REQUEST_SIZE 256
#define ROOMEVENT_RESPONSE_SIZE 1024
#define ROOMEVENT_URL "/_matrix/client/v3/rooms/%s/send/%s/%d"
diff --git a/src/matrix.h b/src/matrix.h index a06eab9..5e5eabd 100644 --- a/src/matrix.h +++ b/src/matrix.h @@ -50,18 +50,6 @@ #define NUM_OLM_SESSIONS 10
#define NUM_DEVICES 10
-void
-Randomize(uint8_t * random, int randomLen);
-
-bool
-JsonEscape(
- const char * sIn, int sInLen,
- char * sOut, int sOutCap);
-
-bool JsonSign(
- const char * sIn, int sInLen,
- char * sOut, int sOutCap);
-
// Matrix Device
typedef struct MatrixDevice {
@@ -330,4 +318,19 @@ MatrixHttpPut( char * outResponseBuffer, int outResponseCap,
bool authenticated);
+// util
+
+void
+Randomize(uint8_t * random, int randomLen);
+
+bool
+JsonEscape(
+ const char * sIn, int sInLen,
+ char * sOut, int sOutCap);
+
+bool JsonSign(
+ MatrixClient * client,
+ const char * sIn, int sInLen,
+ char * sOut, int sOutCap);
+
#endif
|
