summaryrefslogtreecommitdiff
path: root/src/login/login.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-15 18:24:49 +0300
committerAndrei Karas <akaras@inbox.ru>2018-12-12 21:18:05 +0300
commit6343c26dec1b8e9ae36fc3b8426dfd7b7dc09d7e (patch)
treef91c31a3a6c194b9378f4d6a2a650342f044478e /src/login/login.c
parent5964302e6cd5a8cceda5b7fd3cb85f8081815d7d (diff)
downloadhercules-6343c26dec1b8e9ae36fc3b8426dfd7b7dc09d7e.tar.gz
hercules-6343c26dec1b8e9ae36fc3b8426dfd7b7dc09d7e.tar.bz2
hercules-6343c26dec1b8e9ae36fc3b8426dfd7b7dc09d7e.tar.xz
hercules-6343c26dec1b8e9ae36fc3b8426dfd7b7dc09d7e.zip
Move packets struct in login server into separate files for AC and CA packets.
Diffstat (limited to 'src/login/login.c')
-rw-r--r--src/login/login.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/login/login.c b/src/login/login.c
index 409b30473..67abd45af 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -27,6 +27,7 @@
#include "login/ipban.h"
#include "login/loginlog.h"
#include "login/lclif.h"
+#include "login/packets_ac_struct.h"
#include "common/HPM.h"
#include "common/cbasetypes.h"
#include "common/conf.h"
@@ -68,14 +69,6 @@ static AccountDB *accounts = NULL;
//-----------------------------------------------------
#define AUTH_TIMEOUT 30000
-#if PACKETVER_MAIN_NUM >= 20181114 || PACKETVER_RE_NUM >= 20181114 || defined(PACKETVER_ZERO)
-struct PACKET_AC_REQ_MOBILE_OTP {
- int16 packet_id; ///< Packet ID (#HEADER_CA_SSO_LOGIN_REQ)
- uint32 aid; ///< Account ID
-} __attribute__((packed));
-DEFINE_PACKET_HEADER(AC_REQ_MOBILE_OTP, 0x09a2);
-#endif
-
/**
* @see DBCreateData
*/