use krb5_cc_new_unique, use constants for cache types

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25051 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-04-03 04:05:59 +00:00
parent 5c0fc04d81
commit 06e0f0d12f

View File

@@ -138,7 +138,8 @@ gsskrb5_accept_delegated_token
kret = krb5_cc_default (context, &ccache); kret = krb5_cc_default (context, &ccache);
} else { } else {
*delegated_cred_handle = NULL; *delegated_cred_handle = NULL;
kret = krb5_cc_gen_new (context, &krb5_mcc_ops, &ccache); kret = krb5_cc_new_unique (context, krb5_cc_type_memory,
NULL, &ccache);
} }
if (kret) { if (kret) {
ctx->flags &= ~GSS_C_DELEG_FLAG; ctx->flags &= ~GSS_C_DELEG_FLAG;