krb5_k_make_checksum with 0 cksumtipe uses mandatory cksum type

Luke Howard lukeh at
Thu Nov 19 17:15:23 EST 2009

On 19/11/2009, at 6:49 PM, Sam Hartman wrote:

> I've been annoyed once too many times by the fact that I have a key   
> and I want a checksum.
> That should be one call; I should not have to call  
> krb5int_c_mandatory_cksumtype and then check the return value.
> So, I'm going to treat 0 cksumtype for krb5_k_make_cheksum as "use  
> the mandatory cksumtype for this key."

Hear, hear. The amount of times I've done that. And, to have to use an  
internal API to do this too...

-- Luke

More information about the krbdev mailing list