1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-01-31 16:52:19 +01:00

Don't pass integers via pam_set_data/pam_get_data.

This commit is contained in:
Simon Josefsson 2009-03-24 13:38:33 +00:00
parent 61152ea9dd
commit 8d7e013726
2 changed files with 6 additions and 2 deletions

4
NEWS
View File

@ -2,6 +2,10 @@ pam_yubico NEWS -- History of user-visible changes. -*- outline -*-
* Version 1.13 (unreleased)
** Don't pass integers via pam_set_data/pam_get_data.
May solve problems on 64-bit platforms. Based on patch from
forum.yubico.com.
* Version 1.12 (released 2009-03-24)
** Add support for "use_first_pass" and "try_first_pass".

View File

@ -567,7 +567,7 @@ done:
}
if (debug)
D (("done. [%s]", pam_strerror (pamh, retval)));
pam_set_data (pamh, "yubico_setcred_return", (void *) retval, NULL);
pam_set_data (pamh, "yubico_setcred_return", &retval, NULL);
return retval;
}
@ -583,7 +583,7 @@ pam_sm_setcred (pam_handle_t * pamh, int flags, int argc, const char **argv)
/* TODO: ? */
retval = pam_get_data (pamh, "yubico_setcred_return",
(const void **) &auth_retval);
&auth_retval);
if (retval != PAM_SUCCESS)
return PAM_CRED_UNAVAIL;