From: Greg Hudson Date: Thu, 8 Oct 2009 12:58:56 +0000 (+0000) Subject: In krb5_calculate_checksum (a compatibility routine), initialize X-Git-Tag: krb5-1.8-alpha1~313 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c1da485d46009fe4c8b119b02c1c252cce32f196;p=krb5.git 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 --- 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;