Shauren
9ec2a82cac
Core/Misc: Prefix all preprocessor defines from CompilerDefs with TRINITY_ to avoid conflicts (PLATFORM_WINDOWS is used/defined by CascLib)
...
(cherry picked from commit b8db320bf1 )
2017-05-23 18:46:44 +02:00
Shauren
14abd1f587
Core/Auth: Per SRP6a protocol, terminate connection of A % N == 0. This resolves another authentication bypass issue
...
(cherry picked from commit cmangos/mangos-wotlk@ea3e08a812 )
2017-03-15 21:41:58 +01:00
Gildor
b209353266
Build Fix ( #19004 )
2017-01-29 18:15:21 +01:00
Tonghost
684a5fd3f1
Core/Auth: Use QueryCallbackProcessor insted boost::optional. Fixes build for boost 1.55.0
2017-01-26 13:21:58 -03:00
Shauren
4c27203c8f
Core/DBLayer: Convert async queries to new query callbacks and remove old callback handling
...
(cherry picked from commit 8e2634b2b4 )
Conflicts:
src/server/bnetserver/Server/Session.cpp
src/server/bnetserver/Server/Session.h
src/server/database/Database/QueryCallback.cpp
src/server/game/Handlers/CharacterHandler.cpp
src/server/game/Handlers/SocialHandler.cpp
src/server/game/Server/WorldSession.cpp
src/server/game/Server/WorldSession.h
src/server/game/Server/WorldSocket.cpp
src/server/game/Server/WorldSocket.h
src/server/game/World/World.cpp
src/server/game/World/World.h
2017-01-25 23:38:13 -03:00
tkrokli
6a51a88767
Update Copyright notice for 2017
...
Happy new year!
2017-01-02 19:52:45 +01:00
Chaosvex
ed2cd6b34f
Core/Auth: Resolved authentication bypass
2016-11-10 23:00:58 +01:00
joschiwald
ec221c5500
Core/Auth: removed unneeded sub query
2016-09-25 18:06:01 +02:00
joschiwald
96316530d8
Core/Auth: fixed logic in FailedLogins check
2016-09-24 20:03:31 +02:00
Aokromes
1ad24352ac
Core/Logs: Fine tune more logs
...
And move others to more logical appenders
2016-08-11 09:10:20 +02:00
jackpoz
e4b2e0450f
Common/Crypto: Reduce differences between 3.3.5 and 6.x branches
...
Code functionality shouldn't have been modified.
2016-08-03 23:33:36 +02:00
Naios
d4d199d765
Core/Common: Move the query callback header to the database project
...
* Also renames the header to it's correct name QueryCallback
2016-05-10 18:16:13 +02:00
Trond B Krokli
329006d310
Core/authserver.conf.dist: missing description line ( #17038 )
...
This line is missing from authserver.conf.dist :
`# MySQL server and their own thread on the MySQL server.`
I have copied this description text line from the matching description in
`worldserver.conf.dist` (line 108 in the 3.3.5 worldserver source file).
This line is also missing in bnetserver.conf.dist , but the files are different
in line number, filename and folder, so bnetserver needs a separate commit.
2016-04-25 23:26:04 +01:00
joschiwald
9ee67b42f3
Core/Authserver: removed obsolete code
2016-04-23 12:25:34 +02:00
Naios
86b0fcf67a
Core/Scripting: Use the path of the worldserver executable to search for the scripts dir
...
* Fixes issues when starting the worldserver not in the bin directory
or the CMAKE_INSTALL_PREFIX directory using the -c option.
2016-04-18 21:02:01 +02:00
Gacko
070bedae0c
Add missing configuration key LoginDatabase.SynchThreads.
...
(cherry picked from commit b23a6aeaff )
# Conflicts:
# src/server/bnetserver/bnetserver.conf.dist
2016-04-11 01:20:47 +01:00
Shauren
702cfefddb
Buildsystem: Initial changes to support building with vs clang toolset
...
(cherry picked from commit 4a3a178d7f )
2016-04-09 12:38:20 +02:00
Shauren
778f1725f8
Core/Misc: Moved RealmList to shared
...
(cherry picked from commit cfe8a6a58b )
2016-04-09 12:30:00 +02:00
DDuarte
980f28d2ce
Core/Network: Change SocketMgr.StartNetwork to take the thread count by arg instead of config
...
AuthSocketMgr doesn't need "Network.Threads" config
Fixes "Missing name Network.Threads in config file authserver.conf"
Ref #16859
2016-03-28 02:02:29 +01:00
Naios
03d249f063
CMake: Use inherited dependencies in worldserver and authserver
...
* Closes #1679
2016-03-18 14:27:43 +01:00
Naios
f52495c66b
Dep/CppFormat: Update cppformat to cppformat/cppformat@5174b8c
2016-03-16 15:36:32 +01:00
Shauren
fd819b0919
Core/Debugging: Make abort() less bad on windows by forcing crash log generation
...
(cherry picked from commit dea7d429ab )
# Conflicts:
# src/server/bnetserver/Main.cpp
2016-03-12 23:52:35 +01:00
Shauren
2a37266269
Core/Auth: Fixed login for accounts with accented characters
...
Closes #16770
2016-03-12 21:22:16 +01:00
Naios
3a4ec8bcbe
Core/Database: Move singleton instances into compilation units
...
* Fixes issues when building shared libraries
(prevents gcc and clang from providing several instance)
* Also instantiate the database worker pools in DatabaseEnv.cpp now.
(cherry picked from commit a8fe7f6eb7 )
2016-03-11 19:51:07 +01:00
Naios
fbe724fab9
Core/Common: Generalize platform specific includes in common/Platform
...
(cherry picked from commit 30517cb1d3 )
2016-03-11 19:09:56 +01:00
DDuarte
7b687be4ba
Core/Auth: Fix the "Added realm" spam
2016-03-07 00:06:13 +00:00
DDuarte
6cd63ca3d4
Core/Authserver: Partial port of 56cf7ff2a8
...
Change the "UpdateIfNeed" logic to a deadline_timer
2016-03-06 19:46:59 +00:00
DDuarte
2ea31027e5
Core: Backport 6.x realm changes
...
Make acessible all the info about current realm (e.g name) anywhere, not only realm id
Reduce the number of differences between the two branches
Original changes by Shauren
Partial port of bacc90b6ba and 63def8aa32
2016-03-06 19:46:59 +00:00
Naios
b5369b7d87
Core/Common: Add a generic config helper to access built-in overwriteable paths.
...
* Adds CMAKE_COMMAND and CMAKE_BINARY_DIR to revision_data.h
* Move the source and mysql exe path handling out of the DBUpdater.
* Make some Config methods const for correctness.
* Remove C & CXX flags from revision_data.h
(was unused and didn't capture all cxx vars)
* Reorder the link order to prevent `ld` from ignoring the file
* Ref #15671
(cherry picked from commit 719159e207 )
2016-02-22 16:25:47 +01:00
Shauren
b2e03a7448
Core/Networking: Rewrite networking threading model
...
Each network thread has its own io_service - this means that all operations on a given socket except queueing packets run from a single thread, removing the need for locking
Sending packets now writes to a lockfree intermediate queue directly, encryption is applied in network thread if it was required at the time of sending the packet
(cherry picked from commit 97a79af470 )
2016-02-20 13:08:03 +01:00
Shauren
655fc0135f
Core/Auth: Cancel ban expiry check timer on shutdown
2016-02-16 00:16:31 +01:00
Shauren
811c8bbd69
Build fix
2016-02-15 19:40:34 +01:00
Shauren
dfbb3bec56
Core/Auth: Moved expiring bans to background task - no longer blocking queries during login by default running every minute (configurable)
2016-02-15 19:38:53 +01:00
Shauren
ce6221b10b
Warning fix
2016-02-14 18:47:12 +01:00
Shauren
5bf90b3338
Core/Auth: Performance/security improvements
...
* Changed all db queries to async
* Added buffer length checks
* Only allow one challenge/proof packet per socket lifetime
Closes #13217
Closes #16602
2016-02-14 18:41:25 +01:00
Shauren
a3dbfa5eb6
Core/Authserver: Do not close the socket immediately when user types in invalid authenticator token to allow receiving failure packet
2016-01-05 18:46:21 +01:00
Rushor
923a368ac7
Update copyright note for 2016
2016-01-01 12:02:33 +01:00
Gacko
1f839b2434
Auth/Login: Rename config key usage
...
Related: 193dd505
2015-12-19 14:34:05 +01:00
Gacko
193dd505fa
Config/AuthServer: Rename Wrong.Password.Login.Logging to WronPass.Logging and move to correct section.
2015-12-19 13:42:11 +01:00
Sean Rhone
c0224d7874
Update authserver.conf.dist
...
- Added new line for consistency
2015-09-28 19:12:29 -04:00
StormBytePP
7b245a0b6b
Core: Added ABORT() macro to prevent the usage of ASSERT(false) as a quick hack to crash the core misusing assert
2015-09-21 15:11:06 +02:00
m_pan
1503be010b
Config: Minor Typo
...
# Updates.SourcePath > # Updates.MySqlCLIPath
2015-09-08 13:49:14 -05:00
StormBytePP
405f823f68
Core/BuildSystem: Merged crypto and gitrevision into common, cleaned include directory lists (to mimic 6.x buildsystem)
2015-08-24 03:38:54 +02:00
StormBytePP
0cc3d883e1
Core/Build: Renamed Revision.h to GitRevision.h to avoid compile failure when old revision.h file is present
2015-08-16 23:08:01 +02:00
StormBytePP
1f66d719f2
Core/BuildSystem: Merge collision, debugging, threading, utilities and configuration into "common" which does not depend on shared anymore and moved database out of shared library
...
These changes enables to build tools only without even having MySQL installed
2015-08-16 21:23:15 +02:00
Shauren
222eaccc51
Build fix for WheatyExceptionReport, c++ exceptions must not be thrown in SEH handlers
2015-08-16 18:08:03 +02:00
StormBytePP
94f69fb1bc
Core/Build: Removed obsolete SystemConfig.h and made genrev be part of shared library, which allows cache hits to happen more likely
2015-08-16 17:15:38 +02:00
Shauren
cdbd563157
Core/Logging: Refactored appender creation to allow using logging without mysql dependency in tools (future task)
...
Conflicts:
src/server/bnetserver/Main.cpp
src/server/worldserver/Main.cpp
2015-08-16 00:09:02 +01:00
DDuarte
be32beee57
Core/Executables: Add --version and -v to worldserver and authserver arguments
...
Closes #14993
(cherry picked from commit 0f082e8f92 )
Conflicts:
src/server/bnetserver/Main.cpp
2015-07-04 02:54:23 +01:00
jackpoz
55681666b3
Core/Misc: Fix build warnings
2015-07-01 20:57:20 +02:00