MCPcopy Create free account
hub / github.com/ddnet/ddnet / CheckKey

Method CheckKey

src/engine/server/authmanager.cpp:135–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135bool CAuthManager::CheckKey(int Slot, const char *pPw) const
136{
137 if(Slot < 0 || Slot >= (int)m_vKeys.size())
138 return false;
139 return m_vKeys[Slot].m_Pw == HashPassword(pPw, m_vKeys[Slot].m_aSalt);
140}
141
142int CAuthManager::DefaultIndex(int AuthLevel) const
143{

Callers 2

CheckReservedSlotAuthMethod · 0.80
OnNetMsgRconAuthMethod · 0.80

Calls 1

HashPasswordFunction · 0.85

Tested by

no test coverage detected