feat(Core/DB/Authserver): remove sha_pass_hash (#4827)

This commit is contained in:
UltraNix
2021-03-21 15:17:57 +01:00
committed by GitHub
parent e9ed6380a6
commit 485f7e7639
54 changed files with 1095 additions and 744 deletions

View File

@@ -11,6 +11,7 @@
#include "Log.h"
#include <mysql.h>
#include <array>
class Field
{
@@ -245,6 +246,15 @@ public:
return data.value == nullptr;
}
[[nodiscard]] std::vector<uint8> GetBinary() const;
template<size_t S>
[[nodiscard]] std::array<uint8, S> GetBinary() const
{
std::array<uint8, S> buf;
GetBinarySizeChecked(buf.data(), S);
return buf;
}
protected:
Field();
~Field();
@@ -268,7 +278,7 @@ protected:
#endif
void SetByteValue(void const* newValue, size_t const newSize, enum_field_types newType, uint32 length);
void SetStructuredValue(char* newValue, enum_field_types newType);
void SetStructuredValue(char* newValue, enum_field_types newType, uint32 length);
void CleanUp()
{
@@ -342,6 +352,8 @@ protected:
data.type == MYSQL_TYPE_LONGLONG );
}
void GetBinarySizeChecked(uint8* buf, size_t size) const;
private:
#ifdef ACORE_DEBUG
static char const* FieldTypeToString(enum_field_types type)