Add md5
authorJohn Carr <jfc@mit.edu>
Wed, 25 Mar 1992 06:32:26 +0000 (06:32 +0000)
committerJohn Carr <jfc@mit.edu>
Wed, 25 Mar 1992 06:32:26 +0000 (06:32 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2256 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/cryptoconf.c

index defb70477d5e01dbe2d22da020eeabebe8994b12..90a7d40907a106fcb2080d8d943d01464d075e15 100644 (file)
@@ -50,6 +50,15 @@ static char rcsid_cryptoconf_c[] =
 #define MD4_DES_CKENTRY 0
 #endif
 
+#ifdef PROVIDE_RSA_MD5
+#include <krb5/rsa-md5.h>
+#define MD5_CKENTRY &rsa_md5_cksumtable_entry
+#define MD5_DES_CKENTRY &rsa_md5_des_cksumtable_entry
+#else
+#define MD5_CKENTRY 0
+#define MD5_DES_CKENTRY 0
+#endif
+
 #ifdef PROVIDE_SNEFRU
 #define XEROX_CKENTRY &snefru_cksumtable_entry
 #else
@@ -111,6 +120,10 @@ krb5_checksum_entry *krb5_cksumarray[] = {
     MD4_CKENTRY,
     MD4_DES_CKENTRY,
     DES_CBC_CKENTRY,
+    0,
+    0,
+    MD5_CKENTRY,
+    MD5_DES_CKENTRY
 };
 
 int krb5_max_cksum = sizeof(krb5_cksumarray)/sizeof(krb5_cksumarray[0]);