WE310F5  39.00.000
m2mb_ssl_cert.h
Go to the documentation of this file.
1 /*===============================================================================================*/
2 /* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */
27 /* Global declarations ==========================================================================*/
28 #ifndef M2MB_SSL_CERT_H_
29 #define M2MB_SSL_CERT_H_
30 /* Failure return codes MUST be < 0 */
31 #include "nwk/m2mb_socket.h"
32 #include "m2mb_types.h"
33 #include "m2mb_status.h"
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 
49 /*-----------------------------------------------------------------------------------------------*/
50 
55 /*-----------------------------------------------------------------------------------------------*/
56 
57 #define M2MB_SSL_MAX_CA_LIST 10
58 #define M2MB_SSL_MAX_CERT_NAME_LEN 64
61 typedef enum M2MB_SSL_CERT_TYPE_E
62 {
66 
67 
70 {
77 
78 
80 typedef enum M2MB_SSL_CERT_FMT_E
81 {
85 
87 typedef struct M2MB_SSL_CERT_T
88 {
95 
97 typedef struct M2MB_SSL_CA_INFO_T
98 {
102 
104 typedef struct M2MB_SSL_CA_LIST_T
105 {
109 
111 typedef struct M2MB_SSL_CERT_LIST_T {
114 
116 typedef union
117 {
120 // M2MB_SSL_PSK_TABLE_T psk_Tbl; /**< PSK table */
122 
123 
189 /*-----------------------------------------------------------------------------------------------*/
191 
192 
193 
233 /*-----------------------------------------------------------------------------------------------*/
235 
269 /*-----------------------------------------------------------------------------------------------*/
271 
302 /*-----------------------------------------------------------------------------------------------*/
303 
305 
309 /*-----------------------------------------------------------------------------------------------*/
310 
311 #ifdef __cplusplus
312 }
313 #endif
314 #endif
M2MB_STATUS_T m2mb_ssl_cert_search(M2MB_SSL_CERT_TYPE_E sslCertType, CHAR *certName)
Search for the given certificate in the system.
unsigned char UINT8
Definition: m2mb_types.h:86
M2MB_SSL_CERT_FMT_E
SSL certificate format enum.
Definition: m2mb_ssl_cert.h:80
general Socket support
M2MB_SSL_CA_LIST_T ca_List
struct M2MB_SSL_CA_INFO_T M2MB_SSL_CA_INFO_T
SSL certificate authority list information.
INT32 M2MB_STATUS_T
Definition: m2mb_status.h:97
struct M2MB_SSL_CERT_LIST_T M2MB_SSL_CERT_LIST_T
SSL Cert list structure.
M2MB_STATUS_T m2mb_ssl_cert_store(M2MB_SSL_CERT_TYPE_E sslCertType, M2MB_SSL_SEC_INFO_U sslSecInfo, CHAR *name, M2MB_SSL_CERT_FMT_E format)
Store certificates from buffer.
M2MB_SSL_CERT_TYPE_E
SSL certificate type enum.
Definition: m2mb_ssl_cert.h:61
SSL certificate information for conversion and storage.
Definition: m2mb_ssl_cert.h:87
M2MB_SSL_CA_INFO_T * ca_Info[M2MB_SSL_MAX_CA_LIST]
char CHAR
Definition: m2mb_types.h:76
#define M2MB_SSL_MAX_CERT_NAME_LEN
Definition: m2mb_ssl_cert.h:58
M2MB_STATUS_T m2mb_ssl_cert_delete(M2MB_SSL_CERT_TYPE_E sslCertType, CHAR *name)
Delete certificates.
M2MB_SSL_PEMCERT_TYPE_E
SSL certificate type enum.
Definition: m2mb_ssl_cert.h:69
SSL certificate authority information for conversion and storage.
M2M base status (ver. )
struct M2MB_SSL_CERT_T M2MB_SSL_CERT_T
SSL certificate information for conversion and storage.
unsigned long int UINT32
Definition: m2mb_types.h:88
signed int INT32
Definition: m2mb_types.h:82
SSL Certificate information union.
SSL certificate authority list information.
Definition: m2mb_ssl_cert.h:97
#define M2MB_SSL_MAX_CA_LIST
Definition: m2mb_ssl_cert.h:57
struct M2MB_SSL_CA_LIST_T M2MB_SSL_CA_LIST_T
SSL certificate authority information for conversion and storage.
M2M base types (ver. )
SSL Cert list structure.
char name[M2MB_SSL_MAX_CA_LIST][M2MB_SSL_MAX_CERT_NAME_LEN]
INT32 m2mb_ssl_cert_get(M2MB_SSL_CERT_TYPE_E sslCertType, M2MB_SSL_CERT_LIST_T *sslCertList)
It gets the list of the certificates stored.
M2MB_SSL_CERT_T cert