One of the functions only used for DTLS was missing #ifdef guards
resulting in compile warnings.
Change-Id: Ieb0082e1dba2547e8d73d0526cf0aab3bf3af589
Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1333
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
return doxm;
}
+/**
+ * @todo document this function including why code might need to call this.
+ * The current suspicion is that it's not being called as much as it should.
+ */
static bool UpdatePersistentStorage(OicSecDoxm_t * doxm)
{
bool bRet = false;
*/
void CheckDeviceID()
{
- //TODO: Save this deviceID at secure location so that we can retrieve it if the
- //JSON gets corrupted.
if(strcmp((char *)gDoxm->deviceID.id, "") == 0 )
{
OCFillRandomMem(gDoxm->deviceID.id, sizeof(gDoxm->deviceID.id));
+ UpdatePersistentStorage(gDoxm);
}
}