passwd Module

Files

passwd/passwd.cm

Classes

class EchoSetter
class PasswordHash

Functions

void AddPasswordHash(List<PasswordHash>& list, const PasswordHash& pwh)
bool CheckExistingPassword(User* user)
bool CheckPassword(int uid, const String<char>& hash)
void DeletePassword(Users& users, User* user)
String<char> EnterNewPassword(const String<char>& userName, bool retype)
void PrintHelp()
List<PasswordHash> ReadPasswordHashFile()
void RemovePasswordHash(List<PasswordHash>& list, int uid)
void SetPasswordHash(Users& users, User* user, const String<char>& hash)
void WritePasswordHashFile(const List<PasswordHash>& list)
int main(int argc, const char** argv)

Function Details

AddPasswordHash Function

void AddPasswordHash(List<PasswordHash>& list, const PasswordHash& pwh)

Definition
Line 183 of passwd/passwd.cm


CheckExistingPassword Function

bool CheckExistingPassword(User* user)

Definition
Line 69 of passwd/passwd.cm


CheckPassword Function

bool CheckPassword(int uid, const String<char>& hash)

Definition
Line 37 of passwd/passwd.cm


DeletePassword Function

void DeletePassword(Users& users, User* user)

Definition
Line 202 of passwd/passwd.cm


EnterNewPassword Function

String<char> EnterNewPassword(const String<char>& userName, bool retype)

Definition
Line 108 of passwd/passwd.cm


PrintHelp Function

void PrintHelp()

Definition
Line 24 of passwd/passwd.cm


ReadPasswordHashFile Function

List<PasswordHash> ReadPasswordHashFile()

Definition
Line 139 of passwd/passwd.cm


RemovePasswordHash Function

void RemovePasswordHash(List<PasswordHash>& list, int uid)

Definition
Line 169 of passwd/passwd.cm


SetPasswordHash Function

void SetPasswordHash(Users& users, User* user, const String<char>& hash)

Definition
Line 188 of passwd/passwd.cm


WritePasswordHashFile Function

void WritePasswordHashFile(const List<PasswordHash>& list)

Definition
Line 160 of passwd/passwd.cm


main Function

int main(int argc, const char** argv)

Definition
Line 215 of passwd/passwd.cm