don't include mit-des.h twice, if needed more than once
authorJohn Kohl <jtkohl@mit.edu>
Tue, 20 Nov 1990 15:31:22 +0000 (15:31 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 20 Nov 1990 15:31:22 +0000 (15:31 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1485 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/cryptoconf.c

index 1be3df92792a647c6a1bd041539044a8af6df297..32c44ab588c42a1ad87576eabd1d396edce10f09 100644 (file)
@@ -42,13 +42,17 @@ static char rcsid_cryptoconf_c[] =
 
 #ifdef PROVIDE_DES_CBC_CKSUM
 #include <krb5/mit-des.h>
+#define _DES_DONE__
 #define DES_CBC_CKENTRY &mit_des_cbc_cksumtable_entry
 #else
 #define DES_CBC_CKENTRY 0
 #endif
 
 #ifdef PROVIDE_DES_CBC_CRC
+#ifndef _DES_DONE__
 #include <krb5/mit-des.h>
+#define _DES_DONE__
+#endif
 static krb5_cs_table_entry mit_des_cbc_crc_csentry = {
     &mit_des_cryptosystem_entry, 0 };
 #define DES_CBC_CRC_CSENTRY &mit_des_cbc_crc_csentry
@@ -94,3 +98,5 @@ krb5_checksum_entry *krb5_cksumarray[] = {
 };
 
 int krb5_max_cksum = sizeof(krb5_cksumarray)/sizeof(krb5_cksumarray[0]);
+
+#undef _DES_DONE__