Commit Graph

242 Commits

Author SHA1 Message Date
Vincent-Michael
a260454ad6 Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4 2014-06-28 21:08:20 +02:00
jackpoz
82df3f090b Auth/Misc: Move OpenSSL version log from Warning to Information 2014-06-28 17:55:40 +02:00
Vincent-Michael
d8234bed42 Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts:
	src/server/game/Accounts/AccountMgr.cpp
	src/server/game/Entities/Player/Player.h
	src/server/game/Server/WorldSocket.cpp
	src/server/game/World/World.cpp
2014-06-23 23:47:48 +02:00
Shauren
ec49d510fc Core/Battle.net: Defined more communication channels 2014-06-21 23:45:06 +02:00
Subv
b9d288e2ad Auth/Battle.net: Corrected some battle.net auth response enum values 2014-06-20 20:04:05 -05:00
Ascathor
6949735098 Core/Misc:
* Fix some codestyle, fix some typos

* Change CMakeLists for: Custom (can be uncommented), Events, World
** Custom is theoretically unchanged. You can, however, uncomment the glob_recurse that initializes every file within. This might be easier for beginners.

* Introducing the IP Based Action Log System:
** On several different actions, e.g. Login, Character Login, etc., a new entry is added
** Can be logged on and off in worldserver config
*** Disabled by default to prevent increased log db size for unknowing users.

* Add a new row to account table called 'last_attempt_ip'
** Lists the last ip trying to connect to the account

* Add a new type of HookScripts: AccountScript
** Includes: OnAccountLogin, OnFailedAccountLogin, OnEmailChange, OnFailedChange, OnPasswordChange, OnFailedPasswordChange

* Added new Hook to PlayerScripts: OnFailedPlayerDelete

* Added new variables to PlayerScripts: OnPlayerDelete
2014-06-13 16:25:11 +02:00
Shauren
0a6e81989a Core/Battle.net: Sorted out includes in BattlenetBitStream.h 2014-06-11 22:56:34 +02:00
Shauren
2b6575692b Core/Battle.net: Added missing include and fixed a warning 2014-06-11 20:51:48 +02:00
Shauren
fea9995797 Build fix 2014-06-11 18:17:45 +02:00
Shauren
434b3a80e1 Core/Commands: Added a set of commands to manage battle.net accounts
TODO: Ban commands, linking game accounts to battle.net accounts
2014-06-08 17:58:28 +02:00
Shauren
7dd552c826 Merge branch 'battle.net' into 4.3.4 2014-06-08 16:14:24 +02:00
Shauren
9f69eda67f Core/Battle.net: Additional checks
* Force grunt login for versions < 15595
* Force bn login if supported and game account is linked to bn account
2014-06-08 15:34:24 +02:00
Shauren
05c0524bf3 Core/Battle.net: Refactored handling multiple game accounts 2014-06-08 14:54:37 +02:00
Vincent-Michael
1d39db16b9 Core/Misc: Kill Whitespace ... 2014-06-07 23:58:08 +02:00
Shauren
6eee75a4f7 Core/Battle.net: Removed sending "b", it's supposed to stay secret 2014-06-03 19:15:12 +02:00
Shauren
7a27492071 Core/Crypto: Refactored HmacHash to make it easier to use with different hash algorithms 2014-06-03 18:15:35 +02:00
Shauren
c98853ca1c Core/Authserver: Added game account flags 2014-06-01 15:03:22 +02:00
Shauren
bdd6e9aa8a Core/Battle.net: Implemented reconnects 2014-06-01 13:56:36 +02:00
Shauren
dc5c5ef636 Core/Authserver: Refactoring - moved GetAddressForClient to Realm structure, changed BigNumber string methods to return std::string, added missing prepared statement 2014-06-01 13:03:30 +02:00
Shauren
db2cb70120 Core/Battle.net: Refactored ModuleInfo creation 2014-06-01 02:39:55 +02:00
Shauren
914d5d5366 Core/Battle.net: Fixed size check in bit stream 2014-06-01 02:36:50 +02:00
Shauren
cc748e2ba4 Core/Battle.net: Prevent joining invalid/offline realms 2014-05-31 18:19:53 +02:00
Shauren
1094783715 Merge branch '4.3.4' of github.com:TrinityCore/TrinityCore into 4.3.4 2014-05-17 14:20:35 +02:00
Praetonus
f296095191 Fix various warnings. The core, the scripts and the tools now compile without warnings with -Wall -Wextra -pedantic.
-Fix warnings from -Woverflow on implicit constant conversion.
-Fix warnings from -pedantic.
-Fix warnings from -pedantic.
-Fix warnings from -Wformat.

Two minor changes in addition :

-Replace a defined value equal to 2^31 - 1 by std::numeric_limits<int>::max().
-Remove useless null-check on pointer returned by new. New doesn't returns nullptr on failure, it throws std::bad_alloc.
2014-05-15 21:32:47 +02:00
Shauren
8ec0be2802 Core/Battle.net: Use prepared statements in Battlenet::Socket 2014-05-13 22:02:51 +02:00
Shauren
daa7fd0079 Core/Battle.net: Fixed RealmJoinResult structure for 4.3.4 2014-05-11 22:34:13 +02:00
Shauren
e085f1d909 Core/Battle.net: Downgrade packet structures to 4.3.4 2014-05-10 12:50:27 +02:00
Shauren
e67e8ecd36 Core/Battle.net: Send account flags in auth complete 2014-05-07 09:01:46 +02:00
Shauren
d9f1d6466d Core/Battle.net: Implemented authserver 2014-05-06 23:43:29 +02:00
Shauren
f0d6f87138 Core/Battle.net: Fixed encryption 2014-05-04 11:49:32 +02:00
Shauren
769fadd104 Core/Battle.net
* Extended AuthResult enum
* Implemented WriteString in BitStream
* Fixed HexStrToByteArray in reverse mode
2014-05-04 00:59:24 +02:00
Aokromes
0c8df80415 Core/Auth: Add support for build 13930 of china
By phoenixfight closes #11978
2014-05-03 02:11:37 +02:00
Shauren
2654fd67f3 Core/Battle.net: Refactored FCC writing 2014-05-02 13:30:41 +02:00
Shauren
6955d7c9ad Core/Battle.net
* Fixed AuthResult codes
* Fixed BitStream::WriteBytes size check
* Fixed comparison operator for packet header
* Fixed channel for client packets without channel
* Implemented loading modules from database
2014-05-02 02:55:10 +02:00
Shauren
fea9d275fa Verify received components 2014-04-30 23:02:01 +02:00
Shauren
a142eb9f7a Core/Auth: Battle.net stuff 2014-04-30 20:50:15 +02:00
Gacko
a762f72adb Authserver: Fix typo 2014-03-19 09:49:22 +01:00
Gacko
1b2e4d8110 Remove whitespaces from previous commit 2014-02-05 17:49:04 +01:00
Gacko
d0c9970be0 Authserver / Worldserver: Fix warnings about unused variables 2014-02-05 17:33:28 +01:00
QAston
9495194bf2 Fix warnings introduced on littleendian in 2134cb610d
This fix prevents possible issues on bigendian machines. Don't use c style casts ppl, it's evul.
2014-01-30 23:43:37 +01:00
QAston
139ee0c8b7 Fix incorrect debug log in authserver 2014-01-26 22:04:45 +01:00
QAston
2134cb610d Remove unneeded bigendian checks (they're already part of EndianConvert). 2014-01-26 21:32:07 +01:00
Vincent_Michael
20004050bc Update copyright note for 2014.
Happy new year.
2014-01-01 00:07:53 +01:00
jackpoz
2a7f03039d Core/Misc: Fix warnings
Fix warnings appearing with -Wstrict-aliasing flag.
2013-12-28 17:24:43 +01:00
jackpoz
b0ffbb2179 Core/Auth: Fix expiring account bans
Fix a database race condition in authserver that would delay the account ban expiry by 1 login because the query that would have removed the ban was executed asynchronously.
2013-12-22 14:00:14 +01:00
jackpoz
096cb6bf00 Core/Auth: Fix Auth failing sometimes
Fix a database race condition between authserver saving session key to database asynchronously and worldserver reading it; session key is now saved synchronously.
2013-11-16 23:25:21 +01:00
Spp
94e2b9332a Core/Logging: Remove LOG_FILTER_XXX defines with it's value (remember logger names are case-sensitive) 2013-11-08 10:50:51 +01:00
Spp
1b04bec290 Core/Logs: Create default set of loggers and Appender if the config is wrong.
- Logger root (Error)
- Logger server (Info)
- Appender Console

Logger names are case-sensitive, Appender names are not.
2013-11-08 08:55:10 +01:00
Spp
8aa9745c4c Core/Logging: Extend logging system to allow inheritance of loggers
- Changed default loggers and appenders
- '.' determines the relation between loggers ("type.subtype" inherits "type" logger setting if logger "type.subtype" is not defined)
- When core logs a message it search for the correct logger (root is the default one)
  ie: a message logged with "type.subtype"
  * Core will try to find a logger with name "type.subtype", if its not found then will search for "type", again if its not found it will return the default one "root"
2013-11-07 16:34:44 +01:00
leguybrush
0a308144a8 Core/Code: Unify [more] codestyle for brackets: )\n{\n} to ) { }. 2013-10-28 14:36:07 -04:00