Commit ecec5b2f authored by Aleksey's avatar Aleksey

Use 2.1 version for RO doxm.owned

Change-Id: I8845a2551a18b54ccd064333c1fe867e95ebfb94
Signed-off-by: Aleksey's avatarAleksey Volkov <a.volkov@samsung.com>
parent e4b20889
......@@ -712,6 +712,9 @@ struct OicSecPdAcl
#define GET_OCF_MAJOR_VER(specVer) ((int)((specVer)[4] - '0'))
#define GET_OCF_MINOR_VER(specVer) ((int)((specVer)[6] - '0'))
#ifdef __cplusplus
}
#endif
......
......@@ -2271,9 +2271,12 @@ static OCStackResult PostOwnershipInformation(OTMContext_t* otmCtx)
bool propertiesToInclude[DOXM_PROPERTY_COUNT];
memset(propertiesToInclude, 0, sizeof(propertiesToInclude));
if ( ! ( IS_OCF(otmCtx->selectedDeviceInfo->specVer)
&& GET_OCF_MAJOR_VER(otmCtx->selectedDeviceInfo->specVer) > 2) )
&& ( GET_OCF_MAJOR_VER(otmCtx->selectedDeviceInfo->specVer) > 2
|| ( GET_OCF_MAJOR_VER(otmCtx->selectedDeviceInfo->specVer) == 2
&& GET_OCF_MINOR_VER(otmCtx->selectedDeviceInfo->specVer) >= 1) ) )
)
{
OIC_LOG_V(DEBUG, TAG, "%s: Pre ocf.3.x version detected", __func__);
OIC_LOG_V(DEBUG, TAG, "%s: Pre ocf.2.1.x version detected", __func__);
propertiesToInclude[DOXM_OWNED] = true;
}
//include rowner uuid
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment