pass context to seal/unseal_keys
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8551 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -111,7 +111,7 @@ _hdb_fetch(krb5_context context, HDB *db, unsigned flags, hdb_entry *entry)
|
||||
return code;
|
||||
hdb_value2entry(context, &value, entry);
|
||||
if (db->master_key_set && (flags & HDB_F_DECRYPT))
|
||||
hdb_unseal_keys (db, entry);
|
||||
hdb_unseal_keys (context, db, entry);
|
||||
krb5_data_free(&value);
|
||||
return 0;
|
||||
}
|
||||
@@ -123,7 +123,7 @@ _hdb_store(krb5_context context, HDB *db, unsigned flags, hdb_entry *entry)
|
||||
int code;
|
||||
|
||||
hdb_principal2key(context, entry->principal, &key);
|
||||
hdb_seal_keys(db, entry);
|
||||
hdb_seal_keys(context, db, entry);
|
||||
hdb_entry2value(context, entry, &value);
|
||||
code = db->_put(context, db, flags & HDB_F_REPLACE, key, value);
|
||||
krb5_data_free(&value);
|
||||
|
Reference in New Issue
Block a user