![]() |
DDNet documentation
|
#include <authmanager.h>
Classes | |
| class | CKey |
Public Types | |
| typedef void(*) | FListCallback(const char *pIdent, const char *pRoleName, void *pUser) |
Public Member Functions | |
| CAuthManager () | |
| void | Init () |
| int | AddKeyHash (const char *pIdent, MD5_DIGEST Hash, const unsigned char *pSalt, const char *pRoleName) |
| int | AddKey (const char *pIdent, const char *pPw, const char *pRoleName) |
| void | RemoveKey (int Slot) |
| int | FindKey (const char *pIdent) const |
| bool | CheckKey (int Slot, const char *pPw) const |
| int | DefaultKey (const char *pRoleName) const |
| int | KeyLevel (int Slot) const |
| const char * | KeyIdent (int Slot) const |
| bool | IsValidIdent (const char *pIdent) const |
| void | UpdateKeyHash (int Slot, MD5_DIGEST Hash, const unsigned char *pSalt, const char *pRoleName) |
| void | UpdateKey (int Slot, const char *pPw, const char *pRoleName) |
| void | ListKeys (FListCallback pfnListCallback, void *pUser) |
| void | AddDefaultKey (const char *pRoleName, const char *pPw) |
| bool | IsGenerated () const |
| int | NumNonDefaultKeys () const |
| CRconRole * | FindRole (const char *pName) |
| bool | AddRole (const char *pName, int Rank) |
Static Public Member Functions | |
| static const char * | AuthLevelToRoleName (int AuthLevel) |
Private Member Functions | |
| int | DefaultIndex (int AuthLevel) const |
Private Attributes | |
| std::vector< CKey > | m_vKeys |
| std::unordered_map< std::string, CRconRole > | m_Roles |
| int | m_aDefault [3] |
| bool | m_Generated |
| typedef void(*) CAuthManager::FListCallback(const char *pIdent, const char *pRoleName, void *pUser) |
| CAuthManager::CAuthManager | ( | ) |
| void CAuthManager::AddDefaultKey | ( | const char * | pRoleName, |
| const char * | pPw ) |
| int CAuthManager::AddKey | ( | const char * | pIdent, |
| const char * | pPw, | ||
| const char * | pRoleName ) |
| int CAuthManager::AddKeyHash | ( | const char * | pIdent, |
| MD5_DIGEST | Hash, | ||
| const unsigned char * | pSalt, | ||
| const char * | pRoleName ) |
| bool CAuthManager::AddRole | ( | const char * | pName, |
| int | Rank ) |
|
static |
| bool CAuthManager::CheckKey | ( | int | Slot, |
| const char * | pPw ) const |
|
private |
| int CAuthManager::DefaultKey | ( | const char * | pRoleName | ) | const |
| int CAuthManager::FindKey | ( | const char * | pIdent | ) | const |
| CRconRole * CAuthManager::FindRole | ( | const char * | pName | ) |
| void CAuthManager::Init | ( | ) |
| bool CAuthManager::IsGenerated | ( | ) | const |
| bool CAuthManager::IsValidIdent | ( | const char * | pIdent | ) | const |
| const char * CAuthManager::KeyIdent | ( | int | Slot | ) | const |
| int CAuthManager::KeyLevel | ( | int | Slot | ) | const |
| void CAuthManager::ListKeys | ( | FListCallback | pfnListCallback, |
| void * | pUser ) |
| int CAuthManager::NumNonDefaultKeys | ( | ) | const |
| void CAuthManager::RemoveKey | ( | int | Slot | ) |
| void CAuthManager::UpdateKey | ( | int | Slot, |
| const char * | pPw, | ||
| const char * | pRoleName ) |
| void CAuthManager::UpdateKeyHash | ( | int | Slot, |
| MD5_DIGEST | Hash, | ||
| const unsigned char * | pSalt, | ||
| const char * | pRoleName ) |
|
private |
|
private |
|
private |
|
private |