Searched refs:userdb (Results 1 – 3 of 3) sorted by relevance
22 p_pwdentry userdb[MAX_USERS]; // Array of pointers variable32 if (userdb[i] == NULL) in authenticate_user()34 if (strcmp(username, userdb[i]->username) == 0) { in authenticate_user()35 strcpy(salt, userdb[i]->pwdhash); in authenticate_user()37 if (strcmp(userdb[i]->pwdhash, crypt(pwd, salt)) == 0) in authenticate_user()63 if (strcmp(userdb[i]->username, username) == 0) // Found the user in isallowed()65 if (userdb[i]->perms == NULL) in isallowed()67 tmp = strstr(userdb[i]->perms, dperm); // Search for permission in isallowed()88 userdb[i] = NULL; in init_passwords()133 userdb[numusers] = (p_pwdentry) malloc(sizeof(pwdentry)); in init_passwords()[all …]
17 namespace userdb {
17 namespace userdb { namespace