mirror of
https://github.com/espressif/openthread.git
synced 2026-08-19 00:49:53 +00:00
[pskc] switch to using otPSKc struct (#3769)
This commit is contained in:
committed by
Jonathan Hui
parent
987e96ba0d
commit
f46fbb844d
@@ -112,7 +112,7 @@ struct otMeshLocalPrefix
|
||||
} OT_TOOL_PACKED_END;
|
||||
|
||||
/**
|
||||
* This structure represents a Mesh Local Prefix
|
||||
* This structure represents a Mesh Local Prefix.
|
||||
*
|
||||
*/
|
||||
typedef struct otMeshLocalPrefix otMeshLocalPrefix;
|
||||
@@ -123,10 +123,17 @@ typedef struct otMeshLocalPrefix otMeshLocalPrefix;
|
||||
* This structure represents PSKc.
|
||||
*
|
||||
*/
|
||||
typedef struct otPSKc
|
||||
OT_TOOL_PACKED_BEGIN
|
||||
struct otPSKc
|
||||
{
|
||||
uint8_t m8[OT_PSKC_MAX_SIZE]; ///< Byte values
|
||||
} otPSKc;
|
||||
} OT_TOOL_PACKED_END;
|
||||
|
||||
/**
|
||||
* This structure represents a PSKc.
|
||||
*
|
||||
*/
|
||||
typedef struct otPSKc otPSKc;
|
||||
|
||||
/**
|
||||
* This structure represent Security Policy.
|
||||
|
||||
@@ -524,7 +524,7 @@ OTAPI otError OTCALL otThreadGetEidCacheEntry(otInstance *aInstance, uint8_t aIn
|
||||
* @sa otThreadSetPSKc
|
||||
*
|
||||
*/
|
||||
OTAPI const uint8_t *OTCALL otThreadGetPSKc(otInstance *aInstance);
|
||||
OTAPI const otPSKc *OTCALL otThreadGetPSKc(otInstance *aInstance);
|
||||
|
||||
/**
|
||||
* Set the thrPSKc.
|
||||
@@ -542,7 +542,7 @@ OTAPI const uint8_t *OTCALL otThreadGetPSKc(otInstance *aInstance);
|
||||
* @sa otThreadGetPSKc
|
||||
*
|
||||
*/
|
||||
OTAPI otError OTCALL otThreadSetPSKc(otInstance *aInstance, const uint8_t *aPSKc);
|
||||
OTAPI otError OTCALL otThreadSetPSKc(otInstance *aInstance, const otPSKc *aPSKc);
|
||||
|
||||
/**
|
||||
* Get the assigned parent priority.
|
||||
|
||||
Reference in New Issue
Block a user