framework/src/st_things/things_stack/things_stack.c
//----------------------------------------------------------------------------------
/**
 * Functions Definition for Security feature.
 */
Functions Definition for Security feature.
Functions Definition for Security feature .
int things_register_otm_event_handler(things_sec_otm_state_func_type otmEventCallback)
{
	THINGS_LOG_D(TAG, THINGS_FUNC_ENTRY);
#ifdef __SECURED__
	if (otmEventCallback == NULL) {
		THINGS_LOG_E(TAG, "otmEventCallback is NULL");
		return 0;
	}
	g_otm_event_handler = otmEventCallback;
#else
	THINGS_LOG_E(TAG, "Stack is in UNSECURED Mode");
	return 0;
#endif
	return 1;
}
int things_register_otm_event_handler ( things_sec_otm_state_func_type otmEventCallback ) { THINGS_LOG_D ( TAG , THINGS_FUNC_ENTRY ) ; #ifdef __SECURED__ if ( otmEventCallback == NULL ) { THINGS_LOG_E ( TAG , " " ) ; return 0 ; } g_otm_event_handler = otmEventCallback ; #else THINGS_LOG_E ( TAG , " " ) ; return 0 ; #endif return 1 ; }
Functions Definition for Security feature.
Functions Definition for Security feature .