• Home
  • Raw
  • Download

Lines Matching refs:KeystoreDB

736 pub struct KeystoreDB {  struct
829 impl KeystoreDB { impl
3243 fn new_test_db() -> Result<KeystoreDB> { in new_test_db()
3244 let conn = KeystoreDB::make_connection("file::memory:")?; in new_test_db()
3246 let mut db = KeystoreDB { conn, gc: None, perboot: Arc::new(perboot::PerbootDB::new()) }; in new_test_db()
3248 KeystoreDB::init_tables(tx).context("Failed to initialize tables.").no_gc() in new_test_db()
3253 fn new_test_db_with_gc<F>(path: &Path, cb: F) -> Result<KeystoreDB> in new_test_db_with_gc()
3259 let gc_db = KeystoreDB::new(path, None).expect("Failed to open test gc db_connection."); in new_test_db_with_gc()
3262 KeystoreDB::new(path, Some(Arc::new(gc))) in new_test_db_with_gc()
3266 db: &mut KeystoreDB, in rebind_alias() argument
3273 KeystoreDB::rebind_alias(tx, newid, alias, &domain, &namespace, KeyType::Client).no_gc() in rebind_alias()
3388 fn get_auth_tokens(db: &KeystoreDB) -> Vec<AuthTokenEntry> { in get_auth_tokens()
3395 let mut db = KeystoreDB::new(temp_dir.path(), None)?; in test_persistence_for_files()
3401 let db = KeystoreDB::new(temp_dir.path(), None)?; in test_persistence_for_files()
4487 let mut db = KeystoreDB::new(temp_dir.path(), None).unwrap(); in test_upgrade_0_to_1()
4557 KeystoreDB::from_0_to_1(tx).no_gc() in test_upgrade_0_to_1()
4633 let mut db = KeystoreDB::new(temp_dir.path(), None)?; in test_insert_and_load_full_keyentry_domain_app_concurrently()
4664 let mut db = KeystoreDB::new(temp_dir.path(), None).unwrap(); in test_insert_and_load_full_keyentry_domain_app_concurrently()
4707 let mut db1 = KeystoreDB::new(temp_dir.path(), None).expect("Failed to open database1."); in test_database_busy_error_code()
4708 let mut db2 = KeystoreDB::new(temp_dir.path(), None).expect("Failed to open database2."); in test_database_busy_error_code()
4848 let mut db = KeystoreDB::new(temp_dir.path(), None)?; in list()
4962 fn get_keyentry(db: &KeystoreDB) -> Result<Vec<KeyEntryRow>> { in get_keyentry()
4990 db: &mut KeystoreDB, in load_attestation_key_pool() argument
5242 db: &mut KeystoreDB, in make_test_key_entry() argument
5301 db: &mut KeystoreDB, in make_bootlevel_key_entry() argument
5360 fn debug_dump_keyentry_table(db: &mut KeystoreDB) -> Result<()> { in debug_dump_keyentry_table()
5390 fn debug_dump_grant_table(db: &mut KeystoreDB) -> Result<()> { in debug_dump_grant_table()
5538 fn get_storage_stats_map(db: &mut KeystoreDB) -> BTreeMap<i32, StorageStats> { in get_storage_stats_map()
5546 db: &mut KeystoreDB, in assert_storage_increased() argument