return result;
}
- /* Check if the TEEName is proper or not */
- if (data->nameLength != 0) {
- string TName(data->TEEName);
-
- if (TName.compare(TEENAME) != 0) {
- 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 (result != TEEC_SUCCESS) {
- LOGE(SIM_DAEMON, "Initialize Context response write to CA FAILED");
- }
- return result;
- }
- }
data->contextID = mContextID;
data->returnValue = TEEC_SUCCESS;