summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonkyu Kwon <wonkyu.kwon@samsung.com>2013-07-19 15:54:05 +0900
committerWonkyu Kwon <wonkyu.kwon@samsung.com>2013-07-24 17:56:39 +0900
commitf3d238f7318a1b33d29b6b7268b66cc256bfd586 (patch)
treef5134b9821d4335490f2079ba869aa1210e71a85
parent0829ae3e7ae6216209706781172d3a20ddbfa083 (diff)
downloadsmartcard-service-f3d238f7318a1b33d29b6b7268b66cc256bfd586.tar.gz
smartcard-service-f3d238f7318a1b33d29b6b7268b66cc256bfd586.tar.bz2
smartcard-service-f3d238f7318a1b33d29b6b7268b66cc256bfd586.zip
Fix problems
- fix TLVHelper is not clear old member values. - fis wrong callback assigned. Change-Id: I96afe568afd66c74fa62fa4968735b8f9fda2159
-rw-r--r--client/ClientChannel.cpp2
-rw-r--r--common/PKCS15DODF.cpp5
-rw-r--r--common/TLVHelper.cpp7
3 files changed, 10 insertions, 4 deletions
diff --git a/client/ClientChannel.cpp b/client/ClientChannel.cpp
index bbf6988..96f7ee8 100644
--- a/client/ClientChannel.cpp
+++ b/client/ClientChannel.cpp
@@ -410,7 +410,7 @@ namespace smartcard_service_api
GPOINTER_TO_UINT(context),
GPOINTER_TO_UINT(handle),
var_command, NULL,
- &ClientChannel::channel_close_cb, param);
+ &ClientChannel::channel_transmit_cb, param);
result = SCARD_ERROR_OK;
#else
diff --git a/common/PKCS15DODF.cpp b/common/PKCS15DODF.cpp
index 9177a02..86514c7 100644
--- a/common/PKCS15DODF.cpp
+++ b/common/PKCS15DODF.cpp
@@ -98,10 +98,9 @@ namespace smartcard_service_api
{
PKCS15OID oid(tlv.getValue());
- _DBG("OID DataObject");
+ _DBG("OID DataObject : %s", oid.getOID().toString().c_str());
- pair<ByteArray, PKCS15OID> newPair(oid.getOID(), oid);
- mapOID.insert(newPair);
+ mapOID.insert(make_pair(oid.getOID(), oid));
}
break;
diff --git a/common/TLVHelper.cpp b/common/TLVHelper.cpp
index 2b77288..85406dd 100644
--- a/common/TLVHelper.cpp
+++ b/common/TLVHelper.cpp
@@ -61,6 +61,13 @@ namespace smartcard_service_api
if (array.size() == 0)
return false;
+ currentTLV = this;
+ parentTLV = parent;
+ childTLV = NULL;
+ offset = 0;
+ currentT = 0;
+ currentL = 0;
+
tlvBuffer = array;
return true;