Lines Matching full:db
44 HDB *db; member
59 const char *db, *mkey; in hdb_resolve() local
66 db = name; in hdb_resolve()
81 d->dbname = malloc(mkey - db + 1); in hdb_resolve()
87 memmove(d->dbname, db, mkey - db); in hdb_resolve()
88 d->dbname[mkey - db] = '\0'; in hdb_resolve()
186 HDB *db; in hdb_get_entry() local
199 ret = hdb_create (context, &db, dbname); in hdb_get_entry()
202 ret = hdb_set_master_keyfile (context, db, mkey); in hdb_get_entry()
204 (*db->hdb_destroy)(context, db); in hdb_get_entry()
208 ret = (*db->hdb_open)(context, db, O_RDONLY, 0); in hdb_get_entry()
210 (*db->hdb_destroy)(context, db); in hdb_get_entry()
214 ret = (*db->hdb_fetch_kvno)(context, db, principal, in hdb_get_entry()
247 (*db->hdb_close)(context, db); in hdb_get_entry()
248 (*db->hdb_destroy)(context, db); in hdb_get_entry()
270 HDB *db; in hdb_start_seq_get() local
281 ret = hdb_create (context, &db, dbname); in hdb_start_seq_get()
284 ret = hdb_set_master_keyfile (context, db, mkey); in hdb_start_seq_get()
286 (*db->hdb_destroy)(context, db); in hdb_start_seq_get()
290 ret = (*db->hdb_open)(context, db, O_RDONLY, 0); in hdb_start_seq_get()
292 (*db->hdb_destroy)(context, db); in hdb_start_seq_get()
298 (*db->hdb_close)(context, db); in hdb_start_seq_get()
299 (*db->hdb_destroy)(context, db); in hdb_start_seq_get()
304 c->db = db; in hdb_start_seq_get()
326 ret = (c->db->hdb_firstkey)(context, c->db, in hdb_next_entry()
342 ret = (c->db->hdb_nextkey)(context, c->db, in hdb_next_entry()
405 (c->db->hdb_close)(context, c->db); in hdb_end_seq_get()
406 (c->db->hdb_destroy)(context, c->db); in hdb_end_seq_get()