API proposal: krb5_enctype_to_name

Jeffrey Hutzelman jhutz at cmu.edu
Tue Jun 8 22:07:38 EDT 2010


--On Friday, June 04, 2010 12:35:49 PM -0400 ghudson at MIT.EDU wrote:

> I propose to add:
>
>     krb5_error_code KRB5_CALLCONV
>     krb5_enctype_to_name(krb5_enctype enctype, krb5_boolean short,
>                          char *buffer, size_t buflen)
>
> If short is FALSE, we return the enctype's canonical name (like
> "aes128-cts-hmac-sha1-96").

Sounds good.


> If short is TRUE, we return the enctype's
> shortest alias (like "rc4-hmac" or "aes128-cts").

Why would you ever want to return something that purports to be an 
identifier but is not canonical?

-- Jeff



More information about the krbdev mailing list