MIT Kerberos Documentation

krb5_cc_switch - Make a credential cache the primary cache for its collection.

krb5_error_code krb5_cc_switch(krb5_context context, krb5_ccache cache)

[in] context - Library context

[in] cache - Credential cache handle

  • 0 Success, or the type of cache doesn’t support switching
  • Kerberos error codes

If the type of cache supports it, set cache to be the primary credential cache for the collection it belongs to.