Home GnuPG
Diffusion GnuPG da4c132cca2c

scd: Fix use case of PC/SC.
da4c132cca2cUnpublished

Unpublished Commit · Learn More

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

Description

scd: Fix use case of PC/SC.

* scd/apdu.c (apdu_open_reader): Add an argument APP_EMPTY.
When CCID driver fails to open, try PC/SC if APP is nothing.
* scd/app.c (select_application): Supply arg if APP is nothing.

After scanning available card readers by CCID driver, scdaemon should
try PC/SC service if no APP is registered yet. Also, when the slot
is allocated for PC/SC (ccid.handle==NULL), it should not call
ccid_compare_BAI, otherwise scdaemon crashes.

Details

Provenance
gniibeAuthored on Feb 13 2017, 3:09 AM
Parents
rG5996c7bf99f3: gpg: Fix memory leak in the error case of signature creation.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rGda4c132cca2c: scd: Fix use case of PC/SC. (authored by NIIBE Yutaka <gniibe@fsij.org>).Feb 13 2017, 3:09 AM