Remove storing select response every select command
authorWonkyu Kwon <wonkyu.kwon@samsung.com>
Wed, 22 May 2013 04:58:34 +0000 (13:58 +0900)
committerWonkyu Kwon <wonkyu.kwon@samsung.com>
Wed, 24 Jul 2013 08:56:37 +0000 (17:56 +0900)
 - store select response only when channel is opened.

Change-Id: Ibef945e9b60fdc270a50ec93cd4d2f5fa3f5d9bf

client/ClientChannel.cpp
server/ServerChannel.cpp

index 7426e18..b4d84da 100644 (file)
@@ -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 */
index 17d7355..1d896d1 100644 (file)
@@ -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;
        }