Kleopatra: Let pinentry handle bad smartcard pins
Open, NormalPublic

Assigned To
None
Authored By
timegrid
Wed, Jul 15, 11:24 AM

Description

Currently, if a smartcard user tries to e.g. encrypt/sign a file and enters a bad PIN, the pinentry process is cancelled and the error displayed in Kleopatra:

To be able to retry, the whole encrypt/sign process has to be started again (choosing the file, etc), which is tedious.
Pinentry should handle the retries on bad PIN instead, which would also meet the user's expectation.


Split from T6425: improve pinentry behavior and texts in smart card context

Details

Version
gpg4win-5.1.0-beta658 @ win11

Event Timeline

timegrid triaged this task as Normal priority.Wed, Jul 15, 11:24 AM
timegrid created this task.
timegrid created this object with edit policy "Contributor (Project)".

I don't think that Kleopatra can influence that gpg/gpgsm/gpg-agent shows a second pinentry if on the first try a wrong passphrase was entered. Therefore I think the "retry" has to be implemented in GnuPG.

Independently of this, explicit canceling of the pinentry shouldn't abort the sign/encrypt operation in Kleopatra.

So, this ticket is actually two.