pam_pkcs11.c: Reduce verbosity when authenticating#73
pam_pkcs11.c: Reduce verbosity when authenticating#73andsens wants to merge 1 commit intoOpenSC:masterfrom
Conversation
Respect the quiet config in more places. The "Welcome ..." message has been integrated into the "PIN: ..." prompt.
|
ping Any chance of this getting reviewed/merged? |
|
Hi. In PAM there are two types of messages (informational, error) and two types of user conversation queries (entering cleartext data and entering secret data). All of them are needed as the front-end applications could display different kinds of messages in different windows, etc. So it is OK to have a "Welcome" informational message. On the other hand, there is a problem with the use of |
|
The primary motivation for this PR is simply that running I understand that the messages could be useful informational output in other contexts (like a GDM password prompt), but even then I wouldn't want it to output anything. One principle of a unix tool is to be quiet when everything went well and to be noisy when things go awry. |
|
As a first step, it would be okay to make |
|
I'm sorry but I fail to see which one of the changes affects an error message. Maybe you could add a note to the line(s) that is the issue? |
|
Sorry, I've changed my mind. Now I think, that the effect of A nice thing is that all such messages are displayed via I.e., it should return with no output if |
|
I can see the advantage of doing it like that (alternatively you could maybe mask |
|
*ping |
Respect the
quietconfig flag in more places.The "Welcome ..." message has been integrated into the "PIN: ..." prompt.
I am a complete novice at C, so kindly take extra care in verifying this, especially the PIN prompt.
I don't know if the change introduces an overflow issue because the token label can have an arbitrary length.