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 by60 //--------------------------------------------------------------------------------------------------64 //--------------------------------------------------------------------------------------------------67 //--------------------------------------------------------------------------------------------------70 * Connect the current client thread to the service providing this API. Block until the service is74 * called before any other functions in this API. Normally, ConnectService is automatically called79 //--------------------------------------------------------------------------------------------------85 //--------------------------------------------------------------------------------------------------88 * Try to connect the current client thread to the service providing this API. Return with an error92 * called before any other functions in this API. Normally, ConnectService is automatically called101 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).104 //--------------------------------------------------------------------------------------------------110 //--------------------------------------------------------------------------------------------------114 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants117 //--------------------------------------------------------------------------------------------------124 //--------------------------------------------------------------------------------------------------130 * longer a connection to the service, and the functions in this API can't be used. For details, see135 //--------------------------------------------------------------------------------------------------142 //--------------------------------------------------------------------------------------------------146 //--------------------------------------------------------------------------------------------------149 //--------------------------------------------------------------------------------------------------152 //--------------------------------------------------------------------------------------------------155 //--------------------------------------------------------------------------------------------------159 //--------------------------------------------------------------------------------------------------163 //--------------------------------------------------------------------------------------------------171 //--------------------------------------------------------------------------------------------------178 //--------------------------------------------------------------------------------------------------182 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------191 * Go to the next entry in the iterator. This should be called at least once before accessing the192 * entry. After the first time this function is called successfully on an iterator the first entry199 //--------------------------------------------------------------------------------------------------206 //--------------------------------------------------------------------------------------------------215 //--------------------------------------------------------------------------------------------------228 //--------------------------------------------------------------------------------------------------230 * Writes a buffer of data into the specified path in secure storage. If the item already exists,242 //--------------------------------------------------------------------------------------------------253 //--------------------------------------------------------------------------------------------------268 //--------------------------------------------------------------------------------------------------279 //--------------------------------------------------------------------------------------------------289 //--------------------------------------------------------------------------------------------------296 //--------------------------------------------------------------------------------------------------310 //--------------------------------------------------------------------------------------------------317 //--------------------------------------------------------------------------------------------------330 //--------------------------------------------------------------------------------------------------339 //--------------------------------------------------------------------------------------------------348 //--------------------------------------------------------------------------------------------------void(* secStoreAdmin_DisconnectHandler_t)(void *)Definition: secStoreAdmin_interface.h:65struct secStoreAdmin_Iter * secStoreAdmin_IterRef_tDefinition: secStoreAdmin_interface.h:160le_result_t secStoreAdmin_TryConnectService(void)void secStoreAdmin_SetServerDisconnectHandler(secStoreAdmin_DisconnectHandler_t disconnectHandler, void *contextPtr)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_result_t secStoreAdmin_GetTotalSpace(uint64_t *totalSizePtr, uint64_t *freeSizePtr)void secStoreAdmin_ConnectService(void)