aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tde2e/td/e2e/e2e_api.cpp6
-rw-r--r--tde2e/td/e2e/e2e_api.h3
-rw-r--r--tde2e/test/blockchain.cpp2
-rw-r--r--tde2e/test/e2e.cpp1
-rw-r--r--tdutils/td/utils/Ed25519.cpp1
5 files changed, 9 insertions, 4 deletions
diff --git a/tde2e/td/e2e/e2e_api.cpp b/tde2e/td/e2e/e2e_api.cpp
index 55f9d414a..d70e63429 100644
--- a/tde2e/td/e2e/e2e_api.cpp
+++ b/tde2e/td/e2e/e2e_api.cpp
@@ -467,7 +467,8 @@ class KeyChain {
TRY_RESULT(shared_key, call_ref->shared_key());
return shared_key.as_slice().str();
}
- td::Result<api::Bytes> call_encrypt(api::CallId call_id, api::CallChannelId channel_id, td::Slice message, size_t unencrypted_prefix_size) {
+ td::Result<api::Bytes> call_encrypt(api::CallId call_id, api::CallChannelId channel_id, td::Slice message,
+ size_t unencrypted_prefix_size) {
TRY_RESULT(call_ref, to_call_ref(call_id));
return call_ref->encrypt(channel_id, message, unencrypted_prefix_size);
}
@@ -792,7 +793,8 @@ Result<Bytes> call_create_change_state_block(CallId call_id, const CallState &ne
Result<SecureBytes> call_export_shared_key(CallId call_id) {
return get_default_keychain().call_export_shared_key(call_id);
}
-Result<Bytes> call_encrypt(CallId call_id, CallChannelId channel_id, SecureSlice message, size_t unencrypted_prefix_size) {
+Result<Bytes> call_encrypt(CallId call_id, CallChannelId channel_id, SecureSlice message,
+ size_t unencrypted_prefix_size) {
return get_default_keychain().call_encrypt(call_id, channel_id, to_slice(message), unencrypted_prefix_size);
}
Result<SecureBytes> call_decrypt(CallId call_id, UserId user_id, CallChannelId channel_id, Slice message) {
diff --git a/tde2e/td/e2e/e2e_api.h b/tde2e/td/e2e/e2e_api.h
index a44a3195e..7f70dd35c 100644
--- a/tde2e/td/e2e/e2e_api.h
+++ b/tde2e/td/e2e/e2e_api.h
@@ -303,7 +303,8 @@ Result<std::string> call_describe_block(Slice block);
Result<std::string> call_describe_message(Slice message);
Result<Bytes> call_create_change_state_block(CallId call_id, const CallState &new_state);
-Result<Bytes> call_encrypt(CallId call_id, CallChannelId channel_id, SecureSlice message, size_t unencrypted_prefix_size);
+Result<Bytes> call_encrypt(CallId call_id, CallChannelId channel_id, SecureSlice message,
+ size_t unencrypted_prefix_size);
Result<SecureBytes> call_decrypt(CallId call_id, UserId user_id, CallChannelId channel_id, Slice message);
Result<int> call_get_height(CallId call_id);
diff --git a/tde2e/test/blockchain.cpp b/tde2e/test/blockchain.cpp
index e42d8dfe2..072282f5e 100644
--- a/tde2e/test/blockchain.cpp
+++ b/tde2e/test/blockchain.cpp
@@ -9,6 +9,8 @@
#include "td/utils/simple_tests.h"
#include "td/utils/Status.h"
+#include <memory>
+
using namespace tde2e_core;
using BB = BlockBuilder;
using BT = BlockchainTester;
diff --git a/tde2e/test/e2e.cpp b/tde2e/test/e2e.cpp
index 43dac6c58..14a88b4e6 100644
--- a/tde2e/test/e2e.cpp
+++ b/tde2e/test/e2e.cpp
@@ -29,6 +29,7 @@
#include "td/utils/FlatHashMap.h"
#include "td/utils/format.h"
#include "td/utils/logging.h"
+#include "td/utils/misc.h"
#include "td/utils/overloaded.h"
#include "td/utils/Random.h"
#include "td/utils/SharedSlice.h"
diff --git a/tdutils/td/utils/Ed25519.cpp b/tdutils/td/utils/Ed25519.cpp
index 1867a8260..f0c497d2d 100644
--- a/tdutils/td/utils/Ed25519.cpp
+++ b/tdutils/td/utils/Ed25519.cpp
@@ -7,7 +7,6 @@
#include "td/utils/Ed25519.h"
#include "td/utils/BigNum.h"
-#include "td/utils/logging.h"
#include "td/utils/misc.h"
#include "td/utils/ScopeGuard.h"