Fills in id with a ccache identifier which corresponds to the name in string_name.
Requires that string_name be of the form ``type:residual'' and ``type'' is a type known to the library.
Fills in id with a unique ccache identifier of a type defined by ops. The cache is left unopened.
Adds a new cache type identified and implemented by ops to the set recognized by krb5_cc_resolve. If override is FALSE, a ticket cache type named opsprefix must not be known.
Returns the name of the ccache denoted by id.
Returns the name of the default credentials cache; this may be equivalent to getenv("KRB5CCACHE") with an appropriate fallback.
Equivalent to krb5_cc_resolve(context, krb5_cc_default_name, ccache).
Creates/refreshes a credentials cache identified by id with primary principal set to primary_principal. If the credentials cache already exists, its contents are destroyed.
Errors: permission errors, system errors.
Modifies: cache identified by id.
Destroys the credentials cache identified by id, invalidates id, and releases any other resources acquired during use of the credentials cache. Requires that id identifies a valid credentials cache. After return, id must not be used unless it is first reinitialized using krb5_cc_resolve or krb5_cc_gen_new.
Errors: permission errors.
Closes the credentials cache id, invalidates id, and releases id and any other resources acquired during use of the credentials cache. Requires that id identifies a valid credentials cache. After return, id must not be used unless it is first reinitialized using krb5_cc_resolve or krb5_cc_gen_new.
Stores creds in the cache id, tagged with credsclient. Requires that id identifies a valid credentials cache.
Errors: permission errors, storage failure errors.
Searches the cache id for credentials matching mcreds. The fields which are to be matched are specified by set bits in whichfields, and always include the principal name mcredsserver. Requires that id identifies a valid credentials cache.
If at least one match is found, one of the matching credentials is returned in *creds. The credentials should be freed using krb5_free_credentials.
Errors: error code if no matches found.
Retrieves the primary principal of the credentials cache (as set by the krb5_cc_initialize request) The primary principal is filled into *principal; the caller should release this memory by calling krb5_free_principal on *principal when finished.
Requires that id identifies a valid credentials cache.
Prepares to sequentially read every set of cached credentials. cursor is filled in with a cursor to be used in calls to krb5_cc_next_cred.
Fetches the next entry from id, returning its values in *creds, and updates *cursor for the next request. Requires that id identifies a valid credentials cache and *cursor be a cursor returned by krb5_cc_start_seq_get or a subsequent call to krb5_cc_next_cred.
Errors: error code if no more cache entries.
Finishes sequential processing mode and invalidates *cursor. *cursor must never be re-used after this call.
Requires that id identifies a valid credentials cache and *cursor be a cursor returned by krb5_cc_start_seq_get or a subsequent call to krb5_cc_next_cred.
Errors: may return error code if *cursor is invalid.
Removes any credentials from id which match the principal name credserver and the fields in cred masked by which. Requires that id identifies a valid credentials cache.
Errors: returns error code if nothing matches; returns error code if couldn't delete.
Sets the flags on the cache id to flags. Useful flags are defined in <krb5.h>.
Intended for use by Windows. Will register a unique message type using RegisterWindowMessage which will be notified whenever the cache changes. This will allow all processes to recheck their caches.