summaryrefslogtreecommitdiff
path: root/src/login/lclif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-15 07:33:05 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-27 23:10:23 +0300
commitfabfaf566459da17e1543be920769677d92c79b8 (patch)
treec18f225ad7223a057e64be576b83b987984f5fb7 /src/login/lclif.c
parent41d370cd3308be48b4ce00a50ee46515742978b0 (diff)
downloadhercules-fabfaf566459da17e1543be920769677d92c79b8.tar.gz
hercules-fabfaf566459da17e1543be920769677d92c79b8.tar.bz2
hercules-fabfaf566459da17e1543be920769677d92c79b8.tar.xz
hercules-fabfaf566459da17e1543be920769677d92c79b8.zip
Add incomplete packet CA_ACK_MOBILE_OTP.
Diffstat (limited to 'src/login/lclif.c')
-rw-r--r--src/login/lclif.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/login/lclif.c b/src/login/lclif.c
index 1cb8bfdbd..b9ad7372f 100644
--- a/src/login/lclif.c
+++ b/src/login/lclif.c
@@ -225,6 +225,14 @@ static enum parsefunc_rcode lclif_parse_CA_LOGIN_OTP(int fd, struct login_sessio
return PACKET_VALID;
}
+/// @copydoc lclif_interface_private::parse_CA_ACK_MOBILE_OTP()
+static enum parsefunc_rcode lclif_parse_CA_ACK_MOBILE_OTP(int fd, struct login_session_data *sd) __attribute__((nonnull (2)));
+static enum parsefunc_rcode lclif_parse_CA_ACK_MOBILE_OTP(int fd, struct login_session_data *sd)
+{
+ // TODO: parsing packet data
+ return PACKET_VALID;
+}
+
/// @copydoc lclif_interface_private::parse_CA_REQ_HASH()
static enum parsefunc_rcode lclif_parse_CA_REQ_HASH(int fd, struct login_session_data *sd) __attribute__((nonnull (2)));
static enum parsefunc_rcode lclif_parse_CA_REQ_HASH(int fd, struct login_session_data *sd)
@@ -515,6 +523,9 @@ static void packetdb_loaddb(void)
packet_def(CA_LOGIN_HAN),
packet_def2(CA_SSO_LOGIN_REQ, -1),
packet_def(CA_LOGIN_OTP),
+#if PACKETVER_MAIN_NUM >= 20181114 || PACKETVER_RE_NUM >= 20181114
+ packet_def(CA_ACK_MOBILE_OTP),
+#endif
packet_def(CA_REQ_HASH),
#undef packet_def
#undef packet_def2
@@ -579,6 +590,7 @@ void lclif_defaults(void)
lclif->p->parse_CA_LOGIN_HAN = lclif_parse_CA_LOGIN_HAN;
lclif->p->parse_CA_SSO_LOGIN_REQ = lclif_parse_CA_SSO_LOGIN_REQ;
lclif->p->parse_CA_LOGIN_OTP = lclif_parse_CA_LOGIN_OTP;
+ lclif->p->parse_CA_ACK_MOBILE_OTP = lclif_parse_CA_ACK_MOBILE_OTP;
lclif->p->parse_CA_REQ_HASH = lclif_parse_CA_REQ_HASH;
lclif->p->parse_CA_CHARSERVERCONNECT = lclif_parse_CA_CHARSERVERCONNECT;
}