(fcc_remove_cred): simplistic implementation, XXX add locking

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13730 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-04-17 17:09:31 +00:00
parent 432db5d5c9
commit b209d68f8c

View File

@@ -618,7 +618,31 @@ fcc_remove_cred(krb5_context context,
krb5_flags which,
krb5_creds *cred)
{
return 0; /* XXX */
krb5_error_code ret;
krb5_ccache copy;
ret = krb5_cc_gen_new(context, &krb5_mcc_ops, &copy);
if (ret)
return ret;
ret = krb5_cc_copy_cache(context, id, copy);
if (ret) {
krb5_cc_destroy(context, copy);
return ret;
}
ret = krb5_cc_remove_cred(context, copy, which, cred);
if (ret) {
krb5_cc_destroy(context, copy);
return ret;
}
fcc_destroy(context, id);
ret = krb5_cc_copy_cache(context, copy, id);
krb5_cc_destroy(context, copy);
return ret;
}
static krb5_error_code