|
Lines 1056-1062
do_pam_chauthtok(void)
Link Here
|
| 1056 |
void |
1056 |
void |
| 1057 |
do_pam_session(void) |
1057 |
do_pam_session(void) |
| 1058 |
{ |
1058 |
{ |
|
|
1059 |
char *auth_info; |
| 1060 |
|
| 1059 |
debug3("PAM: opening session"); |
1061 |
debug3("PAM: opening session"); |
|
|
1062 |
|
| 1063 |
/* |
| 1064 |
* Expose authentication information to PAM. |
| 1065 |
* The enviornment variable is versioned. Please increment the |
| 1066 |
* version suffix if the format of session_info changes. |
| 1067 |
*/ |
| 1068 |
if (sshpam_authctxt->session_info != NULL) { |
| 1069 |
if ((auth_info = sshbuf_dup_string( |
| 1070 |
sshpam_authctxt->session_info)) == NULL) |
| 1071 |
fatal("%s: sshbuf_dup_string failed", __func__); |
| 1072 |
debug2("%s: auth information in SSH_AUTH_INFO_0", __func__); |
| 1073 |
do_pam_putenv("SSH_AUTH_INFO_0", auth_info); |
| 1074 |
free(auth_info); |
| 1075 |
} |
| 1076 |
|
| 1060 |
sshpam_err = pam_set_item(sshpam_handle, PAM_CONV, |
1077 |
sshpam_err = pam_set_item(sshpam_handle, PAM_CONV, |
| 1061 |
(const void *)&store_conv); |
1078 |
(const void *)&store_conv); |
| 1062 |
if (sshpam_err != PAM_SUCCESS) |
1079 |
if (sshpam_err != PAM_SUCCESS) |