summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/clientloginpacket.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-11 13:33:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-11 13:33:42 +0000
commit85bd008c039eb1d93894e94fba9d158a42a71a12 (patch)
tree2d72d10759f6928e9e4b960175d2de01b5cf7e12 /protocols/Xfire/src/clientloginpacket.h
parent222802c2986dcaf029fdfb828b7679bdabfa7bb2 (diff)
massive code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@14910 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/clientloginpacket.h')
-rw-r--r--protocols/Xfire/src/clientloginpacket.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/protocols/Xfire/src/clientloginpacket.h b/protocols/Xfire/src/clientloginpacket.h
index 56f8641b25..8a747e1332 100644
--- a/protocols/Xfire/src/clientloginpacket.h
+++ b/protocols/Xfire/src/clientloginpacket.h
@@ -33,38 +33,38 @@
namespace xfirelib {
- /**
- * (Internal) Packet used to send login/authorization data.
- * Users of xfirelib should not use it, call
- * Client::connect( std::string username, std::string password )
- * instead.
- */
- class ClientLoginPacket : public XFireSendPacketContent {
- public:
- XFirePacketContent* newPacket() { return new ClientLoginPacket(); }
+ /**
+ * (Internal) Packet used to send login/authorization data.
+ * Users of xfirelib should not use it, call
+ * Client::connect( std::string username, std::string password )
+ * instead.
+ */
+ class ClientLoginPacket : public XFireSendPacketContent {
+ public:
+ XFirePacketContent* newPacket() { return new ClientLoginPacket(); }
- int getPacketId() { return 1; }
- int getPacketContent(char *buf);
- int getPacketAttributeCount();
- int getPacketSize() { return 1024; };
- void setUsername(std::string name) {this->name = name;}
- void setPassword(std::string password) {this->password = password; };
+ int getPacketId() { return 1; }
+ int getPacketContent(char *buf);
+ int getPacketAttributeCount();
+ int getPacketSize() { return 1024; };
+ void setUsername(std::string name) {this->name = name;}
+ void setPassword(std::string password) {this->password = password; };
- /**
- *Set the salt the server sent us to crypt the password
- *@param salt The VariableValue object that we extracted from the packet
- */
- void setSalt(VariableValue *salt) {this->salt = salt; };
+ /**
+ *Set the salt the server sent us to crypt the password
+ *@param salt The VariableValue object that we extracted from the packet
+ */
+ void setSalt(VariableValue *salt) {this->salt = salt; };
- void parseContent(char *buf, int length, int numberOfAtts) { };
- private:
- void cryptPassword(unsigned char *crypt);
- void hashSha1(const char *string, unsigned char *sha);
- int length;
- std::string name;
- std::string password;
- VariableValue *salt;
- };
+ void parseContent(char*, int, int) { };
+ private:
+ void cryptPassword(unsigned char *crypt);
+ void hashSha1(const char *string, unsigned char *sha);
+ int length;
+ std::string name;
+ std::string password;
+ VariableValue *salt;
+ };
};