summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/ccache/ccbase.c
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-09-05 16:26:37 +0000
committerGreg Hudson <ghudson@mit.edu>2011-09-05 16:26:37 +0000
commitf784a37909b68b7dfc1eed8c3a0e014639c90e45 (patch)
treefab81e4348cffe5ff453522f76ee49d6f5528cb3 /src/lib/krb5/ccache/ccbase.c
parent319c01a8f523843169b9e5342ac2d085ad67f8a2 (diff)
downloadkrb5-f784a37909b68b7dfc1eed8c3a0e014639c90e45.tar.gz
krb5-f784a37909b68b7dfc1eed8c3a0e014639c90e45.tar.xz
krb5-f784a37909b68b7dfc1eed8c3a0e014639c90e45.zip
Add new cache collection APIs
* krb5_cc_get_full_name retrieves the full type:name of a cache. * krb5_cc_switch makes a cache the primary cache. * krb5_cc_cache_match searches the collection for a client principal. * krb5_free_string releases a string (for the krb5_cc_get_full_name result). All of these are from Heimdal except for krb5_free_string (Heimdal uses krb5_xfree). ticket: 6954 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25155 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/ccache/ccbase.c')
-rw-r--r--src/lib/krb5/ccache/ccbase.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/krb5/ccache/ccbase.c b/src/lib/krb5/ccache/ccbase.c
index b330784c90..a1fd3aa837 100644
--- a/src/lib/krb5/ccache/ccbase.c
+++ b/src/lib/krb5/ccache/ccbase.c
@@ -418,6 +418,16 @@ krb5_cc_move(krb5_context context, krb5_ccache src, krb5_ccache dst)
return ret;
}
+krb5_boolean KRB5_CALLCONV
+krb5_cc_support_switch(krb5_context context, const char *type)
+{
+ const krb5_cc_ops *ops;
+ krb5_error_code err;
+
+ err = krb5int_cc_getops(context, type, &ops);
+ return (err ? FALSE : (ops->switch_to != NULL));
+}
+
krb5_error_code
k5_cc_mutex_init(k5_cc_mutex *m)
{