MIT Kerberos Documentation

krb5_cc_store_cred - Store credentials in a credential cache.

krb5_error_code krb5_cc_store_cred(krb5_context context, krb5_ccache cache, krb5_creds * creds)

[in] context - Library context

[inout] cache - Credential cache handle

[in] creds - Credentials to be stored in cache

  • 0 Success
  • Permission errors; storage failure errors; Kerberos error codes

This function stores creds into cache . If creds->server and the server in the decoded ticket creds->ticket differ, the credentials will be stored under both server principal names.