SSL API
API that configures the SSL communication
BS2_SetSSLHandler
Configures the SSL communication.
BS2_DisableSSL
Disables the SSL communication.
Callback Function
typedef const char* (*GetRootCaFilePath)(uint32_t deviceId);
typedef const char* (*GetServerCaFilePath)(BS2_DEVICE_ID deviceId);
typedef const char* (*GetServerPrivateKeyFilePath)(uint32_t deviceId);
typedef const char* (*GetPassword)(uint32_t deviceId);
typedef void (*OnErrorOccured)(BS2_DEVICE_ID deviceId, int errCode);
-
GetRootCaFilePathCallback function that is called when to retrieve the root CA file directory.
-
GetServerCaFilePathCallback function that is called when to retrieve the server CA file directory.
-
GetServerPrivateKeyFilePathCallback function that is called when to retrieve the server private key file directory.
-
GetPasswordCallback function that is called when to retrieve the password.
-
OnErrorOccuredCallback function that is called when an error has occurred.