1 /* crypto/opensslconf.h.in */
4 * Applications should use -DOPENSSL_USE_DEPRECATED to enable access to
5 * deprecated functions. But if the library has been built to disable
6 * deprecated functions then this will not work
8 #if defined(OPENSSL_NO_DEPRECATED) && defined(OPENSSL_USE_DEPRECATED)
9 #error "OPENSSL_USE_DEPRECATED has been defined, but OpenSSL has been built without support for deprecated functions"
12 /* Test for support for deprecated attribute */
14 (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
15 #define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated))
17 #define DECLARE_DEPRECATED(f) f
20 /* Generate 80386 code? */
23 #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
24 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
25 #define ENGINESDIR "/usr/local/lib/engines"
26 #define OPENSSLDIR "/usr/local/ssl"
31 #define OPENSSL_UNISTD <unistd.h>
33 #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
35 #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
36 #define IDEA_INT unsigned int
39 #if defined(HEADER_MD2_H) && !defined(MD2_INT)
40 #define MD2_INT unsigned int
43 #if defined(HEADER_RC2_H) && !defined(RC2_INT)
44 /* I need to put in a mod for the alpha - eay */
45 #define RC2_INT unsigned int
48 #if defined(HEADER_RC4_H)
50 /* using int types make the structure larger but make the code faster
51 * on most boxes I have tested - up to %20 faster. */
53 * I don't know what does "most" mean, but declaring "int" is a must on:
54 * - Intel P6 because partial register stalls are very expensive;
55 * - elder Alpha because it lacks byte load/store instructions;
57 #define RC4_INT unsigned int
59 #if !defined(RC4_CHUNK)
61 * This enables code handling data aligned at natural CPU word
62 * boundary. See crypto/rc4/rc4_enc.c for further details.
68 #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
69 /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
70 * %20 speed up (longs are 8 bytes, int's are 4). */
72 #define DES_LONG unsigned long
76 #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
77 #define CONFIG_HEADER_BN_H
80 /* Should we define BN_DIV2W here? */
82 /* Only one for the following should be defined */
83 #undef SIXTY_FOUR_BIT_LONG
85 #define THIRTY_TWO_BIT
88 #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
89 #define CONFIG_HEADER_RC4_LOCL_H
90 /* if this is defined data[i] is used instead of *data, this is a %20
95 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
96 #define CONFIG_HEADER_BF_LOCL_H
98 #endif /* HEADER_BF_LOCL_H */
100 #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
101 #define CONFIG_HEADER_DES_LOCL_H
102 #ifndef DES_DEFAULT_OPTIONS
103 /* the following is tweaked from a config script, that is why it is a
104 * protected undef/define */
109 /* This helps C compiler generate the correct code for multiple functional
110 * units. It reduces register dependancies at the expense of 2 more
120 #if defined(DES_RISC1) && defined(DES_RISC2)
121 YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
124 /* Unroll the inner loop, this sometimes helps, sometimes hinders.
125 * Very mucy CPU dependant */
130 /* These default values were supplied by
131 * Peter Gutman <pgut001@cs.auckland.ac.nz>
132 * They are only used if nothing else has been defined */
133 #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
134 /* Special defines which change the way the code is built depending on the
135 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
136 even newer MIPS CPU's, but at the moment one size fits all for
137 optimization options. Older Sparc's work better with only UNROLL, but
138 there's no way to tell at compile time what it is you're running on */
140 #if defined( sun ) /* Newer Sparc's */
144 #elif defined( __ultrix ) /* Older MIPS */
148 #elif defined( __osf1__ ) /* Alpha */
151 #elif defined ( _AIX ) /* RS6000 */
153 #elif defined( __hpux ) /* HP-PA */
155 #elif defined( __aux ) /* 68K */
157 #elif defined( __sgi ) /* Newer MIPS */
161 #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
165 #endif /* Systems-specific speed defines */
168 #endif /* DES_DEFAULT_OPTIONS */
169 #endif /* HEADER_DES_LOCL_H */