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 is110 //--------------------------------------------------------------------------------------------------114 //--------------------------------------------------------------------------------------------------117 //--------------------------------------------------------------------------------------------------120 * Connect the current client thread to the service providing this API. Block until the service is123 * For each thread that wants to use this API, either ConnectService or TryConnectService must be124 * called before any other functions in this API. Normally, ConnectService is automatically called129 //--------------------------------------------------------------------------------------------------135 //--------------------------------------------------------------------------------------------------138 * Try to connect the current client thread to the service providing this API. Return with an error141 * For each thread that wants to use this API, either ConnectService or TryConnectService must be142 * called before any other functions in this API. Normally, ConnectService is automatically called151 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).154 //--------------------------------------------------------------------------------------------------160 //--------------------------------------------------------------------------------------------------164 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants167 //--------------------------------------------------------------------------------------------------174 //--------------------------------------------------------------------------------------------------180 * longer a connection to the service, and the functions in this API can't be used. For details, see185 //--------------------------------------------------------------------------------------------------192 //--------------------------------------------------------------------------------------------------196 * If the item name is not valid or the buffer is NULL, this function will kill the calling client.204 //--------------------------------------------------------------------------------------------------215 //--------------------------------------------------------------------------------------------------218 * If the item name is not valid or the buffer is NULL, this function will kill the calling client.228 //--------------------------------------------------------------------------------------------------239 //--------------------------------------------------------------------------------------------------250 //--------------------------------------------------------------------------------------------------le_result_t le_secStore_Delete(const char *LE_NONNULL name)void le_secStore_DisconnectService(void)le_result_t le_secStore_Write(const char *LE_NONNULL name, const uint8_t *bufPtr, size_t bufSize)void(* le_secStore_DisconnectHandler_t)(void *)Definition: le_secStore_interface.h:115void le_secStore_ConnectService(void)LE_FULL_API void le_secStore_SetServerDisconnectHandler(le_secStore_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_secStore_Read(const char *LE_NONNULL name, uint8_t *bufPtr, size_t *bufSizePtr)le_result_t le_secStore_TryConnectService(void)