summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-06-14 13:53:09 -0400
committerGreg Hudson <ghudson@mit.edu>2012-06-15 00:15:37 -0400
commit85afc74759792cfd3ed53daa7f42bce11ca4c536 (patch)
treefce51b46d6cdd18b776a3d82bdf8ff6e20fd8adf /src/include
parent2cef3fc6eae96643604e322f998176c6fae89c12 (diff)
downloadkrb5-85afc74759792cfd3ed53daa7f42bce11ca4c536.tar.gz
krb5-85afc74759792cfd3ed53daa7f42bce11ca4c536.tar.xz
krb5-85afc74759792cfd3ed53daa7f42bce11ca4c536.zip
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)
Diffstat (limited to 'src/include')
-rw-r--r--src/include/krb5/krb5.hin11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/krb5/krb5.hin b/src/include/krb5/krb5.hin
index ca5ccbd0ea..67d67e2d79 100644
--- a/src/include/krb5/krb5.hin
+++ b/src/include/krb5/krb5.hin
@@ -2632,6 +2632,17 @@ 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.
*
* @param [in] context Library context