From: Nikolai Merinov Date: Wed, 6 Feb 2019 14:33:10 +0000 (+0300) Subject: Fix generation of user id field value X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fsandbox%2Fnmerinov%2Fllvm;p=platform%2Fcore%2Fsecurity%2Ftef-simulator.git Fix generation of user id field value --- diff --git a/TEEStub/PropertyAccess/PropertyApi.cpp b/TEEStub/PropertyAccess/PropertyApi.cpp index dfe8210..885eb06 100644 --- a/TEEStub/PropertyAccess/PropertyApi.cpp +++ b/TEEStub/PropertyAccess/PropertyApi.cpp @@ -79,7 +79,7 @@ TEE_Result InitPropertyModule(const std::string& uuid, const std::string& taDir, uint32_t clientLogin) { PropertyValue pv; pv.type = "identity"; - pv.value = "" + clientLogin; + pv.value = "" + std::to_string(clientLogin); clientLoginGlobal = clientLogin; thisTAUUIDGlobal = uuid; @@ -333,7 +333,7 @@ void TEE_StartPropertyEnumerator(TEE_PropSetHandle enumerator, case TEE_PROPSET_CURRENT_CLIENT: { PropertyValue pv; pv.type = "identity"; - pv.value = "" + clientLoginGlobal; + pv.value = "" + std::to_string(clientLoginGlobal); if(!_allowPropertyAccess) { break;