Move the each of the cursors one step forward in the chain if creds matches.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23950 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-10-19 20:30:12 +00:00
parent 3a343cc41a
commit cf03a62739

View File

@@ -149,3 +149,18 @@ kcm_cursor_delete(krb5_context context,
return ret;
}
krb5_error_code
kcm_cursor_update(krb5_context context,
kcm_ccache ccache,
struct kcm_creds *creds)
{
kcm_cursor *p;
/* assert(is_locked(&ccache->mutex)) */
for (p = ccache->cursors; p != NULL; p = p->next)
if (p->credp == creds)
p->credp = creds->next;
return 0;
}