[IOT-1800] Implement OCF Security CR1291
1. After establishing the secure OTM connection, GET the doxm
properties again, and verify that they are still the same as those
obtained during un-owned device discovery.
2. All GET and POST requests for /oic/sec/pstat are now performed
using the secure OTM connection, after finishing step #1 above.
3. Assert that a secure OTM connection is used for all Onboarding
related communication, except for:
- The initial discovery, and
- Posting the OxmSel property value (PostOwnerTransferModeToResource)
Note that:
- These are just Client-side changes. No Server-side changes were
required.
- A newer Client is still compatible with a Server based on IoTivity 1.2
- A newer Server is still compatible with a Client based on IoTivity 1.2
Not directly-related to this CR: set-up DTLSHandshakeCB earlier, to
avoid a possible race condition with the initiation of the OTM secure
connection triggered by PostOwnerTransferModeToResource.
Change-Id: I1a94505756205d3b40ed70cb73dc41c8ce6ce0e1
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17135
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>