From 17afca0b257129eec33d4b4247bae60de46b8074 Mon Sep 17 00:00:00 2001 From: Wonkyu Kwon Date: Wed, 22 May 2013 13:58:34 +0900 Subject: [PATCH 1/1] Remove storing select response every select command - store select response only when channel is opened. Change-Id: Ibef945e9b60fdc270a50ec93cd4d2f5fa3f5d9bf --- client/ClientChannel.cpp | 8 -------- server/ServerChannel.cpp | 6 ------ 2 files changed, 14 deletions(-) diff --git a/client/ClientChannel.cpp b/client/ClientChannel.cpp index 7426e18..b4d84da 100644 --- a/client/ClientChannel.cpp +++ b/client/ClientChannel.cpp @@ -260,14 +260,6 @@ namespace smartcard_service_api /* transmit result */ _INFO("MSG_REQUEST_TRANSMIT"); - if (msg->error == 0 && - ResponseHelper::getStatus(msg->data) == 0) - { - /* store select response */ - if (msg->data.getAt(1) == APDUCommand::INS_SELECT_FILE) - channel->setSelectResponse(msg->data); - } - if (msg->isSynchronousCall() == true) /* synchronized call */ { /* sync call */ diff --git a/server/ServerChannel.cpp b/server/ServerChannel.cpp index 17d7355..1d896d1 100644 --- a/server/ServerChannel.cpp +++ b/server/ServerChannel.cpp @@ -109,12 +109,6 @@ namespace smartcard_service_api _DBG("command [%d] : %s", command.getLength(), command.toString()); ret = terminal->transmitSync(command, result); - if (ret == 0 && ResponseHelper::getStatus(result) == 0) - { - /* store select response */ - if (helper.getINS() == APDUCommand::INS_SELECT_FILE) - setSelectResponse(result); - } return ret; } -- 2.7.4