In Swift, how do I get the status of a users kerberos ticket? I see the GSS library at https://developer.apple.com/reference/gss but there is absolutely no documentation beyond 'it exists with these function names.'
From the name, it seems like func GSSCredentialGetLifetime(_ cred: gss_cred_id_t) -> OM_uint32
would be what I want to use, but where do I get a variable of the type gss_cred_id_t
to pass into that function?
You can iterate over the credentials (Kerberos tickets) to get gss_cred_id_t. For example: