From 85afc74759792cfd3ed53daa7f42bce11ca4c536 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 14 Jun 2012 13:53:09 -0400 Subject: Add krb5_cccol_have_content API Add a new API to determine whether any krb5 credentials are available in the ccache collection. Add tests to t_cccol.py. ticket: 7173 (new) --- src/include/krb5/krb5.hin | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/include') diff --git a/src/include/krb5/krb5.hin b/src/include/krb5/krb5.hin index ca5ccbd0e..67d67e2d7 100644 --- a/src/include/krb5/krb5.hin +++ b/src/include/krb5/krb5.hin @@ -2631,6 +2631,17 @@ krb5_cccol_cursor_next(krb5_context context, krb5_cccol_cursor cursor, krb5_error_code KRB5_CALLCONV krb5_cccol_cursor_free(krb5_context context, krb5_cccol_cursor *cursor); +/** + * Check if the credential cache collection contains any credentials. + * + * @param [in] context Library context + * + * @retval 0 Credentials are available in the collection + * @retval KRB5_CC_NOTFOUND The collection contains no credentials + */ +krb5_error_code KRB5_CALLCONV +krb5_cccol_have_content(krb5_context context); + /** * Return a timestamp of the last modification of any known credential cache. * -- cgit