From 486b30a856f1e2e39c9fe8e244eb4e5fb1892e78 Mon Sep 17 00:00:00 2001 From: timoreo Date: Sat, 9 Dec 2023 14:52:38 +0100 Subject: [PATCH] How 2 git --- src/main.cpp | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ead75a2..a13428a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -45,7 +45,7 @@ int main() { if(!stream.is_open()){ // File dosn't exist, log in client = new Matrix::Client("https://matrix.timoreo.fr", "", nullptr); // &s - if (client->login("timoreo-3ds", "***REMOVED***", DEVICE_ID)) { + if (client->login("timoreo-3ds", "", DEVICE_ID)) { // logged in puts("Logged in !!"); std::ofstream ostr{TOKEN_FILENAME, std::fstream::out}; @@ -234,26 +234,5 @@ OlmAccount* load_account(Matrix::Client client){ _olm_encode_base64(overhead + data, fsize, data); olm_unpickle_account(acc, nullptr, 0, data, overhead + fsize); } - return acc; -} - -void make_keys(OlmAccount* acc){ - - // Generate Device Keys - size_t keylen = olm_account_identity_keys_length(acc); - //ssize_t datalen = _olm_encode_base64_length(keylen); - std::unique_ptr identity_keys = std::make_unique(keylen); - olm_account_identity_keys(acc, identity_keys.get(), keylen); - // _olm_decode_base64(identity_keys.get(), datalen, identity_keys.get()); - // Save keys to disk - std::ofstream storage("account-keys"); - storage << identity_keys.get() << std::endl; - storage.close(); - - - - - - return acc; } \ No newline at end of file