krb5_error_code KRB5_CALLCONV
krb5_cc_resolve(krb5_context, const char *, krb5_ccache *);
+/**
+ * Create a new handle referring to the same cache as @a in.
+ * The new handle and @a in can be closed independently.
+ */
+krb5_error_code KRB5_CALLCONV
+krb5_cc_dup(krb5_context context, krb5_ccache in, krb5_ccache *out);
+
const char *KRB5_CALLCONV
krb5_cc_default_name(krb5_context);
return ops->resolve(context, cache, resid);
}
+krb5_error_code KRB5_CALLCONV
+krb5_cc_dup(krb5_context context, krb5_ccache in, krb5_ccache *out)
+{
+ return in->ops->resolve(context, out, in->ops->get_name(context, in));
+}
+
/*
* cc_getops
*