OicUuid_t rownerID; // 2:R:S:Y:oic.uuid
};
-#define MAX_VERSION_LEN 16 // Security Version length. i.e., 00.00.000 + reserved space
+#define OIC_SEC_MAX_VER_LEN 16 // Security Version length. i.e., 00.00.000 + reserved space
/**
* @brief security version data type
struct OicSecVer
{
// <Attribute ID>:<Read/Write>:<Multiple/Single>:<Mandatory?>:<Type>
- char secv[MAX_VERSION_LEN]; // 0:R:S:Y:String
+ char secv[OIC_SEC_MAX_VER_LEN]; // 0:R:S:Y:String
OicUuid_t deviceID; // 1:R:S:Y:oic.uuid
};
#ifdef WITH_TCP
uint16_t tcpPort; /**< tcp port **/
#endif
- char secVer[MAX_VERSION_LEN]; /**< security version **/
+ char secVer[OIC_SEC_MAX_VER_LEN]; /**< security version **/
DeviceStatus devStatus; /**< status of device **/
OCDoHandle handle;
struct OCProvisionDev *next; /**< Next pointer. **/
ptr->next = NULL;
ptr->connType = connType;
ptr->devStatus = DEV_STATUS_ON; //AddDevice is called when discovery(=alive)
- OICStrcpy(ptr->secVer, MAX_VERSION_LEN, DEFAULT_SEC_VERSION); // version initialization
+ OICStrcpy(ptr->secVer, OIC_SEC_MAX_VER_LEN, DEFAULT_SEC_VERSION); // version initialization
ptr->handle = NULL;
LL_PREPEND(*ppDevicesList, ptr);
return OC_STACK_ERROR;
}
- OICStrcpy(ptr->secVer, MAX_VERSION_LEN, secVer);
+ OICStrcpy(ptr->secVer, OIC_SEC_MAX_VER_LEN, secVer);
return OC_STACK_OK;
}
if (0 == strlen(src->secVer))
{
- OICStrcpy(newDev->secVer, MAX_VERSION_LEN, DEFAULT_SEC_VERSION);
+ OICStrcpy(newDev->secVer, OIC_SEC_MAX_VER_LEN, DEFAULT_SEC_VERSION);
}
else
{
- OICStrcpy(newDev->secVer, MAX_VERSION_LEN, src->secVer);
+ OICStrcpy(newDev->secVer, OIC_SEC_MAX_VER_LEN, src->secVer);
}
newDev->securePort = src->securePort;
{
OCStackResult ret = OC_STACK_ERROR;
- OICStrcpy(gVer.secv, MAX_VERSION_LEN, SECURITY_VERSION);
+ OICStrcpy(gVer.secv, OIC_SEC_MAX_VER_LEN, SECURITY_VERSION);
//Read device id from doxm
OicUuid_t deviceID = {.id={0}};