From c1da485d46009fe4c8b119b02c1c252cce32f196 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 8 Oct 2009 12:58:56 +0000 Subject: [PATCH] In krb5_calculate_checksum (a compatibility routine), initialize key.enctype to ENCTYPE_NULL. This will predictably fail to match a keyed hash's enctype, which may not be the best behavior, but is better than unpredictably failing to match it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22867 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/krb/old_api_glue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/crypto/krb/old_api_glue.c b/src/lib/crypto/krb/old_api_glue.c index c0cfdb179..0688d7fe3 100644 --- a/src/lib/crypto/krb/old_api_glue.c +++ b/src/lib/crypto/krb/old_api_glue.c @@ -215,6 +215,7 @@ krb5_calculate_checksum(krb5_context context, krb5_cksumtype ctype, input.data = in; input.length = in_length; + key.enctype = ENCTYPE_NULL; key.length = seed_length; key.contents = seed; -- 2.26.2