From cf03a62739bb008f00af4b9e16b43060d6715c38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 19 Oct 2008 20:30:12 +0000 Subject: [PATCH] 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 --- kcm/cursor.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/kcm/cursor.c b/kcm/cursor.c index b943eb9ef..9b8c304cf 100644 --- a/kcm/cursor.c +++ b/kcm/cursor.c @@ -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; +}