From: Ken Raeburn Date: Thu, 26 Jun 2003 00:48:07 +0000 (+0000) Subject: With this patch, things seem to work with a Heimdal client and MIT KDC X-Git-Tag: krb5-1.4-beta1~833 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bce76ecd6462a7f8c5163bbc7fbd6535c871633f;p=krb5.git With this patch, things seem to work with a Heimdal client and MIT KDC * checksum_length.c (krb5_c_checksum_length): Handle trunc_size. ticket: 1621 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15652 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/ChangeLog b/src/lib/crypto/ChangeLog index 0801bb263..26d285f01 100644 --- a/src/lib/crypto/ChangeLog +++ b/src/lib/crypto/ChangeLog @@ -1,3 +1,7 @@ +2003-06-25 Ken Raeburn + + * checksum_length.c (krb5_c_checksum_length): Handle trunc_size. + 2003-06-23 Ken Raeburn * cksumtypes.c (krb5_cksumtypes_list): Add aes128/256 hmacs, with diff --git a/src/lib/crypto/checksum_length.c b/src/lib/crypto/checksum_length.c index 80040b231..f3886f4a9 100644 --- a/src/lib/crypto/checksum_length.c +++ b/src/lib/crypto/checksum_length.c @@ -45,6 +45,8 @@ krb5_c_checksum_length(context, cksumtype, length) if (krb5_cksumtypes_list[i].keyhash) (*(krb5_cksumtypes_list[i].keyhash->hash_size))(length); + else if (krb5_cksumtypes_list[i].trunc_size) + *length = krb5_cksumtypes_list[i].trunc_size; else (*(krb5_cksumtypes_list[i].hash->hash_size))(length);