MIT Kerberos Documentation

krb5_cc_get_config - Get a configuration value from a credential cache.

krb5_error_code krb5_cc_get_config(krb5_context context, krb5_ccache id, krb5_const_principal principal, const char * key, krb5_data * data)

[in] context - Library context

[in] id - Credential cache handle

[in] principal - Configuration for this principal; if NULL, global for the whole cache

[in] key - Name of config variable

[out] data - Data to be fetched

  • 0 Success
  • Kerberos error codes

Use krb5_free_data_contents() to free data when it is no longer needed.