Lines Matching refs:pamh
119 static pam_handle_t *pamh = NULL; variable
6496 if (pamh) in server()
6500 retval = pam_close_session (pamh, 0); in server()
6505 pam_strerror (pamh, retval)); in server()
6508 retval = pam_end (pamh, retval); in server()
6513 pam_strerror (pamh, retval)); in server()
6535 if (pamh) in switch_to_user()
6537 retval = pam_open_session (pamh, 0); in switch_to_user()
6541 retval = pam_get_item (pamh, PAM_USER, (const void **)&username); in switch_to_user()
6547 pam_strerror (pamh, retval)); in switch_to_user()
6604 if (pamh) in switch_to_user()
6606 retval = pam_setcred (pamh, PAM_ESTABLISH_CRED); in switch_to_user()
6610 pam_strerror (pamh, retval)); in switch_to_user()
6977 retval = pam_start (PAM_SERVICE_NAME, *username, &conv, &pamh); in check_pam_password()
6983 retval = pam_set_item (pamh, PAM_TTY, PAM_SERVICE_NAME); in check_pam_password()
6989 retval = pam_authenticate (pamh, 0); in check_pam_password()
6995 retval = pam_acct_mgmt (pamh, 0); in check_pam_password()
7001 retval = pam_get_item (pamh, PAM_USER, (const void **)username); in check_pam_password()
7014 printf ("E PAM %s error: %s\n", pam_stage, pam_strerror (pamh, retval)); in check_pam_password()