Add krb5_cc_get_flags() and krb5_cc_copy_creds().

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23881 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-10-08 16:15:45 +00:00
parent e2a5f75799
commit 0c56bdc1c9

View File

@@ -790,6 +790,21 @@ krb5_cc_set_flags(krb5_context context,
return (*id->ops->set_flags)(context, id, flags);
}
/**
* Get the flags of `id', store them in `flags'.
*
* @ingroup krb5_ccache
*/
krb5_error_code KRB5_LIB_FUNCTION
krb5_cc_get_flags(krb5_context context,
krb5_ccache id,
krb5_flags *flags)
{
*flags = 0;
return 0;
}
/**
* Copy the contents of `from' to `to'.
*
@@ -838,13 +853,13 @@ krb5_cc_copy_cache_match(krb5_context context,
return ret;
}
/**
* Just like krb5_cc_copy_cache_match, but copy everything.
*
* @ingroup krb5_ccache
* @ingroup @krb5_ccache
*/
krb5_error_code KRB5_LIB_FUNCTION
krb5_cc_copy_cache(krb5_context context,
const krb5_ccache from,
@@ -853,6 +868,20 @@ krb5_cc_copy_cache(krb5_context context,
return krb5_cc_copy_cache_match(context, from, to, 0, NULL, NULL);
}
/**
* MIT compat glue
*
* @ingroup krb5_ccache
*/
krb5_error_code KRB5_LIB_FUNCTION
krb5_cc_copy_creds(krb5_context context,
const krb5_ccache from,
krb5_ccache to)
{
return krb5_cc_copy_cache(context, from, to);
}
/**
* Return the version of `id'.
*
@@ -1269,4 +1298,3 @@ out:
krb5_free_cred_contents (context, &mcred);
return ret;
}