Lines Matching refs:context
51 DB_close(krb5_context context, HDB *db)
63 DB_destroy(krb5_context context, HDB *db)
67 ret = hdb_clear_master_key (context, db);
74 DB_lock(krb5_context context, HDB *db, int operation)
84 DB_unlock(krb5_context context, HDB *db)
95 DB_seq(krb5_context context, HDB *db,
105 if ((*db->hdb_lock)(context, db, HDB_RLOCK))
108 (*db->hdb_unlock)(context, db); /* XXX check value */
119 if (hdb_value2entry(context, &data, &entry->entry))
120 return DB_seq(context, db, flags, entry, DB_NEXT);
122 code = hdb_unseal_keys (context, db, &entry->entry);
124 hdb_free_entry (context, entry);
129 hdb_free_entry (context, entry);
130 krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
133 hdb_key2principal(context, &key_data, entry->entry.principal);
141 DB_firstkey(krb5_context context, HDB *db, unsigned flags, hdb_entry_ex *entry)
143 return DB_seq(context, db, flags, entry, DB_FIRST);
148 DB_nextkey(krb5_context context, HDB *db, unsigned flags, hdb_entry_ex *entry)
150 return DB_seq(context, db, flags, entry, DB_NEXT);
154 DB_rename(krb5_context context, HDB *db, const char *new_name)
173 DB__get(krb5_context context, HDB *db, krb5_data key, krb5_data *reply)
184 if ((code = (*db->hdb_lock)(context, db, HDB_RLOCK)))
187 (*db->hdb_unlock)(context, db);
198 DB__put(krb5_context context, HDB *db, int replace,
213 if ((code = (*db->hdb_lock)(context, db, HDB_WLOCK)))
216 (*db->hdb_unlock)(context, db);
225 DB__del(krb5_context context, HDB *db, krb5_data key)
234 code = (*db->hdb_lock)(context, db, HDB_WLOCK);
238 (*db->hdb_unlock)(context, db);
247 DB_open(krb5_context context, HDB *db, int flags, mode_t mode)
269 krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
274 krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
298 krb5_set_error_message(context, ret, "opening %s: %s",
306 krb5_set_error_message(context, ret, "d->cursor: %s", strerror(ret));
312 ret = hdb_check_db_format(context, db);
314 ret = hdb_init_db(context, db);
318 DB_close(context, db);
319 krb5_set_error_message(context, ret, "hdb_open: failed %s database %s",
329 hdb_db_create(krb5_context context, HDB **db,
334 krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
343 krb5_set_error_message(context, ENOMEM, "malloc: out of memory");