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