From 3f820f66a45c29f42209e731189a722dae88be85 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 10 Apr 2001 05:06:19 +0000 Subject: [PATCH] * des.h (des_cblock, des_key_schedule): Separate definitions into a block with a comment indicating lib/crypto/des/des_int.h needs to be kept in sync. Use macro KRB5INT_DES_TYPES_DEFINED to avoid duplication. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13157 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/kerberosIV/ChangeLog | 7 +++++++ src/include/kerberosIV/des.h | 18 ++++++++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/include/kerberosIV/ChangeLog b/src/include/kerberosIV/ChangeLog index 81769398d..ea23cb576 100644 --- a/src/include/kerberosIV/ChangeLog +++ b/src/include/kerberosIV/ChangeLog @@ -1,3 +1,10 @@ +2001-04-10 Ken Raeburn + + * des.h (des_cblock, des_key_schedule): Separate definitions into + a block with a comment indicating lib/crypto/des/des_int.h needs + to be kept in sync. Use macro KRB5INT_DES_TYPES_DEFINED to avoid + duplication. + 2001-04-09 Ken Raeburn * des.h: Include stdio.h. diff --git a/src/include/kerberosIV/des.h b/src/include/kerberosIV/des.h index 505d6073a..67eca8ee6 100644 --- a/src/include/kerberosIV/des.h +++ b/src/include/kerberosIV/des.h @@ -78,15 +78,29 @@ #endif /* !defined(SIZEOF_INT) */ #endif /* !defined(KRB4_32) */ -typedef unsigned char des_cblock[8]; /* crypto-block size */ - /* Key schedule */ /* Ick. We need this in here unfortunately... */ #ifndef DES_INT32 #define DES_INT32 KRB4_32 #endif +/* + * + * NOTE WELL: + * + * This section must be kept in sync with lib/crypto/des/des_int.h, + * until we get around to actually combining them at the source level. + * We can't right now, because both the Mac and Windows platforms are + * using their own versions of krb4 des.h, and that's the one that + * would have to have the definitions because we install it under UNIX. + * + */ +#ifndef KRB5INT_DES_TYPES_DEFINED +#define KRB5INT_DES_TYPES_DEFINED +typedef unsigned char des_cblock[8]; /* crypto-block size */ typedef struct des_ks_struct { DES_INT32 _[2]; } des_key_schedule[16]; +#endif +/* end sync */ #define DES_KEY_SZ (sizeof(des_cblock)) #define DES_ENCRYPT 1 -- 2.26.2