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.72 //--------------------------------------------------------------------------------------------------76 //--------------------------------------------------------------------------------------------------79 //--------------------------------------------------------------------------------------------------82 * Connect the current client thread to the service providing this API. Block until the service is86 * called before any other functions in this API. Normally, ConnectService is automatically called91 //--------------------------------------------------------------------------------------------------97 //--------------------------------------------------------------------------------------------------100 * Try to connect the current client thread to the service providing this API. Return with an error103 * For each thread that wants to use this API, either ConnectService or TryConnectService must be104 * called before any other functions in this API. Normally, ConnectService is automatically called113 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).116 //--------------------------------------------------------------------------------------------------122 //--------------------------------------------------------------------------------------------------126 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants129 //--------------------------------------------------------------------------------------------------136 //--------------------------------------------------------------------------------------------------142 * longer a connection to the service, and the functions in this API can't be used. For details, see147 //--------------------------------------------------------------------------------------------------154 //--------------------------------------------------------------------------------------------------158 //--------------------------------------------------------------------------------------------------161 //--------------------------------------------------------------------------------------------------169 //--------------------------------------------------------------------------------------------------176 //--------------------------------------------------------------------------------------------------180 //--------------------------------------------------------------------------------------------------187 //--------------------------------------------------------------------------------------------------189 * Go to the next entry in the iterator. This should be called at least once before accessing the190 * entry. After the first time this function is called successfully on an iterator the first entry197 //--------------------------------------------------------------------------------------------------204 //--------------------------------------------------------------------------------------------------213 //--------------------------------------------------------------------------------------------------226 //--------------------------------------------------------------------------------------------------228 * Writes a buffer of data into the specified path in secure storage. If the item already exists,240 //--------------------------------------------------------------------------------------------------251 //--------------------------------------------------------------------------------------------------266 //--------------------------------------------------------------------------------------------------277 //--------------------------------------------------------------------------------------------------287 //--------------------------------------------------------------------------------------------------294 //--------------------------------------------------------------------------------------------------308 //--------------------------------------------------------------------------------------------------315 //--------------------------------------------------------------------------------------------------328 //--------------------------------------------------------------------------------------------------337 //--------------------------------------------------------------------------------------------------346 //--------------------------------------------------------------------------------------------------void(* secStoreAdmin_DisconnectHandler_t)(void *)Definition: secStoreAdmin_interface.h:77le_result_t secStoreAdmin_TryConnectService(void)le_result_t secStoreAdmin_GetEntry(secStoreAdmin_IterRef_t iterRef, char *name, size_t nameSize, bool *isDirPtr)le_result_t secStoreAdmin_Write(const char *LE_NONNULL path, const uint8_t *bufPtr, size_t bufSize)le_result_t secStoreAdmin_Read(const char *LE_NONNULL path, uint8_t *bufPtr, size_t *bufSizePtr)le_result_t secStoreAdmin_GetSize(const char *LE_NONNULL path, uint64_t *sizePtr)le_result_t secStoreAdmin_CopyMetaTo(const char *LE_NONNULL path)secStoreAdmin_IterRef_t secStoreAdmin_CreateIter(const char *LE_NONNULL path)void secStoreAdmin_DeleteIter(secStoreAdmin_IterRef_t iterRef)void secStoreAdmin_DisconnectService(void)le_result_t secStoreAdmin_Delete(const char *LE_NONNULL path)le_result_t secStoreAdmin_Next(secStoreAdmin_IterRef_t iterRef)LE_FULL_API void secStoreAdmin_SetServerDisconnectHandler(secStoreAdmin_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t secStoreAdmin_GetTotalSpace(uint64_t *totalSizePtr, uint64_t *freeSizePtr)void secStoreAdmin_ConnectService(void)