From 7f558334adba23a412b169901046e3271250316b Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 6 Nov 2001 11:37:14 +0000 Subject: des_old.h doesn't really need to include des.h, so don't. That will avoid clashes with other code that have their own DES_ functions but really only use OpenSSL's old des_ functions. --- crypto/des/des_old.c | 1 + crypto/des/des_old.h | 5 ++--- crypto/des/destest.c | 1 + crypto/opensslconf.h.in | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) (limited to 'crypto') diff --git a/crypto/des/des_old.c b/crypto/des/des_old.c index 76f4f5653e..1992697362 100644 --- a/crypto/des/des_old.c +++ b/crypto/des/des_old.c @@ -73,6 +73,7 @@ */ #include +#include #include const char *des_options(void) diff --git a/crypto/des/des_old.h b/crypto/des/des_old.h index 0fa708dfc2..1d2781b78f 100644 --- a/crypto/des/des_old.h +++ b/crypto/des/des_old.h @@ -72,8 +72,8 @@ * */ -#ifndef HEADER_DES_COMP_H -#define HEADER_DES_COMP_H +#ifndef HEADER_DES_OLD_H +#define HEADER_DES_OLD_H #ifdef OPENSSL_NO_DES #error DES is disabled. @@ -85,7 +85,6 @@ #include /* DES_LONG */ #include /* OPENSSL_EXTERN */ -#include #include #ifdef OPENSSL_BUILD_SHLIBCRYPTO diff --git a/crypto/des/destest.c b/crypto/des/destest.c index 1c7936f398..88fe32a622 100644 --- a/crypto/des/destest.c +++ b/crypto/des/destest.c @@ -82,6 +82,7 @@ int main(int argc, char *argv[]) return(0); } #else +#include #include #if defined(PERL5) || defined(__FreeBSD__) diff --git a/crypto/opensslconf.h.in b/crypto/opensslconf.h.in index e849fe688a..4f3711c68c 100644 --- a/crypto/opensslconf.h.in +++ b/crypto/opensslconf.h.in @@ -47,7 +47,7 @@ #endif #endif -#if defined(HEADER_DES_H) && !defined(DES_LONG) +#if (defined(HEADER_DES_H) || defined(HEADER_DES_OLD_H)) && !defined(DES_LONG) /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a * %20 speed up (longs are 8 bytes, int's are 4). */ #ifndef DES_LONG -- cgit v1.2.3