Make krb5_kuserok() pluggable and add features (including MIT config compat)

This commit is contained in:
Nicolas Williams
2011-12-03 21:14:14 -06:00
parent cfe7f6312a
commit 6aec02f979
10 changed files with 519 additions and 144 deletions

View File

@@ -189,7 +189,7 @@ allocate_ccache (krb5_context context,
#ifdef KRB5_USE_PATH_TOKENS
char * exp_residual = NULL;
ret = _krb5_expand_path_tokens(context, residual, &exp_residual);
ret = _krb5_expand_path_tokens(context, residual, NULL, &exp_residual);
if (ret)
return ret;
@@ -410,7 +410,7 @@ krb5_cc_get_ops(krb5_context context, krb5_ccache id)
krb5_error_code
_krb5_expand_default_cc_name(krb5_context context, const char *str, char **res)
{
return _krb5_expand_path_tokens(context, str, res);
return _krb5_expand_path_tokens(context, str, NULL, res);
}
/*
@@ -559,7 +559,7 @@ krb5_cc_set_default_name(krb5_context context, const char *name)
return ENOMEM;
}
ret = _krb5_expand_path_tokens(context, p, &exp_p);
ret = _krb5_expand_path_tokens(context, p, NULL, &exp_p);
free(p);
if (ret)
return ret;