• Home
  • Raw
  • Download

Lines Matching refs:sshpam_handle

243 static pam_handle_t *sshpam_handle = NULL;  variable
374 if ((r = pam_putenv(sshpam_handle, env)) != PAM_SUCCESS) { in import_environments()
376 pam_strerror(sshpam_handle, r)); in import_environments()
485 sshpam_err = pam_get_item(sshpam_handle, PAM_USER, in sshpam_thread()
511 sshpam_err = pam_set_item(sshpam_handle, PAM_CONV, in sshpam_thread()
515 sshpam_err = pam_authenticate(sshpam_handle, flags); in sshpam_thread()
526 sshpam_err = pam_chauthtok(sshpam_handle, in sshpam_thread()
555 env_from_pam = pam_getenvlist(sshpam_handle); in sshpam_thread()
576 pam_strerror(sshpam_handle, sshpam_err))) != 0) in sshpam_thread()
663 if (sshpam_handle == NULL || (use_privsep && !mm_is_monitor())) in sshpam_cleanup()
666 pam_set_item(sshpam_handle, PAM_CONV, (const void *)&null_conv); in sshpam_cleanup()
669 pam_close_session(sshpam_handle, PAM_SILENT); in sshpam_cleanup()
674 pam_setcred(sshpam_handle, PAM_DELETE_CRED); in sshpam_cleanup()
678 pam_end(sshpam_handle, sshpam_err); in sshpam_cleanup()
679 sshpam_handle = NULL; in sshpam_cleanup()
688 if (sshpam_handle == NULL) { in sshpam_init()
693 } if (sshpam_handle != NULL) { in sshpam_init()
695 sshpam_err = pam_get_item(sshpam_handle, in sshpam_init()
699 pam_end(sshpam_handle, sshpam_err); in sshpam_init()
700 sshpam_handle = NULL; in sshpam_init()
704 pam_start(SSHD_PAM_SERVICE, user, &store_conv, &sshpam_handle); in sshpam_init()
708 pam_end(sshpam_handle, sshpam_err); in sshpam_init()
709 sshpam_handle = NULL; in sshpam_init()
728 sshpam_err = pam_set_item(sshpam_handle, PAM_RHOST, in sshpam_init()
731 pam_end(sshpam_handle, sshpam_err); in sshpam_init()
732 sshpam_handle = NULL; in sshpam_init()
736 pam_putenv(sshpam_handle, sshpam_conninfo); in sshpam_init()
746 sshpam_err = pam_set_item(sshpam_handle, PAM_TTY, "ssh"); in sshpam_init()
748 pam_end(sshpam_handle, sshpam_err); in sshpam_init()
749 sshpam_handle = NULL; in sshpam_init()
877 debug3("PAM: %s", pam_strerror(sshpam_handle, type)); in sshpam_query()
1063 sshpam_err = pam_acct_mgmt(sshpam_handle, 0); in do_pam_account()
1065 pam_strerror(sshpam_handle, sshpam_err)); in do_pam_account()
1082 sshpam_err = pam_set_item(sshpam_handle, PAM_CONV, in do_pam_setcred()
1086 pam_strerror(sshpam_handle, sshpam_err)); in do_pam_setcred()
1089 sshpam_err = pam_setcred(sshpam_handle, PAM_ESTABLISH_CRED); in do_pam_setcred()
1092 sshpam_err = pam_setcred(sshpam_handle, PAM_REINITIALIZE_CRED); in do_pam_setcred()
1100 pam_strerror(sshpam_handle, sshpam_err)); in do_pam_setcred()
1103 pam_strerror(sshpam_handle, sshpam_err)); in do_pam_setcred()
1171 sshpam_err = pam_set_item(sshpam_handle, PAM_CONV, in do_pam_chauthtok()
1175 pam_strerror(sshpam_handle, sshpam_err)); in do_pam_chauthtok()
1177 sshpam_err = pam_chauthtok(sshpam_handle, PAM_CHANGE_EXPIRED_AUTHTOK); in do_pam_chauthtok()
1180 pam_strerror(sshpam_handle, sshpam_err)); in do_pam_chauthtok()
1190 sshpam_err = pam_set_item(sshpam_handle, PAM_CONV, in do_pam_session()
1194 pam_strerror(sshpam_handle, sshpam_err)); in do_pam_session()
1195 sshpam_err = pam_open_session(sshpam_handle, 0); in do_pam_session()
1202 pam_strerror(sshpam_handle, sshpam_err)); in do_pam_session()
1229 ret = pam_putenv(sshpam_handle, compound); in do_pam_putenv()
1244 return (pam_getenvlist(sshpam_handle)); in fetch_pam_environment()
1332 if (!options.use_pam || sshpam_handle == NULL) in sshpam_auth_passwd()
1348 sshpam_err = pam_set_item(sshpam_handle, PAM_CONV, in sshpam_auth_passwd()
1352 pam_strerror(sshpam_handle, sshpam_err)); in sshpam_auth_passwd()
1354 sshpam_err = pam_authenticate(sshpam_handle, flags); in sshpam_auth_passwd()
1366 pam_strerror(sshpam_handle, sshpam_err)); in sshpam_auth_passwd()