- Added capabilities to parse and send extended length APDUs. This does not
work proberly with libccid, so it is disabled at the moment - unpower card only on PC_to_RDR_IccPowerOff git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@266 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -989,6 +989,8 @@ static void *ccid (void *param)
|
||||
char *source_name = names[0];
|
||||
char *sink_name = names[1];
|
||||
int result;
|
||||
size_t bufsize = sizeof(PC_to_RDR_XfrBlock_t) + 0xffff;
|
||||
__u8 inbuf[bufsize];
|
||||
|
||||
source_fd = source_open (source_name);
|
||||
if (source_fd < 0) {
|
||||
@@ -1010,14 +1012,6 @@ static void *ccid (void *param)
|
||||
|
||||
__u8 *outbuf = NULL;
|
||||
pthread_cleanup_push (free, outbuf);
|
||||
size_t bufsize = 512;
|
||||
__u8 *inbuf = malloc(bufsize);
|
||||
pthread_cleanup_push (free, inbuf);
|
||||
if (inbuf == NULL) {
|
||||
if (verbose > 1)
|
||||
perror("malloc");
|
||||
goto error;
|
||||
}
|
||||
|
||||
do {
|
||||
|
||||
@@ -1053,7 +1047,6 @@ static void *ccid (void *param)
|
||||
pthread_cleanup_pop (1);
|
||||
pthread_cleanup_pop (1);
|
||||
pthread_cleanup_pop (1);
|
||||
pthread_cleanup_pop (1);
|
||||
|
||||
fflush (stdout);
|
||||
fflush (stderr);
|
||||
|
||||
Reference in New Issue
Block a user