Lines Matching refs:res
103 int res;
136 res = pam_get_item(pamh, PAM_SERVICE, (void **)&service);
137 if (res != PAM_SUCCESS) {
142 res = pam_get_item(pamh, PAM_USER, (void **)&user);
143 if (res != PAM_SUCCESS) {
153 res = pam_get_item(pamh, PAM_OLDAUTHTOK, (void **)&oldpw);
154 if (res != PAM_SUCCESS) {
159 res = pam_get_item(pamh, PAM_AUTHTOK, (void **)&newpw);
160 if (res != PAM_SUCCESS || newpw == NULL) {
185 res = pam_get_item(pamh, PAM_REPOSITORY, (void **)&auth_rep);
186 if (res != PAM_SUCCESS) {
201 res = __set_authtoken_attr(user, oldpw, pwu_rep, &l, &updated_reps);
209 switch (res) {
218 res = PAM_SUCCESS;
224 res = PAM_AUTHTOK_LOCK_BUSY;
228 res = PAM_AUTHTOK_ERR;
237 res = PAM_SYSTEM_ERR;
249 res = PAM_USER_UNKNOWN;
254 res = PAM_BUF_ERR;
257 res = PAM_SYSTEM_ERR;
260 res = PAM_SYSTEM_ERR;
263 res = PAM_PERM_DENIED;
271 res = PAM_SUCCESS;
278 res = PAM_SYSTEM_ERR;
284 res = PAM_AUTHTOK_ERR;
291 res = PAM_AUTHTOK_ERR;
299 res = PAM_AUTHTOK_ERR;
306 res = PAM_PERM_DENIED;
314 res = PAM_PERM_DENIED;
317 res = PAM_SYSTEM_ERR;
321 return (res);