NSSSEnumerateSecretIDs
Enables the administrator or user to list the secret identifiers (secret IDs) for secrets stored in the user's SecretStore.
#include <nssscl.h>
SS_EXTERN_LIBCALL(int) NSSSEnumerateSecretIDs
(
SSS_CONTEXT_T *callerContext,
SS_OBJECT_DN_T *targetObject,
unsigned long ssFlags,
char *searchString,
unsigned long *count
SS_SECRET_T *secretIDList,
SS_EXT_T *ext
);
These are common return values for this function; see Section 4.0, Return Values for more information.
The memory allocated for the secretIDBuffer should be set to NSSS_ENUM_BUFFER_GUESS. This should be enough memory for most applications.
If this call returns NSSS_ERR_MORE_DATA (not a fatal error), call it again with a buffer the size of returned secretIDList->len. If the buffer is too small for all of the data in the SecretStore, the returned buffered from the server is stuffed as much as it has room. search string can be used to change the scope of the search when buffer size is a constraint.