diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-21 19:31:05 +0200 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-21 19:31:05 +0200 |
commit | 8e10f2b3ac1cb5ba9de832981ce32ac49c71fdee (patch) | |
tree | e47416b5a59301c6506e6db838687370ab3e9556 /crypto/des | |
parent | Remove some unnecessary(?) casting. (diff) | |
download | openssl-8e10f2b3ac1cb5ba9de832981ce32ac49c71fdee.tar.xz openssl-8e10f2b3ac1cb5ba9de832981ce32ac49c71fdee.zip |
Move all autogenerated header file parts to crypto/opensslconf.h.
Diffstat (limited to 'crypto/des')
-rw-r--r-- | crypto/des/des.h (renamed from crypto/des/des.org) | 21 | ||||
-rw-r--r-- | crypto/des/des_locl.h (renamed from crypto/des/des_locl.org) | 78 |
2 files changed, 2 insertions, 97 deletions
diff --git a/crypto/des/des.org b/crypto/des/des.h index 0e84c6eaac..c9f67921d3 100644 --- a/crypto/des/des.org +++ b/crypto/des/des.h @@ -56,14 +56,6 @@ * [including the GNU Public Licence.] */ -/* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - * - * Always modify des.org since des.h is automatically generated from - * it during SSLeay configuration. - * - * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - */ - #ifndef HEADER_DES_H #define HEADER_DES_H @@ -72,12 +64,7 @@ extern "C" { #endif #include <stdio.h> - -/* 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 -#define DES_LONG unsigned long -#endif +#include "opensslconf.h" /* DES_LONG */ typedef unsigned char des_cblock[8]; typedef unsigned char *des_cblocks; /* Unfortunately there's no way to say that @@ -145,12 +132,6 @@ extern int des_check_key; /* defaults to false */ extern int des_rw_mode; /* defaults to DES_PCBC_MODE */ extern int des_set_weak_key_flag; /* set the weak key flag */ -/* The next line is used to disable full ANSI prototypes, if your - * compiler has problems with the prototypes, make sure this line always - * evaluates to true :-) */ -#if defined(MSDOS) || defined(__STDC__) -#undef NOPROTO -#endif #ifndef NOPROTO const char *des_options(void); void des_ecb3_encrypt(const des_cblock input, des_cblock output, diff --git a/crypto/des/des_locl.org b/crypto/des/des_locl.h index c9e8be3add..d01c704244 100644 --- a/crypto/des/des_locl.org +++ b/crypto/des/des_locl.h @@ -56,14 +56,6 @@ * [including the GNU Public Licence.] */ -/* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - * - * Always modify des_locl.org since des_locl.h is automatically generated from - * it during SSLeay configuration. - * - * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING - */ - #ifndef HEADER_DES_LOCL_H #define HEADER_DES_LOCL_H @@ -80,75 +72,7 @@ #endif #include "des.h" -#ifndef DES_DEFAULT_OPTIONS -/* the following is tweaked from a config script, that is why it is a - * protected undef/define */ -#ifndef DES_PTR -#undef DES_PTR -#endif - -/* This helps C compiler generate the correct code for multiple functional - * units. It reduces register dependancies at the expense of 2 more - * registers */ -#ifndef DES_RISC1 -#undef DES_RISC1 -#endif - -#ifndef DES_RISC2 -#undef DES_RISC2 -#endif - -#if defined(DES_RISC1) && defined(DES_RISC2) -YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! -#endif - -/* Unroll the inner loop, this sometimes helps, sometimes hinders. - * Very mucy CPU dependant */ -#ifndef DES_UNROLL -#undef DES_UNROLL -#endif - -/* These default values were supplied by - * Peter Gutman <pgut001@cs.auckland.ac.nz> - * They are only used if nothing else has been defined */ -#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL) -/* Special defines which change the way the code is built depending on the - CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find - even newer MIPS CPU's, but at the moment one size fits all for - optimization options. Older Sparc's work better with only UNROLL, but - there's no way to tell at compile time what it is you're running on */ - -#if defined( sun ) /* Newer Sparc's */ -# define DES_PTR -# define DES_RISC1 -# define DES_UNROLL -#elif defined( __ultrix ) /* Older MIPS */ -# define DES_PTR -# define DES_RISC2 -# define DES_UNROLL -#elif defined( __osf1__ ) /* Alpha */ -# define DES_PTR -# define DES_RISC2 -#elif defined ( _AIX ) /* RS6000 */ - /* Unknown */ -#elif defined( __hpux ) /* HP-PA */ - /* Unknown */ -#elif defined( __aux ) /* 68K */ - /* Unknown */ -#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */ -# define DES_UNROLL -#elif defined( __sgi ) /* Newer MIPS */ -# define DES_PTR -# define DES_RISC2 -# define DES_UNROLL -#elif defined( i386 ) /* x86 boxes, should be gcc */ -# define DES_PTR -# define DES_RISC1 -# define DES_UNROLL -#endif /* Systems-specific speed defines */ -#endif - -#endif /* DES_DEFAULT_OPTIONS */ +#include "opensslconf.h" #ifdef MSDOS /* Visual C++ 2.1 (Windows NT/95) */ #include <stdlib.h> |