mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-24 22:09:57 +01:00
scd: fix pinpad input on Windows.
* scd/apdu.c (open_pcsc_reader_direct): Don't call pcsc_vendor_specific_init here, but... (connect_pcsc_card): Call it here. -- Thanks to Martin Wolters for the bug report.
This commit is contained in:
parent
b66158cac7
commit
de7e15c6b8
@ -1508,6 +1508,8 @@ connect_pcsc_card (int slot)
|
||||
pcsc_dword_t readerlen, atrlen;
|
||||
long card_state, card_protocol;
|
||||
|
||||
pcsc_vendor_specific_init (slot);
|
||||
|
||||
atrlen = DIM (reader_table[0].atr);
|
||||
readerlen = sizeof reader -1 ;
|
||||
err = pcsc_status (reader_table[slot].pcsc.card,
|
||||
@ -1929,7 +1931,6 @@ open_pcsc_reader_direct (const char *portstr)
|
||||
reader_table[slot].send_apdu_reader = pcsc_send_apdu;
|
||||
reader_table[slot].dump_status_reader = dump_pcsc_reader_status;
|
||||
|
||||
pcsc_vendor_specific_init (slot);
|
||||
dump_reader_status (slot);
|
||||
return slot;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user