mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
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:
parent
f73c085755
commit
dd8c28a58e
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user