Home GnuPG
Diffusion GnuPG 2dbd347fbe97

SCD: Support not-so-smart card readers.
2dbd347fbe97Unpublished

Unpublished Commit · Learn More

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

Description

SCD: Support not-so-smart card readers.

* scd/ccid-driver.c (struct ccid_driver_s): Add auto_voltage,
auto_param, and auto_pps.
(parse_ccid_descriptor): Set auto_voltage, auto_param, and auto_pps.
Support non-autoconf readers.
(update_param_by_atr): New.
(ccid_get_atr): Use 5V for PowerOn when auto_voltage is not supported.
Use 0x10 when nonnull_nad for SetParameters.
Call update_param_by_atr for parsing ATR, and use param for
SetParameters.
Send PPS if reader requires it and card is negotiable.
When bNadValue in the return values of SetParameters == 0,
clear handle->nonnull_nad flag.

This change is to support more card readers by the internal driver.
Tested with 08e6:3478 Gemplus PinPad Smart Card Reader.

Details

Provenance
gniibeAuthored on Jan 8 2013, 7:22 AM
Parents
rGe8ea10990d9b: SCD: Hold lock for pinpad input.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rG2dbd347fbe97: SCD: Support not-so-smart card readers. (authored by NIIBE Yutaka <gniibe@fsij.org>).Feb 5 2013, 6:03 AM