Hi All, Currently SECURED = 0/1 is used for IoTivity compile option. But even if SECURED = 1, we can configure the resource creation with secure or non-secure. related API is OCPlatform.registerResource(?? uint8_t OC_SECURE) or OCCreateResource(?. uint8_t OC_SECURE).
So that Jenkins build configuration need to be modified as follows (Arduino, Ubuntu will keep to have SECURED=0 flag build) linux_secured ? no changed linux_unsecured ? no changed linux_arduino ? no changed linux_unsecured_with_tcp (SECURED = 0 ) ? linux_secured_with_tcp (SECURED = 1) android (SECURED = 0) ? android (SECURED = 1) tizen (SECURED = 0) ? android (SECURED = 1) windows-vs2013 (SECURED = 0) ? windows-vs2013 (SECURED = 1) windows-vs2015 (SECURED = 0) ? windows-vs2015 (SECURED = 1) unit_test (SECURED = 0) ? unit_test (SECURED = 1) simulator (SECURED = 0, WITH_TCP=0) ? simulator (SECURED = 1, WITH_TCP=1) I checked the Sample code in the base Layer , in case of build (Secure = true), non-secure resource will be created by default and secure resource can be created by modifying some line of code. For the service layer code, following are required. - Easy Setup (already has the secure resource setting, ESInitEnrollee (true/false, ?) - Scene Manager (Not yet, need SceneList.initializeSecureResource( )) - Resource Encapsulation (already has the secure resource setting, Builder.setSecureFlag(true/false) - Resource Container (not yet, need xml configuration for this) - Notification Service (already has the secure resource setting, NSProviderConfig.resourceSecurity = true/false, C++/Android are required to have it) - resource directory (implementing now, OCRDStart() ? CHPInitialize(bool secure)) - coap-http proxy (implementing now, CHPInitialize() ? CHPInitialize(bool secure) - Simulator (not yet, need UI setting) - resource hosting (not yet, code is not maintained) Please give any feedback if you have prior to this change. BR, Uze Choi (Release Function Lead) -------------- next part -------------- HTML ?????? ??????????????... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160919/22ec0c8f/attachment.html>