With this patch, things seem to work with a Heimdal client and MIT KDC
authorKen Raeburn <raeburn@mit.edu>
Thu, 26 Jun 2003 00:48:07 +0000 (00:48 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 26 Jun 2003 00:48:07 +0000 (00:48 +0000)
* 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
src/lib/crypto/checksum_length.c

index 0801bb263a58274b4ab2fc6fdea34b3697d9681f..26d285f01ad761cc881e1dc4acc141660baa9f38 100644 (file)
@@ -1,3 +1,7 @@
+2003-06-25  Ken Raeburn  <raeburn@mit.edu>
+
+       * checksum_length.c (krb5_c_checksum_length): Handle trunc_size.
+
 2003-06-23  Ken Raeburn  <raeburn@mit.edu>
 
        * cksumtypes.c (krb5_cksumtypes_list): Add aes128/256 hmacs, with
index 80040b2318ab4ebc1797d046e3906725ef6a4e0e..f3886f4a9708335a6f78f83ce407e210585a175b 100644 (file)
@@ -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);