Home GnuPG
Diffusion GnuPG 4f557cb9c2eb

scd: acquire lock in new_reader_slot.
4f557cb9c2ebUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

scd: acquire lock in new_reader_slot.

* scd/apdu.c (new_reader_slot): Acquire lock.
  (open_ct_reader, open_pcsc_reader_direct, open_pcsc_reader_wrapped)
  (open_ccid_reader, open_rapdu_reader): Release lock.

Fixes a test case of:

No libpcsclite1 installed.
Run gpg-agent
Run command "gpg-connect-agent learn /bye" with no card/token
Sometimes it fails: ERR 100663356 Not supported <SCD>
While it should be always: ERR 100663404 Card error <SCD>

Details

Provenance
gniibeAuthored on Jun 18 2012, 8:08 AM
Parents
rG233b5ab1ad90: scd: move lock_slot, trylock_slot, unlock_slot functions.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rG4f557cb9c2eb: scd: acquire lock in new_reader_slot. (authored by NIIBE Yutaka <gniibe@fsij.org>).Jun 25 2012, 3:04 AM