summaryrefslogtreecommitdiff
path: root/src/login/login.h
diff options
context:
space:
mode:
authorgreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-10 19:28:58 +0000
committergreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-10 19:28:58 +0000
commit224d7e056466204a92f96a3d1324bc6ec0386dec (patch)
treea505f8003c46d9db8322812e93c5a0bc2158ca20 /src/login/login.h
parentb970380ed01b23c948c6cc1b9fc9e8f8a2deca53 (diff)
downloadhercules-224d7e056466204a92f96a3d1324bc6ec0386dec.tar.gz
hercules-224d7e056466204a92f96a3d1324bc6ec0386dec.tar.bz2
hercules-224d7e056466204a92f96a3d1324bc6ec0386dec.tar.xz
hercules-224d7e056466204a92f96a3d1324bc6ec0386dec.zip
Added client MD5 hash check option to login-server.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16771 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login/login.h')
-rw-r--r--src/login/login.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/login/login.h b/src/login/login.h
index e79f44626..bedf5e179 100644
--- a/src/login/login.h
+++ b/src/login/login.h
@@ -21,7 +21,6 @@ enum E_LOGINSERVER_ST
#define PASSWORDENC 3
struct login_session_data {
-
int account_id;
long login_id1;
long login_id2;
@@ -38,6 +37,9 @@ struct login_session_data {
uint8 clienttype;
uint32 version;
+ uint8 client_hash[16];
+ int has_client_hash;
+
int fd;
};
@@ -52,6 +54,12 @@ struct mmo_char_server {
uint16 new_; // should display as 'new'?
};
+struct client_hash_node {
+ int group_id;
+ uint8 hash[16];
+ struct client_hash_node *next;
+};
+
struct Login_Config {
uint32 login_ip; // the address to bind to
@@ -78,6 +86,9 @@ struct Login_Config {
char dnsbl_servs[1024]; // comma-separated list of dnsbl servers
char account_engine[256]; // name of the engine to use (defaults to auto, for the first available engine)
+
+ int client_hash_check; // flags for checking client md5
+ struct client_hash_node *client_hash_nodes; // linked list containg md5 hash for each gm group
};
#define sex_num2str(num) ( (num == SEX_FEMALE ) ? 'F' : (num == SEX_MALE ) ? 'M' : 'S' )