This module implements TLS Server Certificate Installation.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | certEntry |
struct | tstrBuff |
struct | tstrFileInfo |
struct | tstrTlsSrvSecFileHandle |
Macros | |
#define | TLS_SRV_SEC_FILE_NAME_MAX (48) |
#define | TLS_SRV_SEC_MAX_FILES 8 |
#define | TLS_SRV_SEC_START_PATTERN {0xAB, 0xFE, 0x18, 0x5B, 0x70, 0xC3, 0x46, 0x92} |
#define | TLS_SRV_SEC_START_PATTERN_LEN 8 |
Typedefs | |
typedef struct certEntry | tstrX509Entry |
Enumerations | |
enum | tenuTlsSrvSecFileMode { FILE_MODE_READ, FILE_MODE_WRITE } |
enum | tenuWriteMode { TLS_SRV_SEC_MODE_WRITE = 0, TLS_SRV_SEC_MODE_APPEND } |
Functions | |
sint8 | TlsSrvSecWriteCertChain (uint8 *pu8PrivKey, uint32 u32PrivKeySz, tstrFileInfo *pstrCertChain, uint8 u8ChainDepth, uint8 *pu8TlsSrvSecBuff, uint32 *pu32SecSz, tenuWriteMode enuMode) |
#define TLS_SRV_SEC_FILE_NAME_MAX (48) |
#define TLS_SRV_SEC_MAX_FILES 8 |
#define TLS_SRV_SEC_START_PATTERN {0xAB, 0xFE, 0x18, 0x5B, 0x70, 0xC3, 0x46, 0x92} |
Referenced by TlsSrvSecWriteCertChain().
#define TLS_SRV_SEC_START_PATTERN_LEN 8 |
typedef struct certEntry tstrX509Entry |
enum tenuWriteMode |
sint8 TlsSrvSecWriteCertChain | ( | uint8 * | pu8PrivKey, |
uint32 | u32PrivKeySz, | ||
tstrFileInfo * | pstrCertChain, | ||
uint8 | u8ChainDepth, | ||
uint8 * | pu8TlsSrvSecBuff, | ||
uint32 * | pu32SecSz, | ||
tenuWriteMode | enuMode | ||
) |
References tstrTlsSrvSecHdr::au8SecStartPattern, M2M_ERR_FAIL, M2M_TLS_SERVER_FLASH_OFFSET, M2M_TLS_SERVER_FLASH_SIZE, NULL, ret, TLS_SRV_SEC_MODE_APPEND, TLS_SRV_SEC_MODE_WRITE, TLS_SRV_SEC_START_PATTERN, TLS_SRV_SEC_START_PATTERN_LEN, tstrTlsSrvSecHdr::u32nEntries, tstrTlsSrvSecHdr::u32NextWriteAddr, and WriteTlsServerKeyMaterial().
Referenced by WriteTlsCertificate().