gss_iter_creds(_:_:_:_:)
Iterates over all credentials.
Declaration
func gss_iter_creds(_ min_stat: UnsafeMutablePointer<OM_uint32>, _ flags: OM_uint32, _ mech: gss_const_OID?, _ useriter: @escaping (gss_OID?, gss_cred_id_t?) -> Void) -> OM_uint32Parameters
- flags:
No flags are currently defined. Pass 0 for this parameter.
- mech:
The mechanism type of credentials to iterate over. Pass in
GSS_C_NO_OID_SETto iterate over all credentials. - useriter:
A block that is called once for each credential. The block receives the credential’s mechanism and a copy of the credential as input on each iteration. Free the copy’s memory with a call to Gss_release_cred(_:_:) when you are done with it. The block is called one final time with
NULLinputs upon reaching the end of the list.
Return Value
A status code set to GSS_S_COMPLETE on success. See Function Status for a description of other status outputs.
Discussion
Use the gss_iter_creds_f(_:_:_:_:_:) function if you want to track the callbacks using a user-supplied context.