| 39 | } |
| 40 | |
| 41 | static MD5_DIGEST HashPassword(const char *pPassword, const unsigned char aSalt[SALT_BYTES]) |
| 42 | { |
| 43 | // Hash the password and the salt |
| 44 | MD5_CTX Md5; |
| 45 | md5_init(&Md5); |
| 46 | md5_update(&Md5, (unsigned char *)pPassword, str_length(pPassword)); |
| 47 | md5_update(&Md5, aSalt, SALT_BYTES); |
| 48 | return md5_finish(&Md5); |
| 49 | } |
| 50 | |
| 51 | CAuthManager::CAuthManager() |
| 52 | { |
no test coverage detected