]> gitweb.ps.run Git - matrix_esp_thesis/blobdiff - examples/SendEncrypted.c
update Makefile
[matrix_esp_thesis] / examples / SendEncrypted.c
index a6cedb5924c26ac18cacce10c560c7115a395dff..3debeabb2005cafe21a545d0814290a0d2b44b36 100644 (file)
@@ -24,13 +24,6 @@ main(void)
     MatrixClientGenerateOnetimeKeys(&client, 10);\r
     MatrixClientUploadOnetimeKeys(&client);\r
 \r
-    // // get device key\r
-    // static char deviceKey[128];\r
-    // MatrixClientGetDeviceKey(&client,\r
-    //     "ULZZOKJBYN",\r
-    //     deviceKey, 128);\r
-    // printf("device key for %s: %s\n", "ULZZOKJBYN", deviceKey);\r
-\r
     // create megolmsession\r
     MatrixMegolmOutSession * megolmOutSession;\r
     MatrixClientNewMegolmOutSession(&client,\r
@@ -38,22 +31,10 @@ main(void)
         &megolmOutSession);\r
     printf("megolm session id: %.10s... key: %.10s...\n", megolmOutSession->id, megolmOutSession->key);\r
 \r
-    // // create olmsession\r
-    // MatrixOlmSession * olmSession;\r
-    // MatrixClientGetOlmSession(&client,\r
-    //     USER_ID,\r
-    //     "ULZZOKJBYN",\r
-    //     &olmSession);\r
-    // printf("olm session created\n");\r
-\r
     MatrixClientShareMegolmOutSession(&client,\r
         USER_ID,\r
         "ULZZOKJBYN",\r
         megolmOutSession);\r
-    // MatrixClientShareMegolmOutSessionTest(&client,\r
-    //     USER_ID,\r
-    //     "ULZZOKJBYN",\r
-    //     megolmOutSession);\r
 \r
     MatrixClientSendEventEncrypted(&client,\r
         ROOM_ID,\r