Update LoRaMac-node to Version 4.4.4,fix Security breach found by Tencent Blade Team please refer to security advisory - CVE-2020-11068
fix Security breach found by Tencent Blade Team please refer to security advisory - CVE-2020-11068
This commit is contained in:
@@ -35,6 +35,11 @@
|
||||
#ifndef __LORAMAC_COMMANDS_H__
|
||||
#define __LORAMAC_COMMANDS_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include "LoRaMacTypes.h"
|
||||
@@ -109,7 +114,7 @@ typedef enum eLoRaMacCommandsStatus
|
||||
* Signature of callback function to be called by this module when the
|
||||
* non-volatile needs to be saved.
|
||||
*/
|
||||
typedef void ( *EventNvmCtxChanged )( void );
|
||||
typedef void ( *LoRaMacCommandsNvmEvent )( void );
|
||||
|
||||
/*!
|
||||
* \brief Initialization of LoRaMac MAC commands module
|
||||
@@ -119,7 +124,7 @@ typedef void ( *EventNvmCtxChanged )( void );
|
||||
*
|
||||
* \retval - Status of the operation
|
||||
*/
|
||||
LoRaMacCommandStatus_t LoRaMacCommandsInit( EventNvmCtxChanged commandsNvmCtxChanged );
|
||||
LoRaMacCommandStatus_t LoRaMacCommandsInit( LoRaMacCommandsNvmEvent commandsNvmCtxChanged );
|
||||
|
||||
/*!
|
||||
* Restores the internal non-volatile context from passed pointer.
|
||||
@@ -212,7 +217,20 @@ LoRaMacCommandStatus_t LoRaMacCommandsSerializeCmds( size_t availableSize, size_
|
||||
*/
|
||||
LoRaMacCommandStatus_t LoRaMacCommandsStickyCmdsPending( bool* cmdsPending );
|
||||
|
||||
/*!
|
||||
* \brief Get the MAC command size with corresponding CID.
|
||||
*
|
||||
* \param[IN] cid - MAC command identifier
|
||||
*
|
||||
* \retval Size of the command.
|
||||
*/
|
||||
uint8_t LoRaMacCommandsGetCmdSize( uint8_t cid );
|
||||
|
||||
/*! \} addtogroup LORAMAC */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __LORAMAC_COMMANDS_H__
|
||||
|
||||
|
Reference in New Issue
Block a user