int ret;
ret = select(dirPath, false);
- if (ret == FileObject::SUCCESS)
+ if (ret >= SCARD_ERROR_OK)
{
_DBG("response : %s", selectResponse.toString());
}
int ret;
ret = select(PKCS15::PKCS15_AID);
- if (ret == FileObject::SUCCESS)
+ if (ret >= SCARD_ERROR_OK)
{
_DBG("response : %s", selectResponse.toString());
}
int ret;
ret = select(path, false);
- if (ret == FileObject::SUCCESS)
+ if (ret >= SCARD_ERROR_OK)
{
result = true;
}
{
int ret = 0;
- if ((ret = select(fid)) == 0)
+ if ((ret = select(fid)) >= SCARD_ERROR_OK)
{
ByteArray dodfData, extra;
{
int ret = 0;
- if ((ret = select(path)) == 0)
+ if ((ret = select(path)) >= SCARD_ERROR_OK)
{
ByteArray dodfData, extra;
{
int ret = 0;
- if ((ret = select(PKCS15ODF::ODF_FID)) == 0)
+ if ((ret = select(PKCS15ODF::ODF_FID)) >= SCARD_ERROR_OK)
{
ByteArray odfData, extra;
{
PKCS15 pkcs15(channel);
+ channel->setSelectResponse(pkcs15.getSelectResponse());
+
acList->loadACL(channel);
result = acList->isAuthorizedAccess(aid, hashes);
}
FileObject file(channel);
rv = file.select(aid);
- if (rv >= 0)
+ if (rv >= SCARD_ERROR_OK)
{
/* remove privilege mode */
channel->unsetPrivilegeMode();