add krb5_cc_get_type that returns type of a cache

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5974 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1999-04-18 13:46:40 +00:00
parent 3055662121
commit 36347ee17b

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan * Copyright (c) 1997-1999 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -125,14 +125,21 @@ krb5_cc_gen_new(krb5_context context,
return p->ops->gen_new(context, id); return p->ops->gen_new(context, id);
} }
char* const char*
krb5_cc_get_name(krb5_context context, krb5_cc_get_name(krb5_context context,
krb5_ccache id) krb5_ccache id)
{ {
return id->ops->get_name(context, id); return id->ops->get_name(context, id);
} }
char* const char*
krb5_cc_get_type(krb5_context context,
krb5_ccache id)
{
return id->ops->prefix;
}
const char*
krb5_cc_default_name(krb5_context context) krb5_cc_default_name(krb5_context context)
{ {
static char name[1024]; static char name[1024];