summaryrefslogtreecommitdiff
path: root/src/login
AgeCommit message (Collapse)AuthorFilesLines
2020-05-04Dont validate packet in login_char_server_connection_statusAndrei Karas1-4/+4
This will hide packet error on wrong password between login and char servers.
2020-03-30Disable libbacktrace by defaultHaru1-6/+12
It's currently only tested on linux, and doesn't work yet on macOS (tested on 10.15). Further work is necessary Signed-off-by: Haru <haru@dotalux.com>
2020-03-30Fix Makefile-based compilation on platforms that use libbacktrace with a ↵Haru1-1/+1
different executable format than elf
2020-03-30Add libbacktraceAndrei Karas1-4/+15
2020-01-13Update copyright headers for year 2020Haru16-25/+25
Signed-off-by: Haru <haru@dotalux.com>
2019-02-01Merge pull request #2151 from dastgirp/login/messageHaru1-7/+8
Updated message on char-server
2019-02-01Updated login-server to give appropriate response code to char-server when ↵Dastgir1-7/+8
IP is not allowed Updated char-server to show proper error message. Fixes #737 Signed-off-by: Haru <haru@dotalux.com>
2018-12-12Add ifdefs for packet limits defines in lclif.p.hAndrei Karas1-0/+6
2018-12-12Update packet AC_LOGIN_OTP.Andrei Karas2-27/+47
2018-12-12Increase default value for MAX_PACKET_LOGIN_DB to 0xad0Andrei Karas1-1/+1
2018-12-12Move packets struct in login server into separate files for AC and CA packets.Andrei Karas6-300/+369
2018-12-12Rename structs packet_* into PACKET_*Andrei Karas2-56/+51
2018-12-12Rename defines PACKET_ID_* to HEADER_*Andrei Karas4-55/+53
2018-11-27Add incomplete packet CA_OTP_CODE.Andrei Karas2-1/+25
2018-11-27Add packet AC_REQ_MOBILE_OTPAndrei Karas3-2/+24
2018-11-27Add incomplete packet CA_ACK_MOBILE_OTP.Andrei Karas2-0/+34
2018-11-14Add send packet validation for connections between server and clients.Andrei Karas1-0/+2
2018-11-14Add interface for packets in common.Andrei Karas3-4/+5
For now supported only packet length fields.
2018-07-23Merge pull request #2127 from sctnightcore/FixDateHaru2-2/+2
Fix date
2018-07-12Fix dateUnknown2-2/+2
2018-07-12Add new auth error packet for main and re packet versions.Andrei Karas1-1/+1
2018-07-01Change functions to static where possible (Part 2 - login)Haru5-163/+169
This fixes issues with plugins defining symbols with the same names Signed-off-by: Haru <haru@dotalux.com>
2018-06-29Add support for new auth error packet in zero.Andrei Karas2-1/+5
Add support for known auth error packets in map server (before was used only old packet).
2018-06-13Add some missing fields into AC_ACCEPT_LOGIN.Andrei Karas1-1/+2
2018-05-312012-2018 !Maytichai Saowa9-9/+9
2018-02-27fix null pointer in login.c in login->accounts.Andrei Karas1-1/+3
This affect only plugins.
2018-02-10Clean up trailing whitespace and non-indent tabsHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2018-02-09Add account_engine into login interface.Andrei Karas2-11/+13
2018-02-09Add global variables into loginlog interface.Andrei Karas2-41/+58
2018-02-09Add interface into loginlog.c.Andrei Karas6-20/+50
2018-02-09Create lchrif interface in login.cAndrei Karas2-8/+33
2018-02-09Rename in login.c methods chrif_* into lchrif_*.Andrei Karas1-11/+11
2018-02-09Add interface into ipban.c.Andrei Karas5-70/+105
2018-02-09Add interface into account.c.Andrei Karas4-84/+112
2018-02-09Add server[MAX_SERVERS] into login interface.Andrei Karas3-69/+73
2018-02-09Add loginlog_ prefix to all functions in loginlog.cAndrei Karas4-9/+9
2018-02-09Add account_ prefix to all functions in account.cAndrei Karas3-14/+15
2018-02-09Remove suffix "_sql" from files in login directory.Andrei Karas4-1/+1
2017-12-08Update 0x0ae3 packet for new zero clients.Andrei Karas1-1/+9
Old packet look like worked too, because this is fake packet, but better send it in correct way.
2017-12-08Fix otp packet for zero clients before 2017-11-13bRagexe.Andrei Karas1-0/+2
2017-12-02Add support for OTP login packet.Andrei Karas4-2/+55
This packet totally ignored and for now need only for zero clients.
2017-11-18Pass the correct types and sizes to the StmtBind functionsHaru1-17/+17
Fixes #1531 (and other similar issues) Signed-off-by: Haru <haru@dotalux.com>
2017-10-29Add configurable way to show char servers with color in list in client.Andrei Karas3-1/+68
Options configurable in login-server.conf in users_count section.
2017-10-27Add missing interface members in login.c.Andrei Karas2-16/+41
2017-06-03Add packet 0x0ac4 for 2017-03-15+ based on 3CeAM commit:Andrei Karas2-0/+12
commit 70e0efb7035707542a091c8f2edb533f89b2552f Author: rytech16 <rytech16@cad27aaa-dce3-4a30-a00a-e4fd67c11881> Date: Tue Apr 18 21:42:40 2017 +0000 =General *Added temporarly support for the 2017-03-29dRagexeRE -This is for experimental testing and will not stay in the future. *Added support for the AC_ACCEPT_LOGIN4 packet. -March 2017 and newer clients require this since they no longer -support the legacy AC_ACCEPT_LOGIN packet. git-svn-id: svn://svn.code.sf.net/p/v1-3ceam/code/trunk@816 cad27aaa-dce3-4a30-a00a-e4fd67c11881
2016-11-19Extend the previous linker library order fix to other makefilesHaru1-3/+3
This also fixed a typo (misplaced parentheses around LIBCONFIG_OBJ) in the *_DEPENDS variable of makefiles Signed-off-by: Haru <haru@dotalux.com>
2016-08-20Re-added HPM support for configuration settingsHaru1-1/+2
Plugin settings should be relative to the the libconfig file root. For example, a configuration setting of type HPCT_CHAR will be relative to the root of conf/char/char-server.conf. In order to add a configuration entry inside the char_configuration block, the full configuration path (slash-delimited) should be passed to addCharConf(), as in the following example: `addCharConf("char_configuration/my_setting", my_parser_function);` Signed-off-by: Haru <haru@dotalux.com>
2016-08-19Ported socket.conf (was packet.conf) to libconfigHaru1-0/+1
Ported to modern Hercules and cleaned up from Panikon's commits: b10f2a88073882bea812c6278fdec7848102ab87, bc5007299a92898ea4630f2a977d9a1b42b6c145 Signed-off-by: Haru <haru@dotalux.com>
2016-08-19Ported login-server.conf to libconfigHaru8-501/+808
Ported to modern Hercules and cleaned up from Panikon's commits: ceb8a486ac47c2ed9aae4baa1ec39a11f31e9368, c1049123a4ea6ae6f0992ffe766db8aed7435ab5, 6feb097046355610d2288670a569ccc175358580, 9f6e27a96d655f2b4555310786d9d10898754404, 21fa5d24255ba026f96b1dbedf74ac5ef831d3ae, e22a56ad4def8ca22e94d44377a5364b9db1a425, f753a754923140bfec02057c16e6e8429b863d0e, 25dde7e46524ace330b83cb4bf0255cc4d796792 Signed-off-by: Haru <haru@dotalux.com>
2016-08-10Fix login and char servers null pointer access if packet handler in plugin ↵Andrei Karas1-1/+4
initiate server termination.