openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_SAL_RegMemCallback()

int32_t BSL_SAL_RegMemCallback ( BSL_SAL_MemCallback cb)

Interface for registering memory-related callback functions.

Register the memory application and release functions.

Attention
None
Parameters
cb[IN] Pointer to the memory-related callback function
Return values
BSL_SUCCESS,memoryapplication and release functions are successfully registered.
BSL_SAL_ERR_BAD_PARAM0x02010003. If the cb is null or the cb members have null, caution fill the input parameter cb.