From e6daaae55c78d7f1898a0ceedfaac54d79d794be Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Tue, 30 Jan 2001 01:25:19 +0000 Subject: [PATCH] (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 --- kdc/hprop.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/kdc/hprop.c b/kdc/hprop.c index 218afdc16..4197e5a7b 100644 --- a/kdc/hprop.c +++ b/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) {