(krb5_cc_set_default_name): allow setting the default cc name, this is

not very useful for general purpose glue since its not possible to
glue in user information (like uid), but for CCAPI it works just fine


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14091 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-08-06 15:58:27 +00:00
parent fe9c311247
commit eb4103488f

View File

@@ -200,9 +200,13 @@ krb5_cc_set_default_name(krb5_context context, const char *name)
char *p;
if (name == NULL) {
char *e = NULL;
const char *e = NULL;
if(!issuid())
e = getenv("KRB5CCNAME");
if (e == NULL)
e = krb5_config_get_string(context, NULL, "libdefault",
"default_cc_name", NULL);
if (e)
p = strdup(e);
else