scd: Configurable pinpad timeout
Closed, InvalidPublic

Description

There's a fixed libusb timeout value (30 seconds) in ccid_transceive_secure() function. Our users have troubles entering PIN longer than cca 20 digits in such a short time span.

I've attached a patch that addresses this issue by creating a configuration option 'pinpad-timeout' defaulting to 30 seconds.

Details

Version
2.2.17
nephirus created this task.Fri, Jul 19, 2:49 PM
gniibe claimed this task.Mon, Jul 22, 2:24 AM
gniibe triaged this task as Normal priority.
gniibe added a project: Info Needed.
gniibe added a subscriber: gniibe.

In general, if it requires more time, a reader can reply with time extension.

The timeout of USB transfer is the lower-level thing in CCID protocol. It does *not* define the user interaction timeout.

Changing the lower-level USB transfer timeout means that some errors cannot detected soonish.

In my opinion, it is a card reader implementation, which should be fixed. It would be good if users can share the information of broken readers.

nephirus closed this task as Invalid.Mon, Jul 22, 12:26 PM

Thanks for pointing me in the right direction. I was confused by the hard-coded timeout value and got it all wrong.