summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Authenticator.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-16 12:21:02 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-16 12:21:02 +0200
commitf2c4f56ccd1862fb6d02f6f2dfb3230123f465cf (patch)
treeda771b9b54e3ec3ea775f96343dd8b7d3d36b401 /src/Protocol/Authenticator.h
parentStore properties as Json::Value (diff)
downloadcuberite-f2c4f56ccd1862fb6d02f6f2dfb3230123f465cf.tar
cuberite-f2c4f56ccd1862fb6d02f6f2dfb3230123f465cf.tar.gz
cuberite-f2c4f56ccd1862fb6d02f6f2dfb3230123f465cf.tar.bz2
cuberite-f2c4f56ccd1862fb6d02f6f2dfb3230123f465cf.tar.lz
cuberite-f2c4f56ccd1862fb6d02f6f2dfb3230123f465cf.tar.xz
cuberite-f2c4f56ccd1862fb6d02f6f2dfb3230123f465cf.tar.zst
cuberite-f2c4f56ccd1862fb6d02f6f2dfb3230123f465cf.zip
Diffstat (limited to 'src/Protocol/Authenticator.h')
-rw-r--r--src/Protocol/Authenticator.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Protocol/Authenticator.h b/src/Protocol/Authenticator.h
index 9f6dd60ca..9c2405315 100644
--- a/src/Protocol/Authenticator.h
+++ b/src/Protocol/Authenticator.h
@@ -85,13 +85,12 @@ private:
virtual void Execute(void) override;
/** Connects to a hostname using SSL, sends given data, and sets the response, returning whether all was successful or not */
- bool ConnectSecurelyToAddress(const AString & a_CACerts, const AString & a_ExpectedPeerName, const AString & a_Data, AString & a_Response);
+ bool ConnectSecurelyToAddress(const AString & a_CACerts, const AString & a_ExpectedPeerName, const AString & a_Request, AString & a_Response);
- /** Returns true if the user authenticated okay, false on error; iLevel is the recursion deptht (bails out if too deep) */
- bool AuthWithYggdrasil(AString & a_UserName, const AString & a_ServerId, AString & a_UUID);
-
- /** Gets the properties, such as skin, of a player based on their UUID via Mojang's API */
- bool GetPlayerProperties(const AString & a_UUID, Json::Value & a_Properties);
+ /** Returns true if the user authenticated okay, false on error
+ Sets the username, UUID, and properties (i.e. skin) fields
+ */
+ bool AuthWithYggdrasil(AString & a_UserName, const AString & a_ServerId, AString & a_UUID, Json::Value & a_Properties);
};