summaryrefslogtreecommitdiffstats
path: root/src/HTTP/UrlClient.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-05-19UrlClient: Fixed invalid Content-Length header.Niels Breuker1-1/+1
2023-05-19UrlClient: Fixed blocking request's error return value.Mattes D1-3/+12
2023-05-19cTCPLink and cUrlClient accept list of trusted root CAs for TLS.Mattes D1-26/+59
2023-05-19cTCPLink: Use the original connection hostname for SNI.Mattes D1-1/+1
2023-05-19Auth SSL Fixesx12xx12x1-17/+116
- Fixed Login Breaking bug - Auth and MojangAPI now use UrlClient - fixed bug in UrlClient where one letter was missing in the HTTP Header - added function to verify Urls from config files and error handling on bad Urls in config for Auth
2023-05-16Removed all Printf-family functions from StringUtils.Mattes D1-12/+12
Replaced them with fmt::format calls, including changes to the format strings. Also changed the format strings to use FMT_STRING, so that the format is checked compile-time against the arguments. Also fixed code-style violations already present in the code.
2020-05-15Enable some more clang-tidy linter checks (#4738)peterbell101-3/+3
* Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
2020-04-16Using Super.Mattes D1-1/+2
2018-02-20Fix cUrlClient leak (#4125)peterbell101-17/+20
Fixes #4040 * The TCP connection is now shutdown after OnBodyFinished * Any open connections are closed when cNetworkSingleton::Terminate() is called. * Removed ownership cycles in cUrlClientRequest * Added a check to the test to ensure there are no leaks.
2017-08-30Update mbedtls to 2.5.1 (#3964)peterbell101-2/+2
* Renaming changes: * macro prefix "POLARSSL" -> "MBEDTLS" * functions now prefixed with "mbedtls_" * rename PolarSSL++ -> mbedTLS++ * rename polarssl submodule * Use mbedtls' AES-CFB8 implementation. * Add cSslConfig to wrap mbedtls_ssl_config * Update cTCPLink and cBlockingSslClientSocket to use cSslConfig * Use cSslConfig in cHTTPServer * Use cSslConfig for cMojangAPI::SecureRequest * CI Fixes * Set -fomit-frame-pointer on the right target
2017-07-21Remove smart pointer macrospeterbell101-6/+6
2016-08-22cUrlClient: Refactored callbacks to use UniquePtr.Mattes D1-20/+20
2016-08-22cTCPLink supports TLS out of the box.Mattes D1-5/+69
2016-08-22UrlClient: Basic HTTP implementation.Mattes D1-0/+611