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:
parent
61152ea9dd
commit
8d7e013726
4
NEWS
4
NEWS
@ -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".
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user