mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-10 09:28:06 +00:00
Implement FDB Checksum
- Added config option `check_fdb` - Added check in WorldServer.cpp - Added raw MD5 function in MD5.cpp and MD5.h
This commit is contained in:
@@ -115,6 +115,14 @@ MD5::MD5(const std::string &text)
|
||||
finalize();
|
||||
}
|
||||
|
||||
// raw md5 construstor
|
||||
MD5::MD5(const char * input, size_type length)
|
||||
{
|
||||
init();
|
||||
update(input, length);
|
||||
finalize();
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
|
||||
void MD5::init()
|
||||
|
@@ -54,6 +54,7 @@ public:
|
||||
|
||||
MD5();
|
||||
MD5(const std::string& text);
|
||||
MD5(const char * input, size_type length);
|
||||
void update(const unsigned char *buf, size_type length);
|
||||
void update(const char *buf, size_type length);
|
||||
MD5& finalize();
|
||||
|
Reference in New Issue
Block a user