krb5_cc_gen_new

Sam Hartman hartmans at MIT.EDU
Thu Dec 30 19:54:57 EST 2004


>>>>> "Love" == Love  <lha at stacken.kth.se> writes:

    Love> Hi

    Love> Given that external applications can't use krb5_cc_gen_new
    Love> since they differ between Heimdal and MIT Kerberos, third
    Love> party just asked about it. I propose the following
    Love> replacement function.

Why do you want the hint?
It seems to complicate the interface for no value.

    Love> /* * Generates a new unique ccache of `type` in `id'. The
    Love> supplied * `hint' (that can be NULL) is a string that the
    Love> credential cache * type can use to base the name of the
    Love> credential on, this is to make * its easier for the user to
    Love> differentiate the credentials.  * * Returns 0 or an error
    Love> code.  */

    Love> krb5_error_code KRB5_LIB_FUNCTION
    Love> krb5_cc_new_unique(krb5_context context, const char *type,
    Love> const char *hint, krb5_ccache *id)

I don't think the output should be called id if it is going to be a
ccache.  I do agree it should be a ccache.

--Sam



More information about the krbdev mailing list