From bce76ecd6462a7f8c5163bbc7fbd6535c871633f Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 26 Jun 2003 00:48:07 +0000 Subject: [PATCH] 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 --- src/lib/crypto/ChangeLog | 4 ++++ src/lib/crypto/checksum_length.c | 2 ++ 2 files changed, 6 insertions(+) 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); -- 2.26.2