summaryrefslogtreecommitdiffstats
path: root/src/Protocol/MojangAPI.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add Class and Function Identifier Macro (#5481)x12xx12x2023-05-291-3/+3
| | | | | This adds a Macro which simply identifies the function and class name for error messages. Examples taken from the MojangAPI class [Choosen because I worked on that] processing is done during compile time. Should be cross compatible
* MojangAPI: Removed an unused TLS root CA.Mattes D2023-05-191-24/+1
|
* cTCPLink and cUrlClient accept list of trusted root CAs for TLS.Mattes D2023-05-191-17/+106
|
* Auth SSL Fixesx12xx12x2023-05-191-249/+27
| | | | | | | - 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-161-1/+1
| | | | | 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.
* MojangAPI: Update certificates (#5456)Tiger Wang2022-11-181-94/+71
| | | | | | | | * MojangAPI: Update certificates * Fixes 2115 (again). * Fixes #4832. * 🌺
* Use more URL-Encoding when sending API requests.Alexander Harkness2021-08-231-1/+1
|
* Fix Windows XP to 7 compatibility (#5167)Tiger Wang2021-03-281-1/+1
| | | | | * Partially reverts 01a4e696b * Unify thread names - Remove use of GetThreadId API
* Update submodules (#4727)peterbell102020-05-091-11/+11
| | | | | | | | | | | | | Closes #4708 This updates jsoncpp, mbedtls, TCLAP and SQLiteCpp to their latest stable release. A few additional changes were needed: * jsoncpp deprecated Reader, FastWriter and StyledWriter which I've replaced with some helper functions in JsonUtils.cpp * SQLiteCpp changed how it builds with external sqlite libraries, now expecting them to be installed. The simplest path was to remove sqlite from cuberite's submodule and just use SQLiteCpp's internal version.
* Using Super.Mattes D2020-04-161-4/+6
|
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-2/+2
| | | | | | | 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-261-1/+0
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Removed UTF-8 BOM (#4033)Lukas Pioch2017-09-191-1/+1
|
* Update mbedtls to 2.5.1 (#3964)peterbell102017-08-301-9/+35
| | | | | | | | | | | | | | | | | | | | | | * 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
* Add cUUID class (#3871)peterbell102017-08-251-127/+65
|
* Clang 5.0 fixesLukas Pioch2017-05-211-1/+1
| | | | | - Added override keyword - Removed inherited member variables
* Fixed problems in cBlockingSslClientSocket.Mattes D2015-12-301-2/+2
|
* Added GeoTrust Root Certificateworktycho2015-12-221-1/+24
|
* Added HTTPS links wherever they are supported.Alexander Harkness2015-12-191-27/+23
|
* Moved variables into scope, removed unused variables and fixed variablesLukas Pioch2015-12-171-2/+1
|
* Namechange to CuberiteMattes D2015-09-251-2/+2
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-3/+3
|
* Close Ssl Socket on destroyTiger Wang2015-05-231-1/+0
| | | | * Fixes #2072
* Added Equifax root CA.Mattes D2015-05-211-6/+31
| | | | | | Fixes #2076. Closes #2081. Ref.: #2072.
* Initial implementation of IniFile overloadingtycho2015-05-161-5/+5
|
* More style checking.Mattes D2015-05-091-2/+2
| | | | Spaces around some operators are checked.
* cMojangAPI: Fixed a possible problem with thread termination order.Mattes D2014-12-071-5/+17
|
* Merged IniFile into main MCS sources.Mattes D2014-10-231-1/+1
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-8/+8
|
* cMojangAPI: Don't update data if server is in offline mode.Mattes D2014-10-171-2/+5
|
* cMojangAPI: Added periodical refreshes.Mattes D2014-10-061-19/+111
|
* Init RankMgr pointer to NULLworktycho2014-08-311-1/+2
|
* Merge pull request #1290 from mc-server/RanksMattes D2014-08-261-0/+19
|\ | | | | Rewriting permission system to use UUIDs and Ranks
| * cMojangAPI updates cRankManager's playernames.Mattes D2014-08-211-0/+19
| |
* | Type warning fixes.Mattes D2014-08-251-1/+1
| |
* | Fixed a type warning.Mattes D2014-08-251-2/+2
|/
* MojangAPI: Fixed PlayerNameToUUID().madmaxoft2014-08-041-1/+1
|
* Refactored case-conversion functions.madmaxoft2014-08-041-30/+22
| | | | StrToLower() returns a modified copy of the string, InPlaceLowercase() modifies the string in-place.
* cMojangAPI: Added UUID-to-Name lookup.madmaxoft2014-08-031-42/+341
| | | | Also fixed the bindings, now all functions are static-like.
* Added cMojangAPI:GetUUIDFromPlayerName().madmaxoft2014-08-031-0/+28
| | | | This is a simpler way to ask for a single name -> uuid conversion.
* Removed trailing whitespace.madmaxoft2014-07-311-2/+2
|
* MojangAPI: Moved the settings to a separate ini section.madmaxoft2014-07-311-2/+2
|
* MojangAPI: Added a UseCachedOnly param to GetUUIDsFromPlayerNames().madmaxoft2014-07-311-2/+5
|
* MojangAPI: Renamed cache file to MojangAPI.sqlite.madmaxoft2014-07-301-2/+2
|
* MojangAPI: Clarified the UUID conversion code.madmaxoft2014-07-301-2/+13
|
* MojangAPI: Implemented UUID shortening and dashing.madmaxoft2014-07-301-7/+27
|
* Added a cMojangAPI class for PlayerName -> UUID lookups, with cache.madmaxoft2014-07-301-0/+446
The cache is persisted into a SQLite DB file on server shutdown.