krb5_cc_gen_new

Jeffrey Altman jaltman at columbia.edu
Tue Jan 4 01:38:15 EST 2005


Nicolas Williams wrote:

> Ok, let me try a different approach: what will become of the hint, will
> it appear in the ccache backend (file, MLSA, MEMORY, CCAPI, ...)
> immediately?  Can it be set via a separate function?  Why no hint in
> krb5_cc_resolve() (krb5_cc_resolve() can be used to create ccaches too)?

First of all, we are not changing existing interfaces so asking why a
hint does not exist in some other function is really out of scope.
However, since you mention krb5_cc_resolv(), you don't need a hint there
because the residual portion of the cache name is generated by the 
application.  The application decides what the name will be when 
creating a new ccache.

Providing the hint to krb5_cc_new() allows an application that currently
needs to query the list of existing caches and generate its own unique 
name to provide the basis for the name it wants to use and then let the
underlying library handle the uniqueness.

> The hint may actually be useful in some contexts, but not in others --
> you propose that it be optional, after all.  So why not make it so it
> can be set via a separate function?

Using a separate function only makes sense if there is some persistent 
state that is worth setting that will be used for multiple calls.  The
use I have for the hint does not require this.




More information about the krbdev mailing list