Pick up [libdefaults]default_cc_type

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23131 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-04-28 18:01:46 +00:00
parent e1a1038194
commit 034744160a

View File

@@ -456,6 +456,17 @@ krb5_cc_set_default_name(krb5_context context, const char *name)
}
if (e == NULL) {
const krb5_cc_ops *ops = KRB5_DEFAULT_CCTYPE;
e = krb5_config_get_string(context, NULL, "libdefaults",
"default_cc_type", NULL);
if (e) {
ops = krb5_cc_get_prefix_ops(context, e);
if (ops == NULL) {
krb5_set_error_string(context,
"Credential cache type %s "
"is unknown", e);
return KRB5_CC_UNKNOWN_TYPE;
}
}
ret = (*ops->get_default_name)(context, &p);
if (ret)
return ret;