summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2009-10-08 12:58:56 +0000
committerGreg Hudson <ghudson@mit.edu>2009-10-08 12:58:56 +0000
commitc1da485d46009fe4c8b119b02c1c252cce32f196 (patch)
treef5b6ae288215d8c0a4811dc154a3f927db0ad6b0 /src/lib/crypto
parentf3bf2ee29ae2fcea2a258b8477787eb7359ce4a1 (diff)
downloadkrb5-c1da485d46009fe4c8b119b02c1c252cce32f196.tar.gz
krb5-c1da485d46009fe4c8b119b02c1c252cce32f196.tar.xz
krb5-c1da485d46009fe4c8b119b02c1c252cce32f196.zip
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
Diffstat (limited to 'src/lib/crypto')
-rw-r--r--src/lib/crypto/krb/old_api_glue.c1
1 files changed, 1 insertions, 0 deletions
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;