Change-Id: I4dc3d01d6d11de187aaddd3f556135d516d32028
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11987
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
#endif //_ENABLE_MULTIPLE_OWNER_
/**
+ * Function to unset the input PIN callback.
+ * NOTE : Do not call this function while PIN based ownership transfer.
+ */
+void UnsetInputPinCB();
+
+/**
+ * Function to unset the PIN generation callback.
+ * NOTE : Do not call this function while PIN based ownership transfer.
+ */
+void UnsetGeneratePinCB();
+
+/**
* Function to generate random PIN.
* This function will send generated PIN to user via callback.
*
gGenPinCallback = pinCB;
}
+void UnsetInputPinCB()
+{
+ gInputPinCallback = NULL;
+}
+
+void UnsetGeneratePinCB()
+{
+ gGenPinCallback = NULL;
+}
+
OCStackResult GeneratePin(char* pinBuffer, size_t bufferSize)
{
if(!pinBuffer)