| 186 | } |
| 187 | |
| 188 | void CAuthManager::UpdateKey(int Slot, const char *pPw, const char *pRoleName) |
| 189 | { |
| 190 | if(Slot < 0 || Slot >= (int)m_vKeys.size()) |
| 191 | return; |
| 192 | |
| 193 | // Generate random salt |
| 194 | unsigned char aSalt[SALT_BYTES]; |
| 195 | secure_random_fill(aSalt, SALT_BYTES); |
| 196 | UpdateKeyHash(Slot, HashPassword(pPw, aSalt), aSalt, pRoleName); |
| 197 | } |
| 198 | |
| 199 | void CAuthManager::ListKeys(FListCallback pfnListCallback, void *pUser) |
| 200 | { |
no test coverage detected