&& ((NULL != name && targetProperty->getPropertyByName(queryProp, pv))\r
|| (NULL == name && targetProperty->getPropertyValue(pv)))) {\r
string binaryBlockOut;\r
- returnValue = PropertyUtility::convertToBinaryBlock(pv, binaryBlockOut);\r
- bool conversionStatus = (returnValue == TEE_SUCCESS) ? true : false;\r
- if (valueBuffer && conversionStatus\r
+ PropertyUtility::convertToBinaryBlock(pv, binaryBlockOut);\r
+ if (valueBuffer\r
&& binaryBlockOut.size() < *valueBufferLen) {\r
strncpy((char*)valueBuffer, binaryBlockOut.c_str(), *valueBufferLen);\r
}\r
*\r
* @param in[in] a property to be converted to a block of Base64 encoded data\r
* @param out[out] converted property\r
- * @return TEE_SUCCESS always. Here function returns fixed value for the\r
- * to maintain uniformity.\r
*/\r
-TEE_Result PropertyUtility::convertToBinaryBlock(const PropertyValue& in,\r
+void PropertyUtility::convertToBinaryBlock(const PropertyValue& in,\r
string& out) {\r
string s = in.value;\r
string base64Encoded = PropertyUtility::base64_encode(\r
reinterpret_cast<const unsigned char*>(s.c_str()), s.size());\r
out = base64Encoded;\r
- return TEE_SUCCESS;\r
}\r
\r
/**\r
static TEE_Result convertToUTF8(const PropertyValue &in, string &out);\r
static TEE_Result convertToBool(const PropertyValue &in, bool &out);\r
static TEE_Result convertToU32(const PropertyValue &in, uint32_t &out);\r
- static TEE_Result convertToBinaryBlock(const PropertyValue &in, string &out);\r
+ static void convertToBinaryBlock(const PropertyValue &in, string &out);\r
static TEE_Result convertFromBinaryBlock(const string &in, string& out);\r
static TEE_Result convertToUUID(const PropertyValue &in, TEE_UUID &out);\r
static TEE_Result convertToIdentity(const PropertyValue &in,\r