oc_obt:Add onboarding support with Random PIN OTM
This change adds new onboarding APIs to oc_obt for handling the Random PIN OTM. Specifically, it introduces two new APIs: one for requesting the peer device to generate (and display) a Random PIN, and one for executing the Random PIN OTM sequence in a TLS_PSK handshake that employs the PIN in deriving the symmetric key used for the handshake. OBT implementations are expected to invoke the first API and following a success response, accept the PIN via user input using any means defined by the application. Subsequently, the OBT invokes the second API, supplying the PIN for carrying out the entire OTM sequence. The sample onboarding_tool has been updated to support Random PIN OTM using these two APIs. This change also adds a new API oc_obt_shutdown() to be called by OBT implementations when they're about to terminate. This frees all internally allocated resources. Change-Id: I8ef2df9ffc08aa34c658c6d4c80ea1077a1bc9d9 Signed-off-by: Kishen Maloor <email@example.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/29388Tested-by: IoTivity Jenkins <firstname.lastname@example.org>
Showing with 1757 additions and 998 deletions
This diff is collapsed.