levlam
|
fdeaafa70d
|
tg_cli: always write log to file.
|
2021-05-17 17:33:26 +03:00 |
|
levlam
|
135f9de4a9
|
Add CombinedLog.h.
|
2021-05-17 16:53:35 +03:00 |
|
levlam
|
13a21b4fe2
|
Make LogInterface::append non-virtual.
|
2021-05-17 16:18:19 +03:00 |
|
levlam
|
a6a4eb6616
|
Don't include SliceBuilder.h in logging.h.
|
2021-05-17 15:21:11 +03:00 |
|
levlam
|
17a1015f6b
|
Remove dependency of PSLICE/PSTRING on Logger, move them to separate header and make them always safe.
|
2021-05-17 03:24:54 +03:00 |
|
levlam
|
29230948c3
|
Remove redundant LogInterface::rotate overrides.
|
2021-05-17 02:04:50 +03:00 |
|
levlam
|
083d599c41
|
Support stacktrace printing on Windows.
|
2021-05-11 19:27:37 +03:00 |
|
levlam
|
b342ec33e5
|
Likely add Solaris support.
|
2021-04-30 02:34:12 +03:00 |
|
levlam
|
3007094fb8
|
Use -Wl,-z,ignore on illumos.
|
2021-04-30 01:48:01 +03:00 |
|
levlam
|
f00d562c5b
|
Silence expected warning.
|
2021-04-30 01:26:02 +03:00 |
|
levlam
|
e1fc85d610
|
Print warnings about unsupported OS/compiler only once.
|
2021-04-30 01:24:42 +03:00 |
|
Joshua M. Clulow
|
ed291840d3
|
add illumos support (#1501)
|
2021-04-29 16:40:08 +03:00 |
|
levlam
|
564b44d3b9
|
Fix ifdef check.
|
2021-04-08 22:17:55 +03:00 |
|
levlam
|
6e099908cf
|
Don't use sendmsg on Android.
|
2021-04-08 14:55:54 +03:00 |
|
levlam
|
9bb79b4b27
|
Ignore invalid Unicode strings in C++/CX.
|
2021-04-08 14:43:47 +03:00 |
|
levlam
|
02c9caafc0
|
Fix FromApp building for UWP.
|
2021-04-04 23:40:05 +03:00 |
|
levlam
|
c36ed586e2
|
Fix MoveFileExFromAppW.
|
2021-04-04 02:58:59 +03:00 |
|
levlam
|
2ab94b9ca7
|
Add checks that SocketFd::read/write/writev return correct response.
|
2021-04-04 01:08:53 +03:00 |
|
levlam
|
e246201cf0
|
Add checks that FileFd::read/write/pread/pwrite/writev return correct response.
|
2021-04-04 00:47:30 +03:00 |
|
levlam
|
6285d98479
|
Fix writev on Windows.
|
2021-04-04 00:40:37 +03:00 |
|
levlam
|
40740597f7
|
Add ChainBufferReader::advance debug.
|
2021-04-02 16:30:10 +03:00 |
|
Arseny Smirnov
|
a51b63afdd
|
more checks for watch os version
|
2021-03-29 16:26:11 +03:00 |
|
levlam
|
4df03c8491
|
Clamp float numbers before conversion to integers.
|
2021-03-28 22:33:22 +03:00 |
|
Arseny Smirnov
|
5c7b7d4c85
|
TD_EXPERIMENTAL_WATCH_OS cmake option
|
2021-03-26 18:04:25 +03:00 |
|
levlam
|
1c92315439
|
Fix lpad0 signature.
|
2021-03-15 18:39:02 +03:00 |
|
levlam
|
d5f02b0066
|
Avoid int64 multiplication.
|
2021-03-16 14:35:32 +03:00 |
|
levlam
|
29ded98a46
|
Use full paths for file dependencies.
|
2021-03-05 23:17:48 +03:00 |
|
Arseny Smirnov
|
0c90ca3784
|
some cryptography draft
|
2021-02-10 23:25:28 +03:00 |
|
levlam
|
e031a2c6c1
|
Improve Slice::truncate usage.
|
2021-02-04 15:54:12 +03:00 |
|
levlam
|
9e37c85af3
|
Minor improvements.
|
2021-01-27 02:57:59 +03:00 |
|
levlam
|
f5f16a1f5d
|
Add opus extension support.
|
2021-01-26 11:45:36 +03:00 |
|
levlam
|
fc2941763b
|
Fix LibreSSL 3+ support.
|
2021-01-24 21:59:03 +03:00 |
|
levlam
|
62c18729f1
|
Fix td::unique.
|
2021-01-07 04:03:38 +03:00 |
|
levlam
|
82f0386e73
|
Move some functions from misc.h to algorithm.h.
|
2021-01-01 16:01:03 +03:00 |
|
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
|
3c5c23aeec
|
Improve error message.
|
2020-12-26 20:25:59 +03: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
|
9985f6db6a
|
Add HMAC tests.
|
2020-12-22 17:54:35 +03:00 |
|
levlam
|
abdc727a0f
|
Improve OpenSSL 3.0 compatibility.
|
2020-12-22 17:46:56 +03: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 |
|
levlam
|
30fb689ba3
|
Speed up Misc_Time test.
|
2020-11-22 17:20:39 +03:00 |
|
levlam
|
ccb30077e7
|
Make test functions statis if possible.
|
2020-11-21 20:45:09 +03:00 |
|
levlam
|
77de5110f5
|
Ensure that Time::now never returns negative time.
|
2020-11-21 20:33:15 +03:00 |
|
levlam
|
8ef6822557
|
Remove "using namespace td" from tdutils misc test.
|
2020-11-20 14:49:14 +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 |
|
levlam
|
15b1543e20
|
Implement OS detection in Emscripten.
|
2020-11-13 18:04:16 +03:00 |
|
levlam
|
6a2dba9e8c
|
Disable IPV6_V6ONLY on IPv6 server sockets on Windows.
|
2020-11-10 23:08:54 +03:00 |
|
levlam
|
7febd4f9af
|
Support binding of ServerSocket to IPv6 address.
|
2020-11-10 00:50:05 +03:00 |
|
levlam
|
f9a600c401
|
Minor fixes.
|
2020-11-08 14:00:36 +03: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 |
|
levlam
|
ff0c727ee2
|
Fix code formatting.
|
2020-11-06 02:13:12 +03: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 |
|
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 |
|
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 |
|
levlam
|
a8355f1749
|
Fix compilation error.
GitOrigin-RevId: a23376048dbd9ed09320ec857ae4153048d259ea
|
2020-10-12 18:44:35 +03:00 |
|
levlam
|
a4b71466e0
|
Minor improvements.
GitOrigin-RevId: 4f0c8840ee69c7a690cb12c5e36231cf9da6d91c
|
2020-10-12 10:24:30 +03:00 |
|
levlam
|
8b40856d6e
|
Always link OpenSSL with Crypt32 on Windows.
GitOrigin-RevId: 56dd9e21c8175f291222c8d42153dcd50cf57ed9
|
2020-10-11 23:48:17 +03: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
|
8fcf7740d2
|
RangeSet (will be used instead of BitMask in files) implementation with tests
GitOrigin-RevId: 977f0776d0b7ef96a31364d2a68cfe980f2845c8
|
2020-10-09 17:35:53 +03:00 |
|
Arseny Smirnov
|
5926e00320
|
tdweb works with newest emsdk
GitOrigin-RevId: b52ab5d9e182e1a689933d7a44d3306f0c9151e5
|
2020-10-08 14:02:53 +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 |
|
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 |
|
levlam
|
b53a28c43e
|
Add fb2 MIME type extension support.
GitOrigin-RevId: c77d8be1d4b5d84610c8acdbc4b6ce34ca8b6c2f
|
2020-10-05 01:10:42 +03:00 |
|
levlam
|
e1954304ea
|
Remove 'using namespace td' from a test.
GitOrigin-RevId: 77374ec20c363e09e497744c3bed67a71b8e2b20
|
2020-10-02 01:34:32 +03:00 |
|
levlam
|
13cb7c6a13
|
Fix test.
GitOrigin-RevId: 7416bb7aa65805038267767213634ec0950b3885
|
2020-10-02 01:24:35 +03: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
|
013db25897
|
Improve AES CTR test.
GitOrigin-RevId: a65b34e408f972e737489222d9f3e0604582fa3d
|
2020-09-27 22:07:42 +03:00 |
|
levlam
|
6278121549
|
Improve AES IGE test.
GitOrigin-RevId: b0b0ac715b062b339f7d64c4695b0fb99b78b409
|
2020-09-27 22:03:00 +03:00 |
|
levlam
|
705102cba0
|
Optimize AES CBC.
GitOrigin-RevId: f514011f11ebbea7b6198b9c905a61a990d4e4fe
|
2020-09-27 21:51:42 +03:00 |
|
levlam
|
657ebfae0c
|
Improve AES CBC test.
GitOrigin-RevId: 03d3cb464c49d9fed9db2104ed1ace3d72579140
|
2020-09-27 21:03:05 +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 |
|