Lines Matching refs:tdb
31 static TDB_CONTEXT *tdb;
44 if (tdb) {
45 tdb_change_int32_atomic(tdb, "INFO/random_seed", new_seed, 1);
55 if (tdb)
59 pstrcat(fname,"/secrets.tdb");
61 tdb = tdb_open_log(fname, 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
63 if (!tdb) {
89 if (!tdb)
93 dbuf = tdb_fetch(tdb, kbuf);
105 if (!tdb)
111 return tdb_store(tdb, kbuf, dbuf, TDB_REPLACE) == 0;
121 if (!tdb)
125 return tdb_delete(tdb, kbuf) == 0;
249 if (!tdb)
253 return (tdb_lock_bystring(tdb, trust_keystr(domain),0) == 0);
255 tdb_unlock_bystring(tdb, trust_keystr(domain));
554 * Get trusted domains info from secrets.tdb.
605 keys = tdb_search_keys(tdb, pattern);
643 /* free returned tdb record */
689 Lock the secrets tdb based on a string - this is used as a primitive form of mutex
700 ret = tdb_lock_bystring(tdb, name, timeout);
713 tdb_unlock_bystring(tdb, name);
747 Store a complete AFS keyfile into secrets.tdb.
765 Fetch the current (highest) AFS key from secrets.tdb