Lines Matching refs:pam_err

144     void *data, int pam_err __unused)  in pam_ssh_free_key()
162 int nkeys, nullok, pam_err, pass; in pam_sm_authenticate() local
170 pam_err = pam_get_user(pamh, &user, NULL); in pam_sm_authenticate()
171 if (pam_err != PAM_SUCCESS) in pam_sm_authenticate()
172 return (pam_err); in pam_sm_authenticate()
184 pam_err = pam_get_authtok(pamh, PAM_AUTHTOK, in pam_sm_authenticate()
186 if (pam_err != PAM_SUCCESS) in pam_sm_authenticate()
187 return (pam_err); in pam_sm_authenticate()
190 pam_err = openpam_borrow_cred(pamh, pwd); in pam_sm_authenticate()
191 if (pam_err != PAM_SUCCESS) in pam_sm_authenticate()
192 return (pam_err); in pam_sm_authenticate()
329 int fd, pam_err; in pam_ssh_add_keys_to_agent() local
341 pam_err = PAM_SYSTEM_ERR; in pam_ssh_add_keys_to_agent()
347 pam_err = pam_get_data(pamh, *kfn, &item); in pam_ssh_add_keys_to_agent()
348 if (pam_err == PAM_SUCCESS && item != NULL) { in pam_ssh_add_keys_to_agent()
360 pam_err = PAM_SUCCESS; in pam_ssh_add_keys_to_agent()
372 return (pam_err); in pam_ssh_add_keys_to_agent()
382 int pam_err; in pam_sm_open_session() local
390 pam_err = pam_get_user(pamh, &user, NULL); in pam_sm_open_session()
391 if (pam_err != PAM_SUCCESS) in pam_sm_open_session()
392 return (pam_err); in pam_sm_open_session()
396 pam_err = openpam_borrow_cred(pamh, pwd); in pam_sm_open_session()
397 if (pam_err != PAM_SUCCESS) in pam_sm_open_session()
398 return (pam_err); in pam_sm_open_session()
401 pam_err = pam_ssh_start_agent(pamh); in pam_sm_open_session()
402 if (pam_err != PAM_SUCCESS) { in pam_sm_open_session()
404 return (pam_err); in pam_sm_open_session()
408 pam_err = pam_ssh_add_keys_to_agent(pamh); in pam_sm_open_session()
409 if (pam_err != PAM_SUCCESS) { in pam_sm_open_session()