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

Method FindKey

src/engine/server/authmanager.cpp:126–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126int CAuthManager::FindKey(const char *pIdent) const
127{
128 for(size_t i = 0; i < m_vKeys.size(); i++)
129 if(!str_comp(m_vKeys[i].m_aIdent, pIdent))
130 return i;
131
132 return -1;
133}
134
135bool CAuthManager::CheckKey(int Slot, const char *pPw) const
136{

Callers 5

CheckReservedSlotAuthMethod · 0.80
OnNetMsgRconAuthMethod · 0.80
ConAuthUpdateMethod · 0.80
ConAuthUpdateHashedMethod · 0.80
ConAuthRemoveMethod · 0.80

Calls 1

str_compFunction · 0.85

Tested by

no test coverage detected