From: John Kohl Date: Tue, 20 Nov 1990 15:31:22 +0000 (+0000) Subject: don't include mit-des.h twice, if needed more than once X-Git-Tag: krb5-1.0-alpha3~108 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=215e8eb679bc9bdc71e9e7bbe4db2a6bd371a61c;p=krb5.git don't include mit-des.h twice, if needed more than once git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1485 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/cryptoconf.c b/src/lib/crypto/cryptoconf.c index 1be3df927..32c44ab58 100644 --- a/src/lib/crypto/cryptoconf.c +++ b/src/lib/crypto/cryptoconf.c @@ -42,13 +42,17 @@ static char rcsid_cryptoconf_c[] = #ifdef PROVIDE_DES_CBC_CKSUM #include +#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 +#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__