krb5: Fix kcm

This commit is contained in:
Nicolas Williams
2020-05-28 00:08:17 -05:00
parent fc7b7af95a
commit 1995637b15

View File

@@ -45,11 +45,11 @@ RCSID("$Id$");
#define CACHENAME(X) (KCMCACHE(X)->name) #define CACHENAME(X) (KCMCACHE(X)->name)
static krb5_error_code static krb5_error_code
kcmss_get_name(krb5_context context, kcmss_get_name_2(krb5_context context,
krb5_ccache id, krb5_ccache id,
const char **name, const char **name,
const char **col, const char **col,
const char **sub) const char **sub)
{ {
if (name) if (name)
*name = CACHENAME(id); *name = CACHENAME(id);
@@ -61,10 +61,10 @@ kcmss_get_name(krb5_context context,
} }
static krb5_error_code static krb5_error_code
kcmss_resolve(krb5_context context, kcmss_resolve_2(krb5_context context,
krb5_ccache *id, krb5_ccache *id,
const char *res, const char *res,
const char *sub) const char *sub)
{ {
return KRB5_FCC_INTERNAL; return KRB5_FCC_INTERNAL;
} }
@@ -259,10 +259,10 @@ kcmss_get_version(krb5_context context,
} }
static const krb5_cc_ops krb5_kcmss_ops = { static const krb5_cc_ops krb5_kcmss_ops = {
KRB5_CC_OPS_VERSION, KRB5_CC_OPS_VERSION_5,
"KCM", "KCM",
kcmss_get_name, NULL,
kcmss_resolve, NULL,
kcmss_gen_new, kcmss_gen_new,
kcmss_initialize, kcmss_initialize,
kcmss_destroy, kcmss_destroy,
@@ -285,6 +285,8 @@ static const krb5_cc_ops krb5_kcmss_ops = {
NULL, NULL,
NULL, NULL,
NULL, NULL,
kcmss_get_name_2,
kcmss_resolve_2,
}; };
krb5_error_code krb5_error_code