scd: better handling of extended APDU.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 14 Apr 2015 05:17:03 +0000 (14:17 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 15 Apr 2015 07:09:08 +0000 (16:09 +0900)
commit05f32c702eaf6dc7fd5c0c8c01b4c731ed9a6011
treedabd8b234986d977142888930c86da1027403b87
parent93910b5b8d20c089b2578d757cf06509d7617978
scd: better handling of extended APDU.

* scd/apdu.c (send_le): Bug fix for not append Z when lc<0&&le<0.
* scd/app-common.h (struct app_ctx_s): Use bit fields for flags.
* scd/ccid-driver.c (CCID_MAX_BUF): New.  Only for OpenPGPcard.
(struct ccid_driver_s): New field of max_ccid_msglen.
 Remove ifsd field.
(parse_ccid_descriptor): Initialize max_ccid_msglen.
(ccid_transceive_apdu_level): Implement sending extended APDU in
chain of CCID message.

--

With this patch, we won't need PC/SC library/service any more.
GnuPG-bug-id: 1947
(backported from 2.1 commit 971d558e862db878a7310e06ed7116dbe36886ab)
scd/apdu.c
scd/app-common.h
scd/ccid-driver.c