secStoreAdmin_interface.h
Go to the documentation of this file.
20 * This API provides administrative control for secure storage. It gives the rights to read, write21 * and delete files recorded in the SFS Legato tree. This API should be used with extreme caution.25 * Secure storage allows privileged users (e.g: administrators) to provision secure storage data by30 * few functions remains to get non sensitive information about secure storage. In order to enable36 * Alternatively, you can enable the Secure Storage Admin API from within the kconfig menu system.76 //--------------------------------------------------------------------------------------------------80 //--------------------------------------------------------------------------------------------------83 //--------------------------------------------------------------------------------------------------86 * Connect the current client thread to the service providing this API. Block until the service is90 * called before any other functions in this API. Normally, ConnectService is automatically called95 //--------------------------------------------------------------------------------------------------101 //--------------------------------------------------------------------------------------------------104 * Try to connect the current client thread to the service providing this API. Return with an error107 * For each thread that wants to use this API, either ConnectService or TryConnectService must be108 * called before any other functions in this API. Normally, ConnectService is automatically called117 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).120 //--------------------------------------------------------------------------------------------------126 //--------------------------------------------------------------------------------------------------130 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants133 //--------------------------------------------------------------------------------------------------140 //--------------------------------------------------------------------------------------------------146 * longer a connection to the service, and the functions in this API can't be used. For details, see151 //--------------------------------------------------------------------------------------------------158 //--------------------------------------------------------------------------------------------------162 //--------------------------------------------------------------------------------------------------165 //--------------------------------------------------------------------------------------------------173 //--------------------------------------------------------------------------------------------------180 //--------------------------------------------------------------------------------------------------184 //--------------------------------------------------------------------------------------------------191 //--------------------------------------------------------------------------------------------------193 * Go to the next entry in the iterator. This should be called at least once before accessing the194 * entry. After the first time this function is called successfully on an iterator the first entry201 //--------------------------------------------------------------------------------------------------208 //--------------------------------------------------------------------------------------------------217 //--------------------------------------------------------------------------------------------------230 //--------------------------------------------------------------------------------------------------232 * Writes a buffer of data into the specified path in secure storage. If the item already exists,244 //--------------------------------------------------------------------------------------------------255 //--------------------------------------------------------------------------------------------------270 //--------------------------------------------------------------------------------------------------281 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------298 //--------------------------------------------------------------------------------------------------312 //--------------------------------------------------------------------------------------------------319 //--------------------------------------------------------------------------------------------------332 //--------------------------------------------------------------------------------------------------341 //--------------------------------------------------------------------------------------------------350 //--------------------------------------------------------------------------------------------------void(* secStoreAdmin_DisconnectHandler_t)(void *)Definition: secStoreAdmin_interface.h:81le_result_t secStoreAdmin_Write(const char *LE_NONNULL path, const uint8_t *bufPtr, size_t bufSize)le_result_t secStoreAdmin_GetSize(const char *LE_NONNULL path, uint64_t *sizePtr)le_result_t secStoreAdmin_TryConnectService(void)le_result_t secStoreAdmin_Next(secStoreAdmin_IterRef_t iterRef)le_result_t secStoreAdmin_Delete(const char *LE_NONNULL path)LE_FULL_API void secStoreAdmin_SetServerDisconnectHandler(secStoreAdmin_DisconnectHandler_t disconnectHandler, void *contextPtr)void secStoreAdmin_ConnectService(void)struct secStoreAdmin_Iter * secStoreAdmin_IterRef_tDefinition: secStoreAdmin_common.h:49le_result_t secStoreAdmin_GetEntry(secStoreAdmin_IterRef_t iterRef, char *name, size_t nameSize, bool *isDirPtr)secStoreAdmin_IterRef_t secStoreAdmin_CreateIter(const char *LE_NONNULL path)le_result_t secStoreAdmin_Read(const char *LE_NONNULL path, uint8_t *bufPtr, size_t *bufSizePtr)le_result_t secStoreAdmin_GetTotalSpace(uint64_t *totalSizePtr, uint64_t *freeSizePtr)le_result_t secStoreAdmin_CopyMetaTo(const char *LE_NONNULL path)void secStoreAdmin_DisconnectService(void)void secStoreAdmin_DeleteIter(secStoreAdmin_IterRef_t iterRef)