Contents

gss_iter_creds_f(_:_:_:_:_:)

Iterates over all credentials with a user context.

Declaration

func gss_iter_creds_f(_ min_stat: UnsafeMutablePointer<OM_uint32>, _ flags: OM_uint32, _ mech: gss_const_OID?, _ userctx: UnsafeMutableRawPointer?, _ useriter: (UnsafeMutableRawPointer?, gss_OID?, gss_cred_id_t?) -> Void) -> OM_uint32

Parameters

  • 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_SET to iterate over all credentials.

  • userctx:

    A user context that you use to keep track of callbacks.

  • useriter:

    A block that is called once for each credential. The block receives the user context that you specified with the userctx parameter, 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 a NULL credential 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(_:_:_:_:) function if you don’t need the user context parameter.

See Also

Iteration