X-Git-Url: https://gitweb.ps.run/matrix_esp_thesis/blobdiff_plain/c471aae81fd534281d5881db9d5a251200005cb3..2130f565861a560c0f5ce98b3cc0c915e241bf79:/examples/SendEncrypted.c diff --git a/examples/SendEncrypted.c b/examples/SendEncrypted.c index a6cedb5..3debeab 100644 --- a/examples/SendEncrypted.c +++ b/examples/SendEncrypted.c @@ -24,13 +24,6 @@ main(void) MatrixClientGenerateOnetimeKeys(&client, 10); MatrixClientUploadOnetimeKeys(&client); - // // get device key - // static char deviceKey[128]; - // MatrixClientGetDeviceKey(&client, - // "ULZZOKJBYN", - // deviceKey, 128); - // printf("device key for %s: %s\n", "ULZZOKJBYN", deviceKey); - // create megolmsession MatrixMegolmOutSession * megolmOutSession; MatrixClientNewMegolmOutSession(&client, @@ -38,22 +31,10 @@ main(void) &megolmOutSession); printf("megolm session id: %.10s... key: %.10s...\n", megolmOutSession->id, megolmOutSession->key); - // // create olmsession - // MatrixOlmSession * olmSession; - // MatrixClientGetOlmSession(&client, - // USER_ID, - // "ULZZOKJBYN", - // &olmSession); - // printf("olm session created\n"); - MatrixClientShareMegolmOutSession(&client, USER_ID, "ULZZOKJBYN", megolmOutSession); - // MatrixClientShareMegolmOutSessionTest(&client, - // USER_ID, - // "ULZZOKJBYN", - // megolmOutSession); MatrixClientSendEventEncrypted(&client, ROOM_ID,