+ // SC_RSRVD_ES_VENDOR_DEPLOY_ENVIRONMENT
+ char *deployEnv = NULL;
+ if (OCRepPayloadGetPropString(payload, SC_RSRVD_ES_VENDOR_DEPLOY_ENVIRONMENT, &deployEnv))
+ {
+ if(*userdata == NULL)
+ {
+ *userdata = (void*)OICMalloc(sizeof(SCCoapCloudServerConfProperties));
+ if( *userdata == NULL )
+ {
+ OIC_LOG(ERROR, SC_ENROLLEE_TAG, "OICMalloc for SCCoapCloudServerConfProperties is failed");
+ OICFree(deployEnv);
+ return;
+ }
+ memset(*userdata, 0, sizeof(SCCoapCloudServerConfProperties));
+ }
+
+ if (*userdata != NULL)
+ {
+ SCCoapCloudServerConfProperties *pCloudProp =
+ (SCCoapCloudServerConfProperties*) (*userdata);
+ OICStrcpy(pCloudProp->deployEnv, MAXLEN_STRING, deployEnv);
+ OICStrcpy(g_SCProperties.deployEnv, MAXLEN_STRING, deployEnv);
+ OICFree(deployEnv);
+
+ OIC_LOG_V(INFO_PRIVATE, SC_ENROLLEE_TAG, "[User specific property] %s : %s",
+ SC_RSRVD_ES_VENDOR_REFRESH_TOKEN, pCloudProp->deployEnv);
+ }
+ }
+
+ // SC_RSRVD_ES_VENDOR_IATT
+ int64_t iatt;
+ if (OCRepPayloadGetPropInt(payload, SC_RSRVD_ES_VENDOR_IATT, &iatt))
+ {
+ if(*userdata == NULL)
+ {
+ *userdata = (void*)OICMalloc(sizeof(SCCoapCloudServerConfProperties));
+ if( *userdata == NULL )
+ {
+ OIC_LOG(ERROR, SC_ENROLLEE_TAG, "OICMalloc for SCCoapCloudServerConfProperties is failed");
+ return;
+ }
+ memset(*userdata, 0, sizeof(SCCoapCloudServerConfProperties));
+ }
+
+ SCCoapCloudServerConfProperties *pCloudProp =
+ (SCCoapCloudServerConfProperties*) (*userdata);
+
+ pCloudProp->iatt = iatt;
+ g_SCProperties.iatt = iatt;
+
+ OIC_LOG_V(INFO_PRIVATE, SC_ENROLLEE_TAG, "[User specific property] %s : %d",
+ SC_RSRVD_ES_VENDOR_REFRESH_TOKEN, pCloudProp->iatt);
+ }
+