Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pam_p11.c - key_login() always succeeded #32

Merged
merged 2 commits into from
Nov 6, 2023

Conversation

archxlith
Copy link
Contributor

key_login always succeeded even if PIN input was incorrect. r = PAM_SUCCESS set prior to key_login() and didn't get changed to a failure if key_login() failed.

key_login always succeed even if PIN input was incorrect. r = PAM_SUCCESS prior to key_login and didn't get changed to a failure if key_login failed.
@frankmorgner
Copy link
Member

I think PAM_CRED_INSUFFICIENT ("Insufficient credentials to access authentication data.") should be more appropriate, shouldn't it?

Updated PAM error to PAM_CRED_INSUFFICIENT as it's more appropriate than PAM_AUTH_ERR
@archxlith
Copy link
Contributor Author

I just used the same as was used prior to key_login() and key_verify() being split into separate checks. PAM_CRED_INSUFFICIENT does feel correct though.

@frankmorgner
Copy link
Member

thank you

@frankmorgner frankmorgner merged commit 6090811 into OpenSC:master Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants