Commit Graph

774 Commits

Author SHA1 Message Date
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
677f4f6103 Add missing license. 2021-01-01 01:33:43 +03:00
levlam
192fd4862f Use td::unique. 2020-12-30 18:50:57 +03:00
levlam
18be33a18c Add td::unique helper method. 2020-12-30 18:17:22 +03:00
levlam
fc2941763b Fix LibreSSL 3+ support. 2021-01-24 21:59:03 +03:00
Andrea Cavalli
17e7e44f6e Merge commit '8139e0d560b25cd2827fb0473e5726319998c10f'
Conflicts:
	td/generate/scheme/td_api.tlo
	td/telegram/GroupCallManager.cpp
	td/telegram/MessagesManager.cpp
2020-12-28 19:09:04 +01:00
levlam
3c5c23aeec Improve error message. 2020-12-26 20:25:59 +03:00
Andrea Cavalli
3817c4f634 Merge remote-tracking branch 'td/master' 2020-12-25 20:29:10 +01:00
levlam
c1a1fc881c Fix BufferedStdinImpl destruction. 2020-12-24 20:49:08 +03:00
levlam
47e413e0b8 Fix BufferedStdinImpl reference counter. 2020-12-24 19:17:06 +03:00
levlam
b582eb346a Undo move_as_native_fd changes. 2020-12-24 18:43:26 +03:00
levlam
1b92e2d57a Return back ScopeExit usage. 2020-12-24 17:16:56 +03:00
levlam
c1a16acd53 Don't check that Stdin/Stdout/Stderr are unlocked on exit. 2020-12-24 17:12:50 +03:00
levlam
0787c642ce Fix dlog_print usage on Tizen. 2020-12-23 19:38:58 +03:00
levlam
d628f9fa02 FromApp method fixes. 2020-12-23 18:08:34 +03:00
Fela Ameghino
7c14b3b881
Use *FromApp methods when available (#1303) 2020-12-23 11:25:27 +03:00
levlam
7d1e5bca55 Reimplement HMAC for OpenSSL 3.0.0. 2020-12-22 19:32:57 +03:00
levlam
abdc727a0f Improve OpenSSL 3.0 compatibility. 2020-12-22 17:46:56 +03:00
Andrea Cavalli
3c59d917be Merge remote-tracking branch 'td/master' 2020-11-23 17:27:14 +01:00
levlam
a093d36b3f Better fix for ThreadIdGuard destroy after exit. 2020-11-23 00:57:52 +03:00
levlam
4b687582c1 Do not try to use ThreadIdManager after exit. 2020-11-23 00:38:16 +03:00
Andrea Cavalli
cba9f74cba Merge remote-tracking branch 'td/master' 2020-11-22 01:11:21 +01:00
levlam
77de5110f5 Ensure that Time::now never returns negative time. 2020-11-21 20:33:15 +03:00
levlam
6ae33a5c27 Fix OptionParser test on Windows. 2020-11-20 03:33:09 +03:00
levlam
57de0c4967 Fix some warnings. 2020-11-20 03:11:27 +03:00
levlam
34cf869c02 Don't use EVP_aes_256_ctr before OpenSSL 1.1.0. 2020-11-20 02:18:12 +03:00
Andrea Cavalli
e4bcc81ec7 Merge commit '00abe2f4019717c6479e30c588059a3cfd3be58e'
Conflicts:
	td/generate/scheme/td_api.tlo
2020-11-14 11:11:47 +01:00
levlam
15b1543e20 Implement OS detection in Emscripten. 2020-11-13 18:04:16 +03:00
Andrea Cavalli
f81d11a0b3 Merge commit '6a2dba9e8c1a896ba5a14b1205a3784c057c86fd' 2020-11-11 19:54:04 +01:00
levlam
6a2dba9e8c Disable IPV6_V6ONLY on IPv6 server sockets on Windows. 2020-11-10 23:08:54 +03:00
Andrea Cavalli
cbe8d94183 Merge commit '1fa87babb32ea85ff5a97ab93525ae13f66a0eef' 2020-11-10 12:42:50 +01:00
levlam
7febd4f9af Support binding of ServerSocket to IPv6 address. 2020-11-10 00:50:05 +03:00
Andrea Cavalli
604df72790 Merge commit '1d75237893c8a08d73ba95a7e76b8da517b8c1dc' 2020-11-08 23:49:01 +01:00
levlam
f9a600c401 Minor fixes. 2020-11-08 14:00:36 +03:00
Andrea Cavalli
6f28ad36af Merge commit '60edadab90d7aeb8d7a44764344b8848abf5b8bb'
Conflicts:
	td/telegram/MessagesManager.cpp
2020-11-07 23:10:26 +01:00
levlam
431b0bddbc Fix GCC warning. 2020-11-06 18:27:33 +03:00
levlam
7e82a54417 Fix std::is_trivially_copyable usage. 2020-11-06 18:27:19 +03:00
Andrea Cavalli
1f7c4e2508 Remove death_handler 2020-11-06 14:27:05 +01:00
Andrea Cavalli
8c8b10541d Typo 2020-11-06 12:17:44 +01:00
Andrea Cavalli
423d05f18e Remove death handler if using musl 2020-11-05 21:58:40 +01:00
Andrea Cavalli
16f41643ed Merge commit '821398fa211b6a3c53733ccf271ee7a783d9bc75'
Conflicts:
	.gitignore
	td/generate/scheme/td_api.tlo
	td/telegram/ContactsManager.h
2020-11-04 20:05:50 +01:00
Andrea Cavalli
2e31ced59b Update to tdlib 1.6.10 2020-11-04 20:03:14 +01:00
levlam
c1de6a7d8d Minor improvements.
GitOrigin-RevId: eb8b201d80405feb6972b2eabc7de30d40aa8b81
2020-11-02 00:43:57 +03:00
levlam
36763888d4 Improve Usage output in OptionParser.
GitOrigin-RevId: 8955f6ce0643fbf871b3f3781bd36568d490eb6c
2020-11-01 01:28:58 +03:00
levlam
da6d1d8d74 Add rpad.
GitOrigin-RevId: 5dbc3667ef3e4ffd35cce4a358b3b986ec9bd8f4
2020-10-30 16:21:13 +03:00
Andrea Cavalli
134d20b7ec Merge commit 'bf945e05be9a9f696bdd866cc3427ac1bc7a4825' 2020-10-26 21:55:16 +01:00
levlam
989491466d Add lpad function.
GitOrigin-RevId: d23ef15d200e2b199294de0d10a10e92d7389339
2020-10-22 12:22:35 +03:00
levlam
1ad0b068cd Improve oneline.
GitOrigin-RevId: 6cec8e407f0f5eedb367aea25864033a69e1d1e5
2020-10-22 12:09:32 +03:00
Andrea Cavalli
17230da76a Merge commit 'cecdae448e88603c98d7d079855c992be6df739f' 2020-10-20 23:20:56 +02:00
levlam
fa91220f88 Remove superflous "struct " specifiers.
GitOrigin-RevId: 317d66fad270e99c4c4e6bc14b172f4c2eec3d6d
2020-10-18 18:29:51 +03:00
levlam
fc5bf9ef06 Suppress SIGPIPE signals on write.
GitOrigin-RevId: 19ff2a079a4dc69535e34282bfb2c2f381856def
2020-10-18 18:12:32 +03:00
Andrea Cavalli
85bf271fb8 Update Client.cpp, Log.cpp, and 4 more files... 2020-10-12 19:50:17 +02:00
Andrea Cavalli
fc5b0e9d06 Merge commit '6b1f6b829d0d71f5d50662b1ff58b7869c1e1d7f'
Conflicts:
	td/telegram/Client.cpp
	td/telegram/cli.cpp
2020-10-12 16:15:14 +02:00
Andrea Cavalli
0da9b62eda Merge commit '7207d76a809598d019e17fb04b2edc46789c6e22'
Conflicts:
	td/telegram/Client.cpp
2020-10-12 16:12:59 +02:00
Andrea Cavalli
f423fc0d81 Merge commit '35a9a93fc9adfbced4d5f59baf0c72a2f807f28a'
Conflicts:
	td/telegram/Client.cpp
	td/telegram/StickersManager.cpp
	td/telegram/WebPagesManager.cpp
2020-10-12 16:10:48 +02:00
Andrea Cavalli
ef9e05a805 Merge commit '1cfa7545c938212b8976eafe3055fe161b8fd7c4'
Conflicts:
	td/telegram/Client.cpp
2020-10-12 16:05:01 +02:00
Andrea Cavalli
2b69eef4a5 Merge commit 'd87558177241862f7db1b934f8a211b94180f28b'
Conflicts:
	td/telegram/Client.cpp
2020-10-12 15:59:54 +02:00
levlam
22be9b95bf Do not include set in broadly used format.h.
GitOrigin-RevId: 81c2113ef5bfe48868a3a2968efd6cadb1cfccf3
2020-10-11 21:31:01 +03:00
levlam
10a7edfbea Disable logging after program exit.
GitOrigin-RevId: 8ca24e1999fe95f171e18477baa2e56912a2e895
2020-10-11 14:45:22 +03:00
levlam
09f906f192 Protect access to some static variables using ExitGuard.
GitOrigin-RevId: 65c7510c60d585b90e90d09067c7dfdaf79c4cd3
2020-10-11 01:59:27 +03:00
levlam
7207d76a80 Add ExitGuard.
GitOrigin-RevId: f8f04daacbee00386e326eb3ca1ec3dfec19cbb0
2020-10-10 22:37:36 +03:00
levlam
35a9a93fc9 Fix std::...::erase return value usages.
GitOrigin-RevId: d9729ccd619e3b99554f1e1c2262d8826f0a8571
2020-10-08 23:04:40 +03:00
Arseny Smirnov
44e3c6fb58 Revert "Closure.h: use static_assert instead of LOG(FATAL)"
This reverts commit a17ebc84d49ce763ffa64c8db0f85638bb5ace63.

GitOrigin-RevId: deae227b726bdcaead7d7b49f2171a438f58e2c7
2020-10-09 19:56:05 +03:00
Arseny Smirnov
5926e00320 tdweb works with newest emsdk
GitOrigin-RevId: b52ab5d9e182e1a689933d7a44d3306f0c9151e5
2020-10-08 14:02:53 +03:00
levlam
582206d641 Use Random::fast_bool.
GitOrigin-RevId: 42da8a237c6dfbb6e72bc5b21482891b6c9d58b5
2020-10-08 12:56:08 +03:00
levlam
291a9ff43b Add Random::fast_bool.
GitOrigin-RevId: 1f7ec3d4a04dcadbdffde18994e7a29f3d22aedc
2020-10-08 12:47:03 +03:00
levlam
d2d0cb5cc0 Move log tags definitions out of logging.cpp.
GitOrigin-RevId: 0e74b94ec194f8ee678bb77a04d35df46702b330
2020-10-05 18:07:23 +03:00
Andrea Cavalli
41e5ce21ac Merge commit '3d2067475e0764d4765b41aa372e5c3c10a5af5d'
Conflicts:
	td/telegram/MessagesManager.cpp
2020-10-01 14:53:43 +02:00
Andrea Cavalli
c83fc13a60 Merge commit '1d9989cbd700492ffe636385d5578946f62139d9'
Conflicts:
	td/telegram/ContactsManager.cpp
	td/telegram/ContactsManager.h
	td/telegram/MessagesDb.cpp
	td/telegram/MessagesManager.cpp
2020-10-01 13:22:37 +02:00
Andrea Cavalli
24ee424c91 Merge commit '3aee3527511ce43ae670081f3f65a71e7c92ee2c'
Conflicts:
	td/telegram/MessagesDb.cpp
2020-10-01 11:42:54 +02:00
levlam
16615d75e8 Fix integer conversion.
GitOrigin-RevId: 7ba9a274f6bff6733818596a676c5169bda24acf
2020-09-30 22:04:57 +03:00
levlam
0c1e5816d4 Fix CE.
GitOrigin-RevId: 642a7ef5ef39d8513acffb1d812546c2e7bd066d
2020-09-30 22:02:39 +03:00
levlam
705102cba0 Optimize AES CBC.
GitOrigin-RevId: f514011f11ebbea7b6198b9c905a61a990d4e4fe
2020-09-27 21:51:42 +03:00
levlam
9322bf68cd Move test functions implementation to cpp.
GitOrigin-RevId: eec1d208f410a3f546dfe230d1780ecdac02d3b4
2020-09-27 20:38:23 +03:00
levlam
a9a3acf135 Delete unused AesCtrCounterPack and XorBytes classes.
GitOrigin-RevId: 95906d3d54c16928a1250a511e1e66aa8e59c5c6
2020-09-27 15:47:22 +03:00
levlam
4d67801710 Use EVP_aes_256_ctr for AES CTR implementation.
GitOrigin-RevId: e9218b6eec8f5e4a11eea24324f6c8478f6f1293
2020-09-27 15:46:11 +03:00
levlam
2e50410dcc Allow to disable stderr redirect when logging to file.
GitOrigin-RevId: 7b91d362695cd73a640a9ed2a5d107b804536a16
2020-09-27 14:37:35 +03:00
levlam
90ee4bd63c Minor fixes.
GitOrigin-RevId: ef4e2cfe4f198caec26daf04423eb26afedde5bb
2020-09-24 19:15:42 +03:00
levlam
4357a24a1c Fix aes_ige_encrypt/aes_ige_decrypt.
GitOrigin-RevId: 7f4a7f86e1fbabe5bfe020fe95586a6030765977
2020-09-22 18:05:58 +03:00
levlam
21969e4d02 Fix print_int.
GitOrigin-RevId: caff5ca11c300aef7658a029028d252253c4176c
2020-09-20 22:51:03 +03:00
levlam
72b63e2533 Support Unicode command line arguments on Windows.
GitOrigin-RevId: c4e20183cac0e98964850fb6a78c020996489bc1
2020-09-14 23:32:13 +03:00
levlam
98adef1145 Move url_decode to tdutils.
GitOrigin-RevId: bd9ef4caa56996a96626b16998b423ab304b9ee6
2020-09-14 18:58:39 +03:00
levlam
16bd7bd98e Add checks that delete is not called for incomplete type.
GitOrigin-RevId: 19755ebbee56eb874e84fd8544899fd70a78df7f
2020-09-14 18:11:34 +03:00
levlam
0ad6ff0599 Add usage in OptionParser.
GitOrigin-RevId: 0a15b69eda345c0fbc503afc26c6787f5fbcaa8e
2020-09-14 17:04:45 +03:00
levlam
bc000b5a53 Add OptionParser::parse_string helper.
GitOrigin-RevId: 506b1d9c1b6cfb6029bb87e32a98f08b0d16b2d4
2020-09-14 14:51:52 +03:00
levlam
91942f29d3 Add OptionParser::parse_integer helper function.
GitOrigin-RevId: d202848b64c27bb260e189783722508684b633c5
2020-09-14 14:45:22 +03:00
levlam
b8e0201694 Align long options in OptionParser usage.
GitOrigin-RevId: 496c90e876c02ba923e3d7dac7e04a57b4e9766c
2020-09-14 14:33:42 +03:00
levlam
96835d417b Improve OptionParser error messages.
GitOrigin-RevId: 97795e0a64122986e78d01a34205317fc5bef835
2020-09-14 14:22:43 +03:00
Arseny Smirnov
958b16b8a3 Closure.h: use static_assert instead of LOG(FATAL)
GitOrigin-RevId: a17ebc84d49ce763ffa64c8db0f85638bb5ace63
2020-09-09 19:42:37 +03:00
Andrea Cavalli
f592ba6969 Fix program counter name in aarch64 2020-09-05 16:32:52 +02:00
Andrea Cavalli
8fb0a0673e Fix windows support 2020-09-05 15:36:26 +02:00
Andrea Cavalli
4f2230d1d6 Update logging.cpp 2020-09-02 01:44:17 +02:00
Andrea Cavalli
2ee1930f65 Replaced checks abort() with death handlers 2020-09-02 01:11:38 +02:00
Andrea Cavalli
510aec55de Merge commit '83c9f5180bf9738df2667841ed0c4df9ebeaec40'
Conflicts:
	td/telegram/MessagesManager.cpp
2020-08-31 11:51:02 +02:00
Andrea Cavalli
9a9f80f36f Fixed memory signals in mac osx 2020-08-23 21:29:15 +02:00
Andrea Cavalli
7e39029811 Fixed memory mapping incompatibility 2020-08-23 21:17:32 +02:00
levlam
2c4953386a Optimize logging of const strings.
GitOrigin-RevId: af8de902d07c4862a77e0d8050db47ee1ccacbf6
2020-08-20 22:28:00 +03:00
Andrea Cavalli
1ccc7c6c65 Merge commit '3282a873cb24b0c975b6929aeb71a00fc6a18b7c'
Conflicts:
	sqlite/sqlite/sqlite3.c
	sqlite/sqlite/sqlite3.h
	sqlite/sqlite/sqlite3ext.h
	sqlite/sqlite/sqlite3session.h
	tddb/td/db/SqliteDb.cpp
2020-08-18 13:55:47 +02:00
levlam
f266aa3912 Minor fixes.
GitOrigin-RevId: a4aacfa1ecab2718475d32bcbd99f9671ba7e982
2020-08-14 22:51:10 +03:00
Arseny Smirnov
9c40e37288 Clocks: use CLOCK_[BOOTTIME,MONOTONIC_RAW] for Clocks::monotonic
GitOrigin-RevId: 729311e1a7a36a9245ecdb5921b81c4834ec1dc6
2020-08-14 20:41:00 +03:00