secStoreAdmin_interface.h
Go to the documentation of this file.
27 * This API allows an administrator to provision secure storage data and debug stored data issues.51 //--------------------------------------------------------------------------------------------------55 //--------------------------------------------------------------------------------------------------58 //--------------------------------------------------------------------------------------------------61 * Connect the current client thread to the service providing this API. Block until the service is65 * called before any other functions in this API. Normally, ConnectService is automatically called70 //--------------------------------------------------------------------------------------------------76 //--------------------------------------------------------------------------------------------------79 * Try to connect the current client thread to the service providing this API. Return with an error83 * called before any other functions in this API. Normally, ConnectService is automatically called92 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).95 //--------------------------------------------------------------------------------------------------101 //--------------------------------------------------------------------------------------------------105 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants108 //--------------------------------------------------------------------------------------------------115 //--------------------------------------------------------------------------------------------------121 * longer a connection to the service, and the functions in this API can't be used. For details, see126 //--------------------------------------------------------------------------------------------------133 //--------------------------------------------------------------------------------------------------137 //--------------------------------------------------------------------------------------------------140 //--------------------------------------------------------------------------------------------------143 //--------------------------------------------------------------------------------------------------146 //--------------------------------------------------------------------------------------------------150 //--------------------------------------------------------------------------------------------------154 //--------------------------------------------------------------------------------------------------162 //--------------------------------------------------------------------------------------------------170 //--------------------------------------------------------------------------------------------------174 //--------------------------------------------------------------------------------------------------181 //--------------------------------------------------------------------------------------------------183 * Go to the next entry in the iterator. This should be called at least once before accessing the184 * entry. After the first time this function is called successfully on an iterator the first entry191 //--------------------------------------------------------------------------------------------------198 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------220 //--------------------------------------------------------------------------------------------------222 * Writes a buffer of data into the specified path in secure storage. If the item already exists,234 //--------------------------------------------------------------------------------------------------246 //--------------------------------------------------------------------------------------------------261 //--------------------------------------------------------------------------------------------------273 //--------------------------------------------------------------------------------------------------283 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------305 //--------------------------------------------------------------------------------------------------313 //--------------------------------------------------------------------------------------------------326 //--------------------------------------------------------------------------------------------------336 //--------------------------------------------------------------------------------------------------345 //--------------------------------------------------------------------------------------------------struct secStoreAdmin_Iter * secStoreAdmin_IterRef_tDefinition: secStoreAdmin_interface.h:151le_result_t secStoreAdmin_TryConnectService(void)void(* secStoreAdmin_DisconnectHandler_t)(void *)Definition: secStoreAdmin_interface.h:56le_result_t secStoreAdmin_Delete(const char *path)le_result_t secStoreAdmin_GetEntry(secStoreAdmin_IterRef_t iterRef, char *name, size_t nameSize, bool *isDirPtr)secStoreAdmin_IterRef_t secStoreAdmin_CreateIter(const char *path)le_result_t secStoreAdmin_CopyMetaTo(const char *path)le_result_t secStoreAdmin_Read(const char *path, uint8_t *bufPtr, size_t *bufSizePtr)void secStoreAdmin_DeleteIter(secStoreAdmin_IterRef_t iterRef)le_result_t secStoreAdmin_GetSize(const char *path, uint64_t *sizePtr)le_result_t secStoreAdmin_Write(const char *path, const uint8_t *bufPtr, size_t bufSize)void secStoreAdmin_ConnectService(void)le_result_t secStoreAdmin_Next(secStoreAdmin_IterRef_t iterRef)void secStoreAdmin_SetServerDisconnectHandler(secStoreAdmin_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t secStoreAdmin_GetTotalSpace(uint64_t *totalSizePtr, uint64_t *freeSizePtr)void secStoreAdmin_DisconnectService(void)