auth: Add documentation for ktc_ListTokensEx

Document ktc_ListTokensEx, and add a stub implementation of the
function for Windows.

Change-Id: Ie168081f1a991fcf13358a5a1eeb8d0b96f5800a
Reviewed-on: http://gerrit.openafs.org/2825
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Simon Wilkinson 2010-09-11 10:11:57 +01:00 committed by Derrick Brashear
parent f73c085755
commit dd8c28a58e
2 changed files with 43 additions and 1 deletions

View File

@ -736,6 +736,27 @@ ktc_ForgetToken(struct ktc_principal *aserver)
}
#endif /* NO_AFS_CLIENT */
/*!
* An iterator which can list all cells with tokens in the cache
*
* This function may be used to list the names of all cells for which
* tokens exist in the current cache. The first time that it is called,
* prevIndex should be set to 0. On all subsequent calls, prevIndex
* should be set to the value returned in newIndex by the last call
* to the function. Note that there is no guarantee that the index value
* is monotonically increasing.
*
* @param prevIndex
* The index returned by the last call, or 0 if this is the first
* call in an iteration
* @param newIndex
* A pointer to an int which, upon return, will hold the next value
* to be used.
* @param cellName
* A pointer to a char * which, upon return, will hold a cellname.
* This must be freed by the caller using free()
*/
int
ktc_ListTokensEx(int prevIndex, int *newIndex, char **cellName) {
struct ViceIoctl iob;

View File

@ -960,9 +960,30 @@ ForgetOneLocalToken(struct ktc_principal *aserver)
return KTC_NOENT;
}
/*!
* An iterator which can list all cells with tokens in the cache
*
* This function may be used to list the names of all cells for which
* tokens exist in the current cache. The first time that it is called,
* prevIndex should be set to 0. On all subsequent calls, prevIndex
* should be set to the value returned in newIndex by the last call
* to the function. Note that there is no guarantee that the index value
* is monotonically increasing.
*
* @param prevIndex
* The index returned by the last call, or 0 if this is the first
* call in an iteration
* @param newIndex
* A pointer to an int which, upon return, will hold the next value
* to be used.
* @param cellName
* A pointer to a char * which, upon return, will hold a cellname.
* This must be freed by the caller using free()
*/
int
ktc_ListTokensEx(int prevIndex, int *newIndex, char **cellName) {
/* Not yet implemented */
*cellName == NULL;
return KTC_PIOCTLFAIL;
}