Commit Graph

194 Commits

Author SHA1 Message Date
levlam
a6be36e7f2 Always save temporary files in unique directory to ensure that all of them have different paths,
GitOrigin-RevId: 7113952a085f34a04eac38646f5a7a403bf9e9ba
2020-01-06 01:31:28 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
a14ee3e66c Do not use functional cast on integers.
GitOrigin-RevId: 1ebcf0e9a9b004039d32b6363140387bca7d7722
2019-12-24 16:46:10 +03:00
levlam
8c495d99e6 Use TRY_RESULT_ASSIGN.
GitOrigin-RevId: 99b60b9044fab9357a3440aed7da55f146677e6b
2019-12-08 09:57:33 +03:00
levlam
c1afa189f3 Support multiple chat lists.
GitOrigin-RevId: 8adecce0ddf36bb2408eecc19b7f1fc8856151fc
2019-08-22 18:24:02 +03:00
levlam
4ce54818a3 Add get_simple_config_firebase_realtime.
GitOrigin-RevId: 04b3aedcbe9ec1985f69cced34b0d890eedcf934
2019-11-19 19:01:12 +03:00
levlam
9d441470c8 Support POST requests in Wget.
GitOrigin-RevId: d3f50200c22dcc6c5142581d74de3a41fca00305
2019-11-19 15:11:19 +03:00
levlam
0b6c1d226f Update clag-format to the latest (190926/r372920) version.
GitOrigin-RevId: 7861ae8ad28eb1f6a06ff3c6f56eff3f67b1d24c
2019-09-28 05:14:21 +03:00
levlam
f29c4a9ed1 Remove unneded explicit td::.
GitOrigin-RevId: e3888510ce72a55072a11d105311f07b4ba42bbf
2019-09-15 06:19:46 +03:00
levlam
ef5e709ac8 Fix clang 3.4 and OpenSSL 0.9.8 CE.
GitOrigin-RevId: 9157bfe975bdb376fbd573bd23107c36b1444f34
2019-09-09 02:04:30 +03:00
levlam
f27dac69e1 Fix JSON spelling.
GitOrigin-RevId: ea2602f1e9a808ff1e28eb289936f9608aae7517
2019-08-26 05:06:00 +03:00
levlam
ad167a48ba Pass Slice to parse_url.
GitOrigin-RevId: e6cd357042b827ca56a11bb377c8b07ccd120230
2019-08-05 12:56:28 +03:00
levlam
4a2b76e1ef Fix testProxy.
GitOrigin-RevId: fcce1611113bec089ac3ca20df56eba85895a753
2019-07-23 01:13:20 +03:00
levlam
20503e04d2 Various fixes.
GitOrigin-RevId: da4869e5054952663ad5993f5770f2984a473818
2019-07-22 07:01:51 +03:00
Arseny Smirnov
d22a6751db tdweb: do not link with libssl, only with libcrypto
GitOrigin-RevId: fb7cd454c3b368381fd65150979e6233a452eb8c
2019-06-28 13:03:06 +02:00
levlam
a5413cf50d Explicitly use unique_ptr<HttpQuery>.
GitOrigin-RevId: 1d729c6b0a3d1deaf3423672414f155492b7a0e8
2019-06-17 19:12:54 +03:00
levlam
93494cf048 Fix log messages style.
GitOrigin-RevId: f99e2e838220826d3dea7fdc33c43ac9918a5efd
2019-02-21 18:58:20 +03:00
levlam
8c3eb953ae Fix some g++4.9 CE.
GitOrigin-RevId: 0d4ed1e684fd623a7ab5849e4f0f7ec2fd182694
2019-02-13 02:29:52 +03:00
levlam
9b42166c68 Explicitly include common.h.
GitOrigin-RevId: 5ae32c18d0ff18aac36334b494ea526ce7da4a9a
2019-02-13 00:26:36 +03:00
levlam
eb9ead582f Remove unneded includes of td/utils/loggging.h.
GitOrigin-RevId: 82a3b506dba5c9d5267dc0e2504a7093a7fa87db
2019-02-12 23:48:16 +03:00
levlam
130b49a524 Various include and other fixes.
GitOrigin-RevId: 68e03e0636cd4cff3e6fa876342ba16453630f15
2019-02-12 19:48:52 +03:00
levlam
0b7def8733 Add dns_resolver log tag.
GitOrigin-RevId: 17fed9f8350bb49e18b875ed21290c7805875df6
2019-02-04 17:02:21 +03:00
levlam
ca92472b69 Support numeric hosts in GoogleDnsResolver.
GitOrigin-RevId: 6768a90ad7f98d83f507051564fb1646d3834aad
2019-02-04 06:32:10 +03:00
levlam
6ccaf358b7 Support IDN hosts in all resolvers.
GitOrigin-RevId: c5b2741dd2d4e8bb0361e6dddf3b6749e5195c6a
2019-02-04 05:39:20 +03:00
levlam
fc8917a4ed Rename ResolveType to ResolverType.
GitOrigin-RevId: 64350527620c08bb192a18d951d5b3b5216f1162
2019-02-04 04:36:13 +03:00
levlam
da59ac47ea Support list of resolve types in GetHostByNameActor.
GitOrigin-RevId: 5aabc978b9a6caaecc2bf6c432421b2a4d766559
2019-02-04 04:32:32 +03:00
levlam
73a39a4699 GetHostByName: split cached values and active queries.
GitOrigin-RevId: c3d0ebd9202a22bf83ef03a044bda0b2d00d46b6
2019-02-04 03:19:31 +03:00
levlam
2dd4b91d51 Minor GetHostByName improvements.
GitOrigin-RevId: 9ceba9a941e3213a1748d22f38a126ace2d57e56
2019-02-04 03:12:40 +03:00
levlam
83037ee014 GetHostByName fixes and improvements.
GitOrigin-RevId: 531a53c4d559662be110d1ad6938ca3e52ccbc1e
2019-02-04 02:29:37 +03:00
levlam
311cd72feb enum class for ResolveType.
GitOrigin-RevId: 3cb46ab9c1c6913364748136722d2e8485cc6008
2019-01-24 20:21:00 +03:00
levlam
12ffc22483 Minor GetHostByName improvements.
GitOrigin-RevId: ff61c5aa543067e855a6f4a7f25c579a8c17aa87
2019-01-24 20:08:29 +03:00
Arseny Smirnov
bc838db8ec GetHostByNameActor: bufix and more tests
GitOrigin-RevId: fd2fb695724baf5531fcdc232c421684bd5cb139
2019-01-24 21:07:24 +04:00
Arseny Smirnov
c07b26e45c GetHostByNameActor: Options and test
GitOrigin-RevId: afebe6e940b2048d3ef6f6368ff824443d55a909
2019-01-24 17:07:11 +04:00
Arseny Smirnov
320d660f1c GetHostByNameActor support google dns
GitOrigin-RevId: 6ecc589426368cf2a821546b1dc104e4bf324335
2019-01-24 16:18:23 +04:00
Arseny Smirnov
dd190c7d79 DnsOverHttps class with a test
GitOrigin-RevId: 4f8785377ddbe47a59fe6e03628685902503e1f6
2019-01-24 13:47:54 +04:00
levlam
eaebfad034 Update copyright year.
GitOrigin-RevId: 359e2b43322222922c44c430d3814b0a4c778dc6
2019-01-01 01:02:34 +03:00
levlam
f81709acde Better handling of certificate adding errors.
GitOrigin-RevId: a2a498bd406ced8ea1ed34fca6b3d2fd8359d3af
2018-12-17 15:55:13 +03:00
levlam
ccf77c5e01 Better error messages while connecting to proxy.
GitOrigin-RevId: 25937285e2f3ee499f3335081f377ba584dcf068
2018-12-07 12:25:22 +03:00
levlam
7072b0319d Improve error message.
GitOrigin-RevId: 66bb30764ac37d2086731814daf8683794b76a13
2018-12-07 01:57:51 +03:00
levlam
b777051eaa Add logging of HttpProxy response.
GitOrigin-RevId: a7ad02206e0c6515d38a7f0b767735f25eb6c7c1
2018-12-06 20:29:10 +03:00
levlam
f435fe62a1 Fix HTTP spelling.
GitOrigin-RevId: f7d5626657406c1506434053efa68f28b4b6d674
2018-12-05 18:46:19 +03:00
levlam
5d5c55596e Minor improvements.
GitOrigin-RevId: 2f2099d91867ec302ff2d9426b6b088c8c625720
2018-11-01 20:08:20 +03:00
levlam
bc88b8e951 StringBuilder fixes.
GitOrigin-RevId: 1836df5f6931ca94e96e7281eeb1090163d8648f
2018-10-30 17:22:44 +03:00
levlam
28bfa4c4a6 Fix some MSVC Analyzer warnings.
GitOrigin-RevId: f62e8173ae9a5b78818f6575548ce22d4aa5c51d
2018-10-26 17:11:20 +03:00
levlam
1f216df1d8 Fix C26451 warning.
GitOrigin-RevId: 7c7fa7df4078dec15dfdc3db2df30ab5be234b5b
2018-10-25 21:29:10 +03:00
levlam
73440a8dea Workaround clang ICE "ran out of registers during register allocation" (2).
GitOrigin-RevId: 9a0c5a0b65bb6c7765ab28c86116c482191934e5
2018-10-22 02:02:52 +03:00
levlam
803602c4d1 Make tdnet dependency on OpenSSL private.
GitOrigin-RevId: 76331149d0d1e77ed0c4a3505ffe3568d98c0c01
2018-10-15 11:23:51 +03:00
levlam
1d32712f6a HttpReader: allow empty filename.
GitOrigin-RevId: ad65a2e603d4628c6a4d29d26300a113303d0c27
2018-10-14 19:08:15 +03:00
levlam
f948956bf7 Use td::unique_ptr instead of std::unique_ptr whenever possible.
GitOrigin-RevId: 424beb72dc62efdefdbffb75f1036ba9417f84cb
2018-09-27 04:19:03 +03:00
levlam
cc077a3971 Fix IPAddress::get_ipv4 usages.
GitOrigin-RevId: 6d87c9347aaa40957b1e524f889cf9fe8b179bb1
2018-09-11 19:40:53 +03:00
levlam
9971b52b81 Make subscribe a static method of Scheduler.
GitOrigin-RevId: e80024cfa63a37fb9b64f514ac3407d4e97c7302
2018-09-11 01:20:41 +03:00
levlam
fd90bf435e A lot of fixes.
GitOrigin-RevId: c7c16991da51e09a685537a444385852e8e93af4
2018-09-07 03:41:21 +03:00
Arseny Smirnov
8a28e4b461 Almost compiles
GitOrigin-RevId: aad536022caddba0446a761e7ab1f3b4ac64f53b
2018-08-14 10:42:40 +03:00
levlam
cb165adf7c Check for SSL_CTX_set_default_verify_paths return code.
GitOrigin-RevId: 9f282b9c8ea7290588d45e310e667c05742041e9
2018-08-29 16:07:34 +03:00
levlam
8079285e5c Remove logging of OpenSSL internal errors.
GitOrigin-RevId: 1081cfb0efda59ac8bb08746b0b29fb1c39f299d
2018-08-29 15:35:05 +03:00
levlam
6439cf8567 Fix cleaning temoorary file.
GitOrigin-RevId: 68fbf33125dc874bd24b67acae426dc6accedbe9
2018-08-29 01:57:09 +03:00
levlam
5379348651 Improve some logging.
GitOrigin-RevId: ec0a2f01c45b1ae7a74cd407f5c867e609e47d1f
2018-08-28 05:52:43 +03:00
levlam
754252f220 Fix and improve create_openssl_error.
GitOrigin-RevId: 039a5da5f3b2f4aafbf60ca541699f3e47fbb6b5
2018-08-28 02:06:56 +03:00
levlam
692bc1f26d Fix leakage of a too big temporary file in HttpReader.
GitOrigin-RevId: b9bc7646013206fb30490cfb24e939eadb15e9c3
2018-08-27 15:52:47 +03:00
levlam
d8f66f8a8e Minor fixes.
GitOrigin-RevId: 01b7c4015a8a4ee30c06b977363889d38a65bfd4
2018-08-26 11:08:45 +03:00
levlam
b31b8f2bd7 Remove Wget debug logging.
GitOrigin-RevId: 97ed296bbc28f27a8f89ab286087d1f9d6075dc5
2018-08-21 05:27:47 +03:00
levlam
c19ab1adbc Minor HTTP-proxy fixes.
GitOrigin-RevId: 03d1ca116707c358cd1a414046222236ee2d09b4
2018-08-17 19:03:07 +03:00
levlam
23c03a97f4 Various style fixes.
GitOrigin-RevId: 056c091cfd71322a0cc8db0e3bafec7d272da7ad
2018-08-16 01:06:53 +03:00
levlam
966eb11fe1 Load certificates from Windows store.
GitOrigin-RevId: 773a03d472643d168207ca99c7ef2e30562e328d
2018-08-15 23:05:06 +03:00
levlam
0718b313f3 Fix CE and SslStream source code formatting.
GitOrigin-RevId: 9354f72061f4ad2b122be1129d0b3210845f23f4
2018-08-15 16:29:46 +03:00
Arseny Smirnov
ab2b189722 Ssl refactoring
GitOrigin-RevId: f5916787608227b6914c10520dfe7a7039522ef9
2018-08-15 15:41:42 +03:00
levlam
f0070c093a Fix some includes.
GitOrigin-RevId: abe527ca92b2136ee6a95b046ef53bdde32be6d5
2018-07-27 16:19:46 +03:00
levlam
a547f42886 Add support for transparent HTTP proxies.
GitOrigin-RevId: 5ae836625a60d1f84b0ca8df2c41bf07e8ba59fd
2018-07-26 16:49:18 +03:00
levlam
2ca3c7eeed Add TransparentProxy abstract class.
GitOrigin-RevId: 77ced69b5d87c17a1bbc6d654bb0206a4e32e69d
2018-07-26 03:28:02 +03:00
levlam
e2a90b9edf Fix some string to Slice conversions.
GitOrigin-RevId: 79ddee1a90c633cc1b1df5c8e3d9917027bad0f3
2018-07-08 02:47:46 +03:00
levlam
deecdb66bc Fix some td/actor/ includes.
GitOrigin-RevId: f9cf960b96018c4eb6169d2ec6cb5d3fbc16c0ec
2018-07-03 22:29:04 +03:00
levlam
5a11dd6c58 Support prefer_ipv6 in Wget.
GitOrigin-RevId: 80740a20f38174235160e05b1854e7023ebe3677
2018-07-01 04:45:25 +03:00
levlam
9b0a138dd1 Add prefer_ipv6 parameter tp GetHostByNameActor.
GitOrigin-RevId: 727fc30d94657399f1e49efc208b6951a7677d2f
2018-07-01 04:12:20 +03:00
levlam
48740add28 Init some uninitialized Result variables.
GitOrigin-RevId: 48e15168e48d131c53a93a5c2971c7dadeeeb270
2018-06-27 19:24:42 +03:00
levlam
89c8bf819c Move some logging from INFO to DEBUG,
GitOrigin-RevId: f56140a9c03fcb0af8c8ecc381b3e111febf616f
2018-06-05 00:12:34 +03:00
levlam
e11d4e02db Fix HeaderCreator usage.
GitOrigin-RevId: 1ac210190048ad2797751630a838f74541dda37d
2018-06-01 23:45:34 +03:00
levlam
b3ca84fffb Delete unused fields. Add test.
GitOrigin-RevId: 6ce7ff71d926142a7c178d56a2f489f1634322b9
2018-05-18 19:44:46 +03:00
levlam
536508193a Fix Wget for Internationalized Domain Names.
GitOrigin-RevId: 8be2d49b41bc3e6d2d3351833ab35bcf43c9b5f7
2018-05-18 16:15:01 +03:00
levlam
0c1d797753 Fix Wget redirects.
GitOrigin-RevId: da827d06832793592f2c8c47e7510922da776333
2018-05-18 02:03:21 +03:00
levlam
98289b9963 Add proxyMtproto to td_api.
GitOrigin-RevId: c872c063bc6e5d94c80ac1daa6b916f8ce5f4c23
2018-05-08 17:48:30 +03:00
levlam
19ba540336 Minor fixes.
GitOrigin-RevId: 84ddb085a4f086b5f4802620cb29a1e3a51d936f
2018-04-28 11:56:10 +03:00
levlam
8524a99faa Fix getter names.
GitOrigin-RevId: 19b6d420475d7ca7161fbb19658dcefa73de094f
2018-04-19 15:23:54 +03:00
levlam
05d17c3396 Support Retry-After.
GitOrigin-RevId: ca7cf22cf166aa75bb9266faa3b5d04df3c2ec5b
2018-04-19 15:03:10 +03:00
Arseny Smirnov
a96fc3d77f Wget: don't add second Host header
GitOrigin-RevId: 8a1a3fc4a880e6df435331ec60a0efd2e5c698a0
2018-03-13 22:31:37 +03:00
levlam
802e7eb8a0 Fix Socks5.
GitOrigin-RevId: 1a11e4c8c24218ab5fdcb52f695957f30c8109e1
2018-02-28 23:25:42 +03:00
levlam
33225f66ae Fix linking zlib to OpenSSL.
GitOrigin-RevId: c7dcc89d4a88a6c665007bfe7b48106829455c2f
2018-02-18 00:24:34 +03:00
levlam
83a5e3ae07 Fix linking to dl.
GitOrigin-RevId: ff7c6e330ecb07aee8b4f614e86bd5a3f54edce8
2018-02-17 23:52:35 +03:00
Arseny Smirnov
ccb6553a5d Improve TRY_RESULT define
GitOrigin-RevId: 399a4102f795c0c44d3089a1a3b341393c9f0f95
2018-02-16 12:09:50 +03:00
levlam
08620ba1b7 Allow body in GET requests.
GitOrigin-RevId: 3aca646ed271f1f1d4188dc1cde6c1044e03954b
2018-02-14 16:14:11 +03:00
levlam
a6ab35e616 Replace std::max/min with td::max/min.
GitOrigin-RevId: 56fb21194e995cbb37b3ebb5caed689c10320b8d
2018-02-12 13:37:54 +03:00
levlam
a7e9fb5e62 Remove more printf logging.
GitOrigin-RevId: f5573d9676426e21fde45bf4dace19ae53943e3c
2018-02-11 17:52:41 +03:00
levlam
55b16026c5 Optionally ignore EACCES in realpath.
GitOrigin-RevId: 8043b753ec748b6ff21accb5efde782047e5cd50
2018-01-26 16:47:46 +03:00
levlam
5cbda834bd Update copyright year.
GitOrigin-RevId: 1369d3af1195221f6ddb9462d5f8b74fb5fef20f
2018-01-02 16:45:09 +03:00
Arseny Smirnov
71d03f39c3 Project import generated by Copybara.
GitOrigin-RevId: 318483224ad6164d9966f731d60cde37039bb2d4
2017-12-31 23:08:40 +03:00