summaryrefslogtreecommitdiffstats
path: root/src/mbedTLS++ (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fixes for api changes in embedtls (#5540)x12xx12x2024-11-082-6/+9
| | | | | | | | | | | | | * fixes for api changes in embedtls * Use mbedtls 2.28.9 * Update mbedtls to point to merged master commit. * Fix indentation style. --------- Co-authored-by: Alexander Harkness <me@bearbin.net>
* cTCPLink and cUrlClient accept list of trusted root CAs for TLS.Mattes D2023-05-193-101/+3
|
* cTCPLink: Use the original connection hostname for SNI.Mattes D2023-05-191-1/+3
|
* Auth SSL Fixesx12xx12x2023-05-195-10/+108
| | | | | | | - 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
* Removed all Printf-family functions from StringUtils.Mattes D2023-05-162-9/+9
| | | | | 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.
* Update to mybed 3.0.0 (#5275)Tiger Wang2021-07-272-17/+11
|
* Protocol: call the encryptor once before sending dataTiger Wang2021-07-062-9/+5
|
* Fix Windows XP to 7 compatibility (#5167)Tiger Wang2021-03-282-6/+6
| | | | | * Partially reverts 01a4e696b * Unify thread names - Remove use of GetThreadId API
* Do protocol decryption in-place (with CryptoAPI on Windows) (#5145)Tiger Wang2021-03-082-12/+55
|
* Fix debug macro situation (#5114)Tiger Wang2021-01-261-3/+3
| | | Use the standard NDEBUG.
* zlib -> libdeflate (#5085)Tiger Wang2021-01-116-68/+16
| | | | | | + Use libdeflate + Use std::byte * Fix passing temporary to string_view + Emulate make_unique_for_overwrite
* Fixes incorrect var name in RsaPrivateKey.cppAzurethi2020-12-051-1/+1
| | | Fixed an incorrect variable name in src/mbedTLS++/RsaPrivateKey.cpp : cRsaPrivateKey::Decrypt.
* Upgrade to C++17 [CMake] (#4717)Tiger Wang2020-05-161-8/+2
| | | * Make our CMake slightly less insane
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-152-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Using Super.Mattes D2020-04-161-2/+3
|
* Initial resource pack support (#4622)Mat2020-04-072-1/+18
|
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-294-7/+4
| | | | | | | Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-264-7/+0
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Prefer static_cast to reinterpret_cast (#4223)peterbell102018-05-026-9/+9
| | | | | | | * Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
* Deal with covered switches consistently (#4161)peterbell102018-02-051-3/+1
| | | | | | | * Fixes a number of "<function>: not all control paths return a value" warnings on MSVC. * Introduces the UNREACHABLE global macro and uses it instead of conditionally compiled switch defaults. * Move cNBTParseErrorCategory from FastNBT.h into FastNBT.cpp to prevent bad calls to message()
* Add the fmt library (#4065)peterbell102018-01-031-4/+1
| | | | | | | * Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
* Fixed webadmin certificate reading.Mattes D2017-09-193-3/+10
|
* Removed UTF-8 BOM (#4033)Lukas Pioch2017-09-1924-24/+24
|
* Update mbedtls to 2.5.1 (#3964)peterbell102017-08-3028-0/+2604
* 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