des_old.h doesn't really need to include des.h, so don't. That will
authorRichard Levitte <levitte@openssl.org>
Tue, 6 Nov 2001 11:37:14 +0000 (11:37 +0000)
committerRichard Levitte <levitte@openssl.org>
Tue, 6 Nov 2001 11:37:14 +0000 (11:37 +0000)
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
crypto/des/des_old.h
crypto/des/destest.c
crypto/opensslconf.h.in

index 76f4f5653e61de58c878a75a6d8a0dcfe9977e06..1992697362ea35eae477381bc92c590b3d40d9a6 100644 (file)
@@ -73,6 +73,7 @@
  */
 
 #include <openssl/des_old.h>
  */
 
 #include <openssl/des_old.h>
+#include <openssl/des.h>
 #include <openssl/rand.h>
 
 const char *des_options(void)
 #include <openssl/rand.h>
 
 const char *des_options(void)
index 0fa708dfc23e5e6288deecba06a562761df8f425..1d2781b78f49bdd4e6bf29b41f147c3e798888e5 100644 (file)
@@ -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.
 
 #ifdef OPENSSL_NO_DES
 #error DES is disabled.
@@ -85,7 +85,6 @@
 
 #include <openssl/opensslconf.h> /* DES_LONG */
 #include <openssl/e_os2.h>     /* OPENSSL_EXTERN */
 
 #include <openssl/opensslconf.h> /* DES_LONG */
 #include <openssl/e_os2.h>     /* OPENSSL_EXTERN */
-#include <openssl/des.h>
 #include <openssl/symhacks.h>
 
 #ifdef OPENSSL_BUILD_SHLIBCRYPTO
 #include <openssl/symhacks.h>
 
 #ifdef OPENSSL_BUILD_SHLIBCRYPTO
index 1c7936f3987b94ab71ea59e3ccc49a151a8aed8d..88fe32a6224003bd5c495dd9d2a1caa6b0ac1020 100644 (file)
@@ -82,6 +82,7 @@ int main(int argc, char *argv[])
     return(0);
 }
 #else
     return(0);
 }
 #else
+#include <openssl/des.h>
 #include <openssl/des_old.h>
 
 #if defined(PERL5) || defined(__FreeBSD__)
 #include <openssl/des_old.h>
 
 #if defined(PERL5) || defined(__FreeBSD__)
index e849fe688a252b90332fe0729fe0ac1f5ffa2e49..4f3711c68ce84818c455ebe9afc28e8261339469 100644 (file)
@@ -47,7 +47,7 @@
 #endif
 #endif
 
 #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
 /* 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