Home GnuPG
Diffusion GnuPG 32baa9acfb15

scd: Serialize READER_TABLE access for PC/SC.

Description

scd: Serialize READER_TABLE access for PC/SC.

* scd/apdu.c (apdu_dev_list_start): Remove locking READER_TABLE_LOCK.
Don't increment PCSC.COUNT here.
(apdu_dev_list_finish): Don't decrement PCSC.COUNT here.
(apdu_open_reader): Protect access with READER_TABLE_LOCK.

Details