summaryrefslogtreecommitdiff
path: root/src/login/login.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/login.h')
-rw-r--r--src/login/login.h33
1 files changed, 20 insertions, 13 deletions
diff --git a/src/login/login.h b/src/login/login.h
index e34942816..8470578aa 100644
--- a/src/login/login.h
+++ b/src/login/login.h
@@ -12,21 +12,28 @@
// supported encryption types: 1- passwordencrypt, 2- passwordencrypt2, 3- both
#define PASSWORDENC 3
-struct mmo_account {
- int version;
- char userid[NAME_LENGTH];
- char passwd[NAME_LENGTH];
- int passwdenc;
+struct login_session_data {
int account_id;
long login_id1;
long login_id2;
- char lastlogin[24];
char sex;
+
+ char userid[NAME_LENGTH];
+ char passwd[NAME_LENGTH];
+ int passwdenc;
+ char md5key[20];
+ uint16 md5keylen;
+
+ char lastlogin[24];
uint8 level;
+ int version;
+
+ int fd;
};
struct mmo_char_server {
+
char name[20];
int fd;
uint32 ip;
@@ -36,7 +43,7 @@ struct mmo_char_server {
uint16 new_; // allows creating new chars?
};
-extern struct Login_Config {
+struct Login_Config {
uint32 login_ip; // the address to bind to
uint16 login_port; // the port to bind to
@@ -62,13 +69,12 @@ extern struct Login_Config {
bool use_dnsbl; // dns blacklist blocking ?
char dnsbl_servs[1024]; // comma-separated list of dnsbl servers
-} login_config;
+};
+
+struct mmo_account {
-// TXT-specific account database
-// holds info about all existing accounts (entire contents of account.txt)
-extern struct auth_data {
int account_id;
- uint8 sex; // 0, 1, 2
+ char sex;
char userid[24];
char pass[32+1]; // 23+1 for normal, 32+1 for md5-ed passwords
char lastlogin[24];
@@ -82,6 +88,7 @@ extern struct auth_data {
char memo[255]; // a memo field
int account_reg2_num;
struct global_reg account_reg2[ACCOUNT_REG2_NUM]; // account script variables (stored on login server)
-} *auth_dat;
+};
+
#endif /* _LOGIN_H_ */