Signed-off-by: Andreas Schneider <asn@samba.org>
bool cli_credentials_ccache_reinit(struct cli_credentials *cred,
struct loadparm_context *lp_ctx);
bool cli_credentials_ccache_destroy(struct cli_credentials *cred);
+struct ccache_container *cli_credentials_ccache_get(struct cli_credentials *cred);
NTSTATUS cli_credentials_set_stored_principal(struct cli_credentials *cred,
struct loadparm_context *lp_ctx,
const char *serviceprincipal);
return ok;
}
+/**
+ * @brief Get the credential cache containter
+ *
+ * @param[in] cred The cli_credentials to get the ccache from.
+ *
+ * @return A pointer to the credential cache containter or NULL on error.
+ */
+_PUBLIC_ struct ccache_container *cli_credentials_ccache_get(struct cli_credentials *cred)
+{
+ return cred->krb5_ccache;
+}
+
static int cli_credentials_set_from_ccache(struct cli_credentials *cred,
struct ccache_container *ccache,
enum credentials_obtained obtained,