(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:
@@ -618,7 +618,31 @@ fcc_remove_cred(krb5_context context,
|
|||||||
krb5_flags which,
|
krb5_flags which,
|
||||||
krb5_creds *cred)
|
krb5_creds *cred)
|
||||||
{
|
{
|
||||||
return 0; /* XXX */
|
krb5_error_code ret;
|
||||||
|
krb5_ccache copy;
|
||||||
|
|
||||||
|
ret = krb5_cc_gen_new(context, &krb5_mcc_ops, ©);
|
||||||
|
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
|
static krb5_error_code
|
||||||
|
Reference in New Issue
Block a user