(v5_prop): adapt to new hdb_seal_keys and hdb_unseal_keys
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9596 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
18
kdc/hprop.c
18
kdc/hprop.c
@@ -106,10 +106,20 @@ v5_prop(krb5_context context, HDB *db, hdb_entry *entry, void *appdata)
|
||||
struct prop_data *pd = appdata;
|
||||
krb5_data data;
|
||||
|
||||
if(encrypt_flag)
|
||||
hdb_seal_keys_mkey(context, entry, mkey5);
|
||||
if(decrypt_flag)
|
||||
hdb_unseal_keys_mkey(context, entry, mkey5);
|
||||
if(encrypt_flag) {
|
||||
ret = hdb_seal_keys_mkey(context, entry, mkey5);
|
||||
if (ret) {
|
||||
krb5_warn(context, ret, "hdb_seal_keys_mkey");
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
if(decrypt_flag) {
|
||||
ret = hdb_unseal_keys_mkey(context, entry, mkey5);
|
||||
if (ret) {
|
||||
krb5_warn(context, ret, "hdb_unseal_keys_mkey");
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
ret = hdb_entry2value(context, entry, &data);
|
||||
if(ret) {
|
||||
|
Reference in New Issue
Block a user