36 lines
915 B
C
36 lines
915 B
C
//
|
|
// Created by cfif on 04.06.2024.
|
|
//
|
|
|
|
#ifndef SMART_COMPONENTS_CERTS_H
|
|
#define SMART_COMPONENTS_CERTS_H
|
|
|
|
#include "XfcProtProcessorUtilDefines.h"
|
|
#include "AtCmdBase.h"
|
|
#include "BaseTypes.h"
|
|
|
|
extern const char file_ca[];
|
|
extern const char file_crt[];
|
|
extern const char file_key[];
|
|
|
|
typedef enum {
|
|
CERT_CA,
|
|
CERT_CLIENT,
|
|
CERT_CLIENT_KEY
|
|
} tCertsType;
|
|
|
|
typedef struct {
|
|
tAtCmd *gsmAt;
|
|
tString64 cacert;
|
|
tString64 clientcert;
|
|
tString64 clientkey;
|
|
} tCerts;
|
|
|
|
void XfcProtMethodsInit_Certs(tCerts *certs);
|
|
void XfcProtMethodsAdd_Certs(tXfcProtTable *protTab, tCerts *certs, tAtCmd *gsmAt);
|
|
uint8_t XfcProtMethod_CertsGet(tXfcArray *request, tXfcArray *response, tCerts *certs);
|
|
uint8_t XfcProtMethod_CertsSet(tXfcArray *request, tXfcArray *response, tCerts *certs);
|
|
uint8_t XfcProtMethod_CertsDel(tXfcArray *request, tXfcArray *response, tCerts *certs);
|
|
|
|
#endif //SMART_COMPONENTS_CERTS_H
|