summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Authenticator.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-29 17:45:55 +0200
committermadmaxoft <github@xoft.cz>2014-07-30 13:56:29 +0200
commit4dd858f8997488e2252f5a04df9df1654a70d67f (patch)
treebc6aa5f62851eaec507a167298ce98746e02d246 /src/Protocol/Authenticator.h
parentFixed SQLiteCpp include paths for MSVC2010+. (diff)
downloadcuberite-4dd858f8997488e2252f5a04df9df1654a70d67f.tar
cuberite-4dd858f8997488e2252f5a04df9df1654a70d67f.tar.gz
cuberite-4dd858f8997488e2252f5a04df9df1654a70d67f.tar.bz2
cuberite-4dd858f8997488e2252f5a04df9df1654a70d67f.tar.lz
cuberite-4dd858f8997488e2252f5a04df9df1654a70d67f.tar.xz
cuberite-4dd858f8997488e2252f5a04df9df1654a70d67f.tar.zst
cuberite-4dd858f8997488e2252f5a04df9df1654a70d67f.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Authenticator.h27
1 files changed, 1 insertions, 26 deletions
diff --git a/src/Protocol/Authenticator.h b/src/Protocol/Authenticator.h
index 82ecb1f7a..853eff535 100644
--- a/src/Protocol/Authenticator.h
+++ b/src/Protocol/Authenticator.h
@@ -11,8 +11,6 @@
#pragma once
-#ifndef CAUTHENTICATOR_H_INCLUDED
-#define CAUTHENTICATOR_H_INCLUDED
#include "../OSSupport/IsThread.h"
@@ -53,12 +51,6 @@ public:
/** Stops the authenticator thread. The thread may be started and stopped repeatedly */
void Stop(void);
- /** Converts the player names into UUIDs.
- a_PlayerName[idx] will be converted to UUID and returned as idx-th value
- The UUID will be empty on error.
- Blocking operation, do not use in world-tick thread! */
- AStringVector GetUUIDsFromPlayerNames(const AStringVector & a_PlayerName);
-
private:
class cUser
@@ -91,34 +83,17 @@ private:
For example "/session/minecraft/hasJoined?username=%USERNAME%&serverId=%SERVERID%". */
AString m_Address;
- /** The server to connect to when converting player names to UUIDs. For example "api.mojang.com". */
- AString m_NameToUUIDServer;
-
- /** The URL to use for converting player names to UUIDs, without server part.
- For example "/profiles/page/1". */
- AString m_NameToUUIDAddress;
-
AString m_PropertiesAddress;
bool m_ShouldAuthenticate;
/** cIsThread override: */
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 SecureGetFromAddress(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
- Sets the username, UUID, and properties (i.e. skin) fields
- */
+ Returns the case-corrected username, UUID, and properties (eg. skin). */
bool AuthWithYggdrasil(AString & a_UserName, const AString & a_ServerId, AString & a_UUID, Json::Value & a_Properties);
};
-
-#endif // CAUTHENTICATOR_H_INCLUDED
-
-
-
-