le_secStore_interface.h
Go to the documentation of this file.
24 * etc. All data in the secure storage is in an encrypted format. Each app using this API only has27 * App's items in secure storage have a name and a value. The item name is used to access the item's31 * To create or update an item, use le_secStore_Write() to specify the item's name and value. If the32 * item doesn't exist, it'll be created. Each item can be a maximum of 8192 bytes. If it's larger,35 * Additionally, an app's total secure storage usage is limited by the maxSecureStorageBytes setting38 * Writing to secure storage may also fail if the system-wide secure storage is out of memory. The58 * If corruption in the secure storage is detected, a restore is performed and the target device is106 //--------------------------------------------------------------------------------------------------110 //--------------------------------------------------------------------------------------------------113 //--------------------------------------------------------------------------------------------------116 * Connect the current client thread to the service providing this API. Block until the service is119 * For each thread that wants to use this API, either ConnectService or TryConnectService must be120 * called before any other functions in this API. Normally, ConnectService is automatically called125 //--------------------------------------------------------------------------------------------------131 //--------------------------------------------------------------------------------------------------134 * Try to connect the current client thread to the service providing this API. Return with an error137 * For each thread that wants to use this API, either ConnectService or TryConnectService must be138 * called before any other functions in this API. Normally, ConnectService is automatically called147 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).150 //--------------------------------------------------------------------------------------------------156 //--------------------------------------------------------------------------------------------------160 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants163 //--------------------------------------------------------------------------------------------------170 //--------------------------------------------------------------------------------------------------176 * longer a connection to the service, and the functions in this API can't be used. For details, see181 //--------------------------------------------------------------------------------------------------188 //--------------------------------------------------------------------------------------------------192 * If the item name is not valid or the buffer is NULL, this function will kill the calling client.200 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------214 * If the item name is not valid or the buffer is NULL, this function will kill the calling client.224 //--------------------------------------------------------------------------------------------------235 //--------------------------------------------------------------------------------------------------246 //--------------------------------------------------------------------------------------------------le_result_t le_secStore_Write(const char *LE_NONNULL name, const uint8_t *bufPtr, size_t bufSize)le_result_t le_secStore_TryConnectService(void)void le_secStore_ConnectService(void)le_result_t le_secStore_Read(const char *LE_NONNULL name, uint8_t *bufPtr, size_t *bufSizePtr)void(* le_secStore_DisconnectHandler_t)(void *)Definition: le_secStore_interface.h:111LE_FULL_API void le_secStore_SetServerDisconnectHandler(le_secStore_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_secStore_Delete(const char *LE_NONNULL name)void le_secStore_DisconnectService(void)