mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
scd: Improve --enable-pinpad-varlen.
* tools/gpgconf-comp.c (gc_options_scdaemon): Add
enable-pinpad-varlen.
* scd/apdu.c (check_pcsc_pinpad): Detect SPRx32 reader.
Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 7bde2bf3b0
)
This commit is contained in:
parent
45f43ed5f6
commit
43e85d7bee
3 changed files with 15 additions and 5 deletions
|
@ -2032,7 +2032,13 @@ check_pcsc_pinpad (int slot, int command, pininfo_t *pininfo)
|
|||
pcsc_dword_t len = 256;
|
||||
int sw;
|
||||
|
||||
(void)pininfo; /* XXX: Identify reader and set pininfo->fixedlen. */
|
||||
/* Hack to identify the SCM SPR532 and SPR332 readers which support
|
||||
variable length PIN input.
|
||||
FIXME: Figure out whether there is a feature attribute for this.
|
||||
Alternatively use the USB ids to detect known readers. */
|
||||
if (reader_table[slot].rdrname
|
||||
&& strstr (reader_table[slot].rdrname, "SPRx32"))
|
||||
pininfo->fixedlen = 0;
|
||||
|
||||
check_again:
|
||||
if (command == ISO7816_VERIFY)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue