Microchip® Advanced Software Framework

tls_srv_sec.h File Reference

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

Referenced by TlsSrvSecFopen().

#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

Referenced by TlsSrvSecWriteCertChain().

typedef struct certEntry tstrX509Entry

Enumerator
FILE_MODE_READ 
FILE_MODE_WRITE 
Enumerator
TLS_SRV_SEC_MODE_WRITE 
TLS_SRV_SEC_MODE_APPEND