Function rename
This commit is contained in:
parent
f2c4f56ccd
commit
ad247735fd
@ -190,7 +190,7 @@ void cAuthenticator::Execute(void)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool cAuthenticator::ConnectSecurelyToAddress(const AString & a_CACerts, const AString & a_ExpectedPeerName, const AString & a_Data, AString & a_Response)
|
bool cAuthenticator::SecureGetFromAddress(const AString & a_CACerts, const AString & a_ExpectedPeerName, const AString & a_Data, AString & a_Response)
|
||||||
{
|
{
|
||||||
// Connect the socket:
|
// Connect the socket:
|
||||||
cBlockingSslClientSocket Socket;
|
cBlockingSslClientSocket Socket;
|
||||||
@ -263,7 +263,7 @@ bool cAuthenticator::AuthWithYggdrasil(AString & a_UserName, const AString & a_S
|
|||||||
Request += "\r\n";
|
Request += "\r\n";
|
||||||
|
|
||||||
AString Response;
|
AString Response;
|
||||||
if (!ConnectSecurelyToAddress(gStarfieldCACert, m_Server, Request, Response))
|
if (!SecureGetFromAddress(gStarfieldCACert, m_Server, Request, Response))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ private:
|
|||||||
virtual void Execute(void) 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 */
|
/** 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_Request, AString & a_Response);
|
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
|
/** Returns true if the user authenticated okay, false on error
|
||||||
Sets the username, UUID, and properties (i.e. skin) fields
|
Sets the username, UUID, and properties (i.e. skin) fields
|
||||||
|
Loading…
x
Reference in New Issue
Block a user