From ef439f32648f3e9eca0c4f3b69413b53891cf3e7 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sat, 28 Apr 2007 14:34:58 +0000 Subject: * Tried and fixed md5 password encryption - login_sql was doing stupid things like re-using one pre-generated key for all connections, and escaping binary md5 data (destroying it) - added missing code to login_txt when creating new accounts, showing that storing passwords as md5 hashes never really worked for txt - removed PASSWORDENC's conditional compilation effect, now just a flag - greatly simplified md5 password checking code, credits to eapp * login server will now bind only after finishing the init phase git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10384 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/login/login.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/login/login.h') diff --git a/src/login/login.h b/src/login/login.h index f5a7856b3..f9fc9f484 100644 --- a/src/login/login.h +++ b/src/login/login.h @@ -6,10 +6,9 @@ #define LOGIN_CONF_NAME "conf/login_athena.conf" #define LAN_CONF_NAME "conf/subnet_athena.conf" -#define PASSWORDENC 3 // A definition is given when making an encryption password correspond. - // It is 1 at the time of passwordencrypt. - // It is made into 2 at the time of passwordencrypt2. - // When it is made 3, it corresponds to both. + +// supported encryption types: 1- passwordencrypt, 2- passwordencrypt2, 3- both +#define PASSWORDENC 3 extern uint16 login_port; -- cgit v1.2.3-60-g2f50