summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/make_checksum.c
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>1999-01-05 05:14:54 +0000
committerTom Yu <tlyu@mit.edu>1999-01-05 05:14:54 +0000
commit1e0f12d0fcd5f1a865c9d0502f0e3f8ef58ed5f0 (patch)
treec34310bc0838d7e651d9161edd29b634f2901859 /src/lib/crypto/make_checksum.c
parent474187a3c7d6bdef3618c192590703a36e353e95 (diff)
downloadkrb5-1e0f12d0fcd5f1a865c9d0502f0e3f8ef58ed5f0.tar.gz
krb5-1e0f12d0fcd5f1a865c9d0502f0e3f8ef58ed5f0.tar.xz
krb5-1e0f12d0fcd5f1a865c9d0502f0e3f8ef58ed5f0.zip
* make_checksum.c (krb5_c_make_checksum): Note the fact that we're
punting on dealing with backwards compat with length-included checksums. * etypes.c: Add ENCTYPE_LOCAL_DES3_HMAC_SHA1 as a temporary kludge. Note that this is added to the end of the array so other code can lop off the last member of the array and the right thing will happen so that it is possible to disable des3-marc-hmac-sha1 from the KDC command line, for instance. * configure.in: Conditionalize ATHENA_DES3_KLUDGE on --enable-athena. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11099 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto/make_checksum.c')
-rw-r--r--src/lib/crypto/make_checksum.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/crypto/make_checksum.c b/src/lib/crypto/make_checksum.c
index 2be79ccb46..2c39475367 100644
--- a/src/lib/crypto/make_checksum.c
+++ b/src/lib/crypto/make_checksum.c
@@ -87,7 +87,15 @@ krb5_c_make_checksum(context, cksumtype, key, usage, input, cksum)
ret = (*(krb5_cksumtypes_list[i].keyhash->hash))(key, 0, input, &data);
} else if (krb5_cksumtypes_list[i].flags & KRB5_CKSUMFLAG_DERIVE) {
/* any key is ok */
-
+#ifdef ATHENA_DES3_KLUDGE
+ /*
+ * XXX Punt on actually using krb5_marc_dk_make_checksum
+ * for now because we never actually use a DES3 session key
+ * anywhere on Athena, and this is temporary anyway.
+ * In any case, it's way too hairy to actually make this work
+ * properly.
+ */
+#endif
ret = krb5_dk_make_checksum(krb5_cksumtypes_list[i].hash,
key, usage, input, &data);
} else {