Remove TEEName check for compatibility with target 04/171304/3
authorInho Kim <inho1220.kim@samsung.com>
Mon, 23 Oct 2017 02:56:23 +0000 (11:56 +0900)
committerKrzysztof Dynowski <k.dynowski@samsung.com>
Tue, 13 Mar 2018 08:43:21 +0000 (09:43 +0100)
Change-Id: Ia624b138683ec4c3f8f8116ca6ac765abf015bb0

simulatordaemon/src/TEEContext.cpp

index 0cbdaed..400535f 100644 (file)
@@ -88,21 +88,6 @@ TEEC_Result TEEContext::initContext(InitContextData* data) {
                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;