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>
Tue, 14 Apr 2015 05:17:03 +0000 (14:17 +0900)
commit971d558e862db878a7310e06ed7116dbe36886ab
tree452c09ee685f3f5c61c67c2c8533e4028cb8a46a
parent25fce93ba19d997e234a674d5cc98df82c5b5496
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
scd/apdu.c
scd/app-common.h
scd/ccid-driver.c