Core/Warden: Base implementation for Warden functionality
Note: The default config file action for clients failing the checks can be changed for each check via the characters.warden_action table Credits to TOM_RUS
This commit is contained in:
1 parent
f0f68f15a8
commit
8e3a4b956e
34 files changed
+4568
-41
No files matched your search
@@ -16,6 +16,7 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include "Util.h"
|
||||
#include "utf8.h"
|
||||
#ifdef USE_SFMT_FOR_RNG
|
||||
@@ -529,3 +530,15 @@ void hexEncodeByteArray(uint8* bytes, uint32 arrayLen, std::string& result)
|
||||
result = ss.str();
|
||||
}
|
||||
|
||||
std::string ByteArrayToHexStr(uint8* bytes, uint32 length)
|
||||
{
|
||||
std::ostringstream ss;
|
||||
for (uint32 i = 0; i < length; ++i)
|
||||
{
|
||||
char buffer[4];
|
||||
sprintf(buffer, "%02X ", bytes[i]);
|
||||
ss << buffer;
|
||||
}
|
||||
|
||||
return ss.str();
|
||||
}
|
||||
Reference in new issue
Block a user