• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/crypto/heimdal/lib/hdb/

Lines Matching refs:context

56 hdb_resolve(krb5_context context, const char *name, krb5_keytab id)
63 krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
75 krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
84 krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
94 krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
103 hdb_close(krb5_context context, krb5_keytab id)
114 hdb_get_name(krb5_context context,
134 find_db (krb5_context context,
139 krb5_const_realm realm = krb5_principal_get_realm(context, principal);
145 ret = hdb_get_dbinfo(context, &head);
150 const char *p = hdb_dbinfo_get_realm(context, dbinfo);
152 p = hdb_dbinfo_get_dbname(context, dbinfo);
155 p = hdb_dbinfo_get_mkey_file(context, dbinfo);
161 hdb_free_dbinfo(context, &head);
173 hdb_get_entry(krb5_context context,
192 ret = find_db(context, &fdbname, &fmkey, principal);
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,
226 hdb_free_entry(context, &ent);
236 krb5_copy_principal(context, principal, &entry->principal);
238 krb5_copy_keyblock_contents(context,
245 hdb_free_entry(context, &ent);
247 (*db->hdb_close)(context, db);
248 (*db->hdb_destroy)(context, db);
261 hdb_start_seq_get(krb5_context context,
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);
300 krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
314 hdb_next_entry(krb5_context context,
326 ret = (c->db->hdb_firstkey)(context, c->db,
336 hdb_free_entry(context, &c->hdb_entry);
342 ret = (c->db->hdb_nextkey)(context, c->db,
353 hdb_free_entry(context, &c->hdb_entry);
363 ret = krb5_copy_principal(context,
370 ret = krb5_copy_keyblock_contents(context,
374 krb5_free_principal(context, entry->principal);
386 hdb_free_entry(context, &c->hdb_entry);
396 hdb_end_seq_get(krb5_context context,
403 hdb_free_entry(context, &c->hdb_entry);
405 (c->db->hdb_close)(context, c->db);
406 (c->db->hdb_destroy)(context, c->db);