Since HEADER_DES_H has been the protector of des.h since libdes
[openssl.git] / crypto / des / des.h
index a36a8e68a4d18f85b228ff404a6df56be446662b..daaf239dbe54219ebea2235a8788dbcc7c0ce5c3 100644 (file)
@@ -56,8 +56,8 @@
  * [including the GNU Public Licence.]
  */
 
-#ifndef HEADER_DES_H
-#define HEADER_DES_H
+#ifndef HEADER_NEW_DES_H
+#define HEADER_NEW_DES_H
 
 #ifdef OPENSSL_NO_DES
 #error DES is disabled.
@@ -92,6 +92,12 @@ typedef struct DES_ks
     } DES_key_schedule;
 
 #ifndef OPENSSL_DISABLE_OLD_DES_SUPPORT
+# ifndef OPENSSL_ENABLE_OLD_DES_SUPPORT
+#  define OPENSSL_ENABLE_OLD_DES_SUPPORT
+# endif
+#endif
+
+#ifdef OPENSSL_ENABLE_OLD_DES_SUPPORT
 # include <openssl/des_old.h>
 #endif