Commit Graph

511 Commits

Author SHA1 Message Date
Arseny Smirnov
c4ed5ce140 tdutils: aes experiments
GitOrigin-RevId: 1dd2812041778679fb1ef0462d9e8b1899181e0b
2020-06-12 18:06:40 +03:00
levlam
44689f81ff Minor improvements.
GitOrigin-RevId: 835275f0146586e4de5e18e9f01be29bb72ddf31
2020-06-10 03:42:00 +03:00
levlam
bed0bb69f0 Simplify List test.
GitOrigin-RevId: 7306a169794ecb1e24e3b256bed600dd7d1a698c
2020-06-10 03:01:23 +03:00
levlam
2a51b98453 Add TsList. Add List/TsList tests.
GitOrigin-RevId: 78a85d3d575fa320187119a23a1ac2e265c70344
2020-06-09 18:40:36 +03:00
levlam
2a623b0a50 Add some ListNode helper methods.
GitOrigin-RevId: b4e79174cac16752185cc8bfa2436b7393464289
2020-06-09 17:39:34 +03:00
levlam
cd451b7c45 Add List::init_from.
GitOrigin-RevId: 17a6f374ff0b568c6e2d056053539fb2947f22d3
2020-06-09 17:18:59 +03:00
levlam
64094b0a23 Add RandomSteps for tests.
GitOrigin-RevId: eb4e7c92987db765aab24ad9afd2f072e6665607
2020-06-09 05:17:39 +03:00
levlam
901d884910 Improve VectorQueue.
GitOrigin-RevId: c64b8598a3d492236be2c4d1f3ccb4addc14891e
2020-06-09 05:09:58 +03:00
levlam
f7f43c39a8 Add Span::back/rbegin/rend.
GitOrigin-RevId: 25bac5c0987e6c1f9b012c75c550110c07369684
2020-06-09 04:48:08 +03:00
levlam
b1419f9de5 Fix some includes.
GitOrigin-RevId: f4b44d2e91ca72b6090d7f1f35673e8268723241
2020-06-07 18:14:52 +03:00
levlam
de6d5359ed Use #pragma managed(push, off) around unmanaged includes in managed code.
GitOrigin-RevId: 1b8944dfa23e38f675aec0f25d78644baa27ab84
2020-06-06 22:51:45 +03:00
levlam
3788cd28f9 Clear OpenSSL errors after init.
GitOrigin-RevId: 0e74ffdada6d568645aef6496df3498e0638bbc0
2020-06-06 21:35:09 +03:00
levlam
ed615430e1 Move OpenSSL error hancling functions to tdutils.
GitOrigin-RevId: 6d45b5ee1077eca430802fb6258104b0371688fa
2020-06-06 21:31:47 +03:00
levlam
c36e8d6c78 Add storer for vector of pointers.
GitOrigin-RevId: 1e2573f0fcf33eec26f4a17860a406c2a99336bb
2020-05-25 02:40:00 +03:00
levlam
088a96ff15 Add some checks.
GitOrigin-RevId: 6c24e7d3d48ed823a45d6b106855f3a0f55a0db5
2020-05-19 15:11:21 +03:00
levlam
eb8fba8b28 Fix init_host_port.
GitOrigin-RevId: 30abb3480d906ebd7ea50a7feecf072be6e36641
2020-05-16 23:54:40 +03:00
levlam
5b18a56e03 Add IPAddress::get_ip_host and use it whenever appropriate.
GitOrigin-RevId: 7254ebd036463fe2c8b6262269cbee843b320421
2020-05-16 23:12:52 +03:00
levlam
9fe0d4bbd9 Do not remove brackets from HttpUrl IPv6 host.
GitOrigin-RevId: 59db5b747e66bd83cbfa81d4276af2aa1bb8b7ca
2020-05-16 22:53:19 +03:00
levlam
842e2033b7 Fix IP address verification in TLS certificate.
GitOrigin-RevId: 5275f8be34e9459a13a87e6fbd056754ceb515d4
2020-05-16 18:43:49 +03:00
levlam
7bdff46710 Do not send IP address in SNI.
GitOrigin-RevId: ff01b1f5f9219e34b0cacdf8acd49bf4e5a3daa2
2020-05-16 17:50:58 +03:00
levlam
e58d423af1 Add IPAddress::get_ip_address.
GitOrigin-RevId: 8b82c462f10d705412cb6cedc3d25d5fb95c59e2
2020-05-16 17:35:53 +03:00
levlam
705ab4d415 Supoort bracketed IPv6 in init_ipv6_port.
GitOrigin-RevId: 5452157d85fa5628a07e82fec20c92e8b0836508
2020-05-16 17:30:16 +03:00
levlam
06b053ff3e Add comment about IPAddress::get_ip_str unsafety.
GitOrigin-RevId: 29cd28bf9a6422cd0295c74f904ba380fc119570
2020-05-16 16:43:40 +03:00
levlam
54f9c77a20 Make ipv4_to_str/ipv6_to_str safe to use.
GitOrigin-RevId: 622c8f03c8791545922d3ae5f596f0a9699b91a9
2020-05-16 16:33:32 +03:00
levlam
bf963ccadf Make IPAddress::get_ipv6 safe to use.
GitOrigin-RevId: 47d50318abac4231efe63820902ba4d74b6dd03d
2020-05-16 16:11:03 +03:00
levlam
3b3b67b834 Do not try to parse http scheme further some reserved characters.
GitOrigin-RevId: 363ad7bf8022bddc6c3370abc6a8ee244d384759
2020-05-07 03:12:47 +03:00
levlam
7fd495a69c Optimize TlStorerToString.
GitOrigin-RevId: fe43727ec9a0ec777860c16fd6fcbd73a9fd4c09
2020-04-29 21:49:11 +03:00
levlam
851d23f06c Add messageDice.success_animation_frame_number.
GitOrigin-RevId: d0afff34c7d74fe5e06b008b7a8438be4aebe88b
2020-04-21 19:08:01 +03:00
levlam
822bc95d13 Reget users to restore their online status after removing them from privacy restrictions.
GitOrigin-RevId: e29832c5a056cdc5708c02ce31e77570ff335ced
2020-04-19 12:53:07 +03:00
levlam
5294bf8607 Update Unicode data to 13.0.0.
GitOrigin-RevId: f8ef2133797db0092be6ec98e45373bdde850567
2020-04-08 22:27:49 +03:00
levlam
77c7f4c660 Add Clocks::tz_offset.
GitOrigin-RevId: b1dcb9a8533f408961778eac7c7fa5db1bd2b920
2020-04-08 20:47:14 +03:00
levlam
b35862bd71 Simplify Clocks.
GitOrigin-RevId: 6684cd9d98efea14d00317d1975b58aa7e2c8a11
2020-04-08 02:39:51 +03:00
levlam
f9e8bbdff4 Fix undef of small with WIN32_LEAN_AND_MEAN defined.
GitOrigin-RevId: ca8ca03bdf62e9aaf2fe44078aa074296a3a949e
2020-04-01 00:36:01 +03:00
levlam
c7411004be Fix count_bits implementation.
GitOrigin-RevId: a6b56a2f9dbef462107787c852bacee6571df2c9
2020-03-31 23:21:42 +03:00
levlam
c4023a3f9b Use KB instead of kB for 1024 bytes.
GitOrigin-RevId: 163ebf3f28f5e6f6710b3ff85bdfc21996c67acb
2020-03-20 03:20:07 +03:00
levlam
9d1e3ed661 Add WIN32_LEAN_AND_MEAN during build on Windows (0% build time speed up).
GitOrigin-RevId: ebe9742fa94187434be37339862f11b750db44ac
2020-03-19 02:33:53 +03:00
levlam
a0c5c5900a Better rand_string parameter types.
GitOrigin-RevId: 2702375880663d3cfe1546b047e01ba02ffcd2ce
2020-03-15 02:01:22 +03:00
levlam
968689157c Make max_compression_ratio required parameter in gzencode.
GitOrigin-RevId: c787fdeae202d3b80944412e7db4209f35adcd07
2020-03-15 01:56:48 +03:00
levlam
1ed0ab3146 Improve logging on failed check.
GitOrigin-RevId: 3058af6fe76779e02eb6440fd1ab13ce07621785
2020-03-14 01:54:13 +03:00
levlam
d48faede71 Remove now unneeded BigNum::ensure_const_time method.
GitOrigin-RevId: ce34efc94f3e13f306592bed86a37f342a356a23
2020-03-10 18:31:13 +03:00
levlam
2df3de7b80 Improve logging.
GitOrigin-RevId: 8574b038e9682f8020d1508a7be7beef223e1b08
2020-03-10 04:37:46 +03:00
levlam
ae5588bf11 Make webPage.description a formatted text.
GitOrigin-RevId: b64cf0e915f9fdeeadc8cdee8280fcbb236c92bb
2020-03-02 16:05:18 +03:00
levlam
92df8f9827 Remove unneeded brackets.
GitOrigin-RevId: 0b8a2ae21d28e6c276db8b45ffb4d127800f5d73
2020-02-26 18:15:19 +03:00
levlam
e34058c16f Optimize TlBufferParser for empty strings.
GitOrigin-RevId: fb796f93d84a32c90f9420029b89e0f7fe169869
2020-02-23 22:44:14 +03:00
levlam
1313fb1543 Remove illegal MovableValue<void *> usage.
GitOrigin-RevId: 1daee39044131e396183ee20baa589b96ba27eb4
2020-01-30 22:11:04 +03:00
levlam
728d8d79f6 More enum class usages.
GitOrigin-RevId: 6680ce2276ced5b015a1f508f0b7b5f28b5f4a9b
2020-01-19 03:02:56 +03:00
levlam
7f4593e21b Simplify json_array usage.
GitOrigin-RevId: 991f180938424074b41a858b125268d5a10fc8ac
2020-01-16 04:32:02 +03:00
levlam
e09a295f7c Fix compilation error.
GitOrigin-RevId: ce8f9f5c1a28e69b716fa1b2427a1337436840e0
2020-01-11 03:51:44 +03:00
levlam
1703cee349 Common base64_decode implementation.
GitOrigin-RevId: 87bdf798a181799b2f51be9831d77fabf41e3820
2020-01-09 22:59:08 +03:00
levlam
09d359cdc4 Use exact size formula in base64_decode.
GitOrigin-RevId: 7515474fc70af351e7b886e870b0d3da453afdc8
2020-01-09 22:21:20 +03:00