if (!mTAInstance == true) { // failure
LOGE(SIM_DAEMON, "Creating Trusted Application Instance FAILED - "
"TA not launched/Create FAILED");
- return TEEC_ERROR_BAD_PARAMETERS;
+ return TEEC_ERROR_ITEM_NOT_FOUND;
}
/* Check if TAInstance is newly created or an old instance is being re-used.
string TName(data->TEEName);
if (TName.compare(TEENAME) != 0) {
- data->returnValue = TEEC_ERROR_BAD_PARAMETERS;
+ data->returnValue = TEEC_ERROR_ITEM_NOT_FOUND;
/* Write the response back to TEECLIB in case of failure */
result = mConnSess->write(INITIALIZE_CONTEXT, (char*)data,
sizeof(InitContextData));
if (mSession->getTAInstance() == NULL) {
LOGE(SIM_DAEMON, "Creating Trusted Application Instance FAILED");
delete mSession;
- data.returnValue = TEEC_ERROR_BAD_PARAMETERS;
+ data.returnValue = TEEC_ERROR_ITEM_NOT_FOUND;
/* Write the response back to TEECLIB in case of failure */
result = mConnSess->write(OPEN_SESSION, (char*)&data,
if (mSession->getTAInstance() == NULL) {
LOGE(SIM_DAEMON, "Creating Trusted Application Instance FAILED");
delete mSession;
- data.returnValue = TEEC_ERROR_BAD_PARAMETERS;
+ data.returnValue = TEEC_ERROR_ITEM_NOT_FOUND;
/* Write the response back to SSFLIB in case of failure */
result = mConnSess->write(OPEN_TA_SESSION, (char*)&data,
sizeof(IntTAOpenSessionData));