cc
Diff: SPWFSA01.h
- Revision:
- 25:6b79352bc1fa
- Parent:
- 24:419285201dba
- Child:
- 27:0dc1402f42a9
--- a/SPWFSA01.h Tue Nov 22 14:36:25 2016 +0000 +++ b/SPWFSA01.h Mon Jan 02 14:46:40 2017 +0000 @@ -19,6 +19,18 @@ #include "ATParser.h" + enum CertType_t { + RAM_CA_ROOT_CERT =0, // store CA root certicate in RAM + RAM_CLIENT_CERT, + RAM_CLIENT_PRIV_KEY, + FLASH_CA_ROOT_CERT, // store CA root certicate in FLASH + FLASH_CLIENT_CERT, + FLASH_CLIENT_PRIV_KEY, + RAM_DOMAIN, // store secure server domain name in RAM + FLASH_DOMAIN, // store secure server domain name in RAM + ALL // clear all the CERT and DOMAIN from flash +}; + /** SPWFSA01Interface class. This is an interface to a SPWFSA01 module. */ @@ -142,6 +154,13 @@ */ bool writeable(); + int settime(time_t ctTime); + + int32_t setTLScertificate(char * cert, unsigned int size, CertType_t type); + int32_t setTLSSRVdomain(char * cert, CertType_t type); + int32_t cleanTLScertificate(CertType_t type); + + private: BufferedSerial _serial; ATParser _parser;