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 by61 //--------------------------------------------------------------------------------------------------65 //--------------------------------------------------------------------------------------------------68 //--------------------------------------------------------------------------------------------------71 * Connect the current client thread to the service providing this API. Block until the service is75 * called before any other functions in this API. Normally, ConnectService is automatically called80 //--------------------------------------------------------------------------------------------------86 //--------------------------------------------------------------------------------------------------89 * Try to connect the current client thread to the service providing this API. Return with an error93 * called before any other functions in this API. Normally, ConnectService is automatically called102 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).105 //--------------------------------------------------------------------------------------------------111 //--------------------------------------------------------------------------------------------------115 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants118 //--------------------------------------------------------------------------------------------------125 //--------------------------------------------------------------------------------------------------131 * longer a connection to the service, and the functions in this API can't be used. For details, see136 //--------------------------------------------------------------------------------------------------143 //--------------------------------------------------------------------------------------------------147 //--------------------------------------------------------------------------------------------------150 //--------------------------------------------------------------------------------------------------158 //--------------------------------------------------------------------------------------------------165 //--------------------------------------------------------------------------------------------------169 //--------------------------------------------------------------------------------------------------176 //--------------------------------------------------------------------------------------------------178 * Go to the next entry in the iterator. This should be called at least once before accessing the179 * entry. After the first time this function is called successfully on an iterator the first entry186 //--------------------------------------------------------------------------------------------------193 //--------------------------------------------------------------------------------------------------202 //--------------------------------------------------------------------------------------------------215 //--------------------------------------------------------------------------------------------------217 * Writes a buffer of data into the specified path in secure storage. If the item already exists,229 //--------------------------------------------------------------------------------------------------240 //--------------------------------------------------------------------------------------------------255 //--------------------------------------------------------------------------------------------------266 //--------------------------------------------------------------------------------------------------276 //--------------------------------------------------------------------------------------------------283 //--------------------------------------------------------------------------------------------------297 //--------------------------------------------------------------------------------------------------304 //--------------------------------------------------------------------------------------------------317 //--------------------------------------------------------------------------------------------------326 //--------------------------------------------------------------------------------------------------335 //--------------------------------------------------------------------------------------------------void(* secStoreAdmin_DisconnectHandler_t)(void *)Definition: secStoreAdmin_interface.h:66le_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)