From: Tomasz Swierczek Date: Tue, 28 Nov 2017 19:07:11 +0000 (+0100) Subject: In case of OpenSession success return TRUSTED_APP origin X-Git-Tag: submit/tizen/20171205.070457~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3353f0900f1f34e33d736138114db880e34a925e;p=platform%2Fcore%2Fsecurity%2Ftef-simulator.git In case of OpenSession success return TRUSTED_APP origin This commit is a workaround of the fact that daemon is not passing data properly between its classes and client library. Change-Id: I3e52606d646c7f9e6d574582b7233aefbc252338 --- diff --git a/TEECLib/src/teec_api.c b/TEECLib/src/teec_api.c index a23aa71..91f5185 100644 --- a/TEECLib/src/teec_api.c +++ b/TEECLib/src/teec_api.c @@ -1231,7 +1231,11 @@ TEEC_Result TEEC_OpenSession(TEEC_Context *context, TEEC_Session *session, } return result; - } else session_imp->sessionID = os.sessionID; + } else { + session_imp->sessionID = os.sessionID; + /* A workaround for daemon not passing properly data upwards */ + if (returnOrigin) *returnOrigin = TEEC_ORIGIN_TRUSTED_APP; + } if (operation) postProcessOperation(operation, &os.operation, tmpSharedMem);