Lines Matching refs:entry
105 unsigned flags, krb5_kvno kvno, hdb_entry_ex *entry)
133 ret = hdb_value2entry(context, &value, &entry->entry);
153 ret = hdb_value2entry(context, &value, &entry->entry);
162 ret = hdb_unseal_keys(context, db, &entry->entry);
164 hdb_free_entry(context, entry);
168 ret = hdb_unseal_keys_kvno(context, db, 0, flags, &entry->entry);
170 hdb_free_entry(context, entry);
174 if ((flags & HDB_F_KVNO_SPECIFIED) == 0 || kvno == entry->entry.kvno) {
176 ret = hdb_unseal_keys(context, db, &entry->entry);
178 hdb_free_entry(context, entry);
188 ret = hdb_unseal_keys_kvno(context, db, kvno, flags, &entry->entry);
190 hdb_free_entry(context, entry);
243 unsigned flags, hdb_entry_ex *entry)
250 code = hdb_entry_get_aliases(&entry->entry, &aliases);
256 entryalias.principal = entry->entry.principal;
275 hdb_check_aliases(krb5_context context, HDB *db, hdb_entry_ex *entry)
283 code = hdb_entry_get_aliases(&entry->entry, &aliases);
310 entry->entry.principal);
319 _hdb_store(krb5_context context, HDB *db, unsigned flags, hdb_entry_ex *entry)
324 if (entry->entry.flags.do_not_store)
327 code = hdb_check_aliases(context, db, entry);
335 code = hdb_principal2key(context, entry->entry.principal, &key);
347 if(entry->entry.generation == NULL) {
349 entry->entry.generation = malloc(sizeof(*entry->entry.generation));
350 if(entry->entry.generation == NULL) {
355 entry->entry.generation->time = t.tv_sec;
356 entry->entry.generation->usec = t.tv_usec;
357 entry->entry.generation->gen = 0;
359 entry->entry.generation->gen++;
361 code = hdb_seal_keys(context, db, &entry->entry);
365 hdb_principal2key(context, entry->entry.principal, &key);
373 hdb_entry2value(context, &entry->entry, &value);
380 code = hdb_add_aliases(context, db, flags, entry);