From 224d7e056466204a92f96a3d1324bc6ec0386dec Mon Sep 17 00:00:00 2001 From: greenboxal2 Date: Mon, 10 Sep 2012 19:28:58 +0000 Subject: 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 --- src/login/login.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/login/login.h') 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' ) -- cgit v1.2.3-70-g09d2