chiark / gitweb /
scd: Fix use case of PC/SC.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 13 Feb 2017 02:09:13 +0000 (11:09 +0900)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 14 Feb 2017 00:29:34 +0000 (00:29 +0000)
commit27f150d79344287594bd1ab9bb8c04f0cc09b15e
tree426a350e1cda4655f1466cbb11f96846ff5210f4
parent7fe8f17ce415925413bb33f19ddb84f4f7018512
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.

Debian-bug-id: 852702, 854005, 854595, 854616

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Gbp-Pq: Name 0029-scd-Fix-use-case-of-PC-SC.patch
scd/apdu.c
scd/apdu.h
scd/app.c