X-Git-Url: https://gitweb.ps.run/matrix_esp_thesis/blobdiff_plain/6646bd126f9faf1e687b203512d29da243acaa90..10325eaf40c80eb91f1c1eceea880c3abd54efd7:/src/matrix.h 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