Home GnuPG
Diffusion GnuPG 2a025039c181

scd: Fix GetSlotStatus.
2a025039c181Unpublished

Unpublished Commit · Learn More

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

Description

scd: Fix GetSlotStatus.

* scd/apdu.c (get_status_reader): Add ON_WIRE arg, here.
(ct_get_status, pcsc_get_status_direct, pcsc_get_status_wrapped)
(pcsc_get_status, get_status_ccid, my_rapdu_get_status): Likewise.
(reset_pcsc_reader_wrapped, open_pcsc_reader_wrapped): Follow the
change.
(apdu_get_status_internal): It's lower-level driver which judge
it's not needed.  Otherwise, it can't detect the removal.
* scd/ccid-driver.c (ccid_slot_status): After the POWERED_OFF check,
we can skip sending GetSlotStatus packet on wire, when no need.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
  • Fixes-commit: c8eee4d396a751d41fd1ee1e1b87b851fca172a

Details

Provenance
gniibeAuthored on Jan 30 2017, 1:30 AM
Parents
rG7c8eee4d396a: scd: Don't send GET_STATUS packet if not needed.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rG2a025039c181: scd: Fix GetSlotStatus. (authored by NIIBE Yutaka <gniibe@fsij.org>).Jan 30 2017, 1:32 AM