[pskc] switch to using otPSKc struct (#3769)

This commit is contained in:
Jonathan Hui
2019-04-18 08:45:14 -07:00
committed by Jonathan Hui
parent 987e96ba0d
commit f46fbb844d
13 changed files with 52 additions and 51 deletions
+10 -3
View File
@@ -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.
+2 -2
View File
@@ -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.