|
1 /* opensslconf.h */ |
|
2 /* WARNING: Generated automatically from opensslconf.h.in by Configure. */ |
|
3 |
|
4 /* OpenSSL was configured with the following options: */ |
|
5 #ifndef OPENSSL_DOING_MAKEDEPEND |
|
6 |
|
7 #ifndef OPENSSL_NO_BF |
|
8 # define OPENSSL_NO_BF |
|
9 #endif |
|
10 #ifndef OPENSSL_NO_CAST |
|
11 # define OPENSSL_NO_CAST |
|
12 #endif |
|
13 #ifndef OPENSSL_NO_CPUID_OBJ |
|
14 # define OPENSSL_NO_CPUID_OBJ |
|
15 #endif |
|
16 #ifndef OPENSSL_NO_DEPRECATED |
|
17 # define OPENSSL_NO_DEPRECATED |
|
18 #endif |
|
19 #ifndef OPENSSL_NO_EC |
|
20 # define OPENSSL_NO_EC |
|
21 #endif |
|
22 #ifndef OPENSSL_NO_ECDH |
|
23 # define OPENSSL_NO_ECDH |
|
24 #endif |
|
25 #ifndef OPENSSL_NO_ECDSA |
|
26 # define OPENSSL_NO_ECDSA |
|
27 #endif |
|
28 #ifndef OPENSSL_NO_GMP |
|
29 # define OPENSSL_NO_GMP |
|
30 #endif |
|
31 #ifndef OPENSSL_NO_IDEA |
|
32 # define OPENSSL_NO_IDEA |
|
33 #endif |
|
34 #ifndef OPENSSL_NO_KRB5 |
|
35 # define OPENSSL_NO_KRB5 |
|
36 #endif |
|
37 #ifndef OPENSSL_NO_MD4 |
|
38 # define OPENSSL_NO_MD4 |
|
39 #endif |
|
40 #ifndef OPENSSL_NO_MDC2 |
|
41 # define OPENSSL_NO_MDC2 |
|
42 #endif |
|
43 #ifndef OPENSSL_NO_RC5 |
|
44 # define OPENSSL_NO_RC5 |
|
45 #endif |
|
46 |
|
47 |
|
48 |
|
49 #ifndef OPENSSL_NO_RIPEMD |
|
50 # define OPENSSL_NO_RIPEMD |
|
51 #endif |
|
52 #ifndef OPENSSL_NO_STATIC_ENGINE |
|
53 # define OPENSSL_NO_STATIC_ENGINE |
|
54 #endif |
|
55 |
|
56 #endif /* OPENSSL_DOING_MAKEDEPEND */ |
|
57 #ifndef OPENSSL_THREADS |
|
58 # define OPENSSL_THREADS |
|
59 #endif |
|
60 #ifndef OPENSSL_NO_ASM |
|
61 # define OPENSSL_NO_ASM |
|
62 #endif |
|
63 #ifndef OPENSSL_NO_HW |
|
64 # define OPENSSL_NO_HW |
|
65 #endif |
|
66 #ifndef OPENSSL_NO_STATIC_ENGINE |
|
67 # define OPENSSL_NO_STATIC_ENGINE |
|
68 #endif |
|
69 |
|
70 /* The OPENSSL_NO_* macros are also defined as NO_* if the application |
|
71 asks for it. This is a transient feature that is provided for those |
|
72 who haven't had the time to do the appropriate changes in their |
|
73 applications. */ |
|
74 #ifdef OPENSSL_ALGORITHM_DEFINES |
|
75 # if defined(OPENSSL_NO_BF) && !defined(NO_BF) |
|
76 # define NO_BF |
|
77 # endif |
|
78 # if defined(OPENSSL_NO_CAST) && !defined(NO_CAST) |
|
79 # define NO_CAST |
|
80 # endif |
|
81 # if defined(OPENSSL_NO_CPUID_OBJ) && !defined(NO_CPUID_OBJ) |
|
82 # define NO_CPUID_OBJ |
|
83 # endif |
|
84 # if defined(OPENSSL_NO_DEPRECATED) && !defined(NO_DEPRECATED) |
|
85 # define NO_DEPRECATED |
|
86 # endif |
|
87 # if defined(OPENSSL_NO_EC) && !defined(NO_EC) |
|
88 # define NO_EC |
|
89 # endif |
|
90 # if defined(OPENSSL_NO_ECDH) && !defined(NO_ECDH) |
|
91 # define NO_ECDH |
|
92 # endif |
|
93 # if defined(OPENSSL_NO_ECDSA) && !defined(NO_ECDSA) |
|
94 # define NO_ECDSA |
|
95 # endif |
|
96 # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP) |
|
97 # define NO_GMP |
|
98 # endif |
|
99 # if defined(OPENSSL_NO_IDEA) && !defined(NO_IDEA) |
|
100 # define NO_IDEA |
|
101 # endif |
|
102 # if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5) |
|
103 # define NO_KRB5 |
|
104 # endif |
|
105 # if defined(OPENSSL_NO_MD4) && !defined(NO_MD4) |
|
106 # define NO_MD4 |
|
107 # endif |
|
108 # if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2) |
|
109 # define NO_MDC2 |
|
110 # endif |
|
111 # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5) |
|
112 # define NO_RC5 |
|
113 # endif |
|
114 |
|
115 # if defined(OPENSSL_NO_RIPEMD) && !defined(NO_RIPEMD) |
|
116 # define NO_RIPEMD |
|
117 # endif |
|
118 # if defined(OPENSSL_NO_STATIC_ENGINE) && !defined(NO_STATIC_ENGINE) |
|
119 # define NO_STATIC_ENGINE |
|
120 # endif |
|
121 #endif |
|
122 |
|
123 /* crypto/opensslconf.h.in */ |
|
124 |
|
125 /* Generate 80386 code? */ |
|
126 #undef I386_ONLY |
|
127 |
|
128 #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */ |
|
129 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) |
|
130 #define ENGINESDIR "/usr/local/ssl/lib/engines" |
|
131 #ifdef __SYMBIAN32__ |
|
132 #define OPENSSLDIR "C:" |
|
133 #else |
|
134 #define OPENSSLDIR "/usr/local/ssl" |
|
135 #endif |
|
136 |
|
137 #endif |
|
138 #endif |
|
139 |
|
140 #undef OPENSSL_UNISTD |
|
141 #define OPENSSL_UNISTD <unistd.h> |
|
142 |
|
143 #undef OPENSSL_EXPORT_VAR_AS_FUNCTION |
|
144 |
|
145 #if defined(HEADER_IDEA_H) && !defined(IDEA_INT) |
|
146 #define IDEA_INT unsigned int |
|
147 #endif |
|
148 |
|
149 #if defined(HEADER_MD2_H) && !defined(MD2_INT) |
|
150 #define MD2_INT unsigned int |
|
151 #endif |
|
152 |
|
153 #if defined(HEADER_RC2_H) && !defined(RC2_INT) |
|
154 /* I need to put in a mod for the alpha - eay */ |
|
155 #define RC2_INT unsigned int |
|
156 #endif |
|
157 |
|
158 #if defined(HEADER_RC4_H) |
|
159 #if !defined(RC4_INT) |
|
160 /* using int types make the structure larger but make the code faster |
|
161 * on most boxes I have tested - up to %20 faster. */ |
|
162 /* |
|
163 * I don't know what does "most" mean, but declaring "int" is a must on: |
|
164 * - Intel P6 because partial register stalls are very expensive; |
|
165 * - elder Alpha because it lacks byte load/store instructions; |
|
166 */ |
|
167 #define RC4_INT unsigned int |
|
168 #endif |
|
169 #if !defined(RC4_CHUNK) |
|
170 /* |
|
171 * This enables code handling data aligned at natural CPU word |
|
172 * boundary. See crypto/rc4/rc4_enc.c for further details. |
|
173 */ |
|
174 #undef RC4_CHUNK |
|
175 #endif |
|
176 #endif |
|
177 |
|
178 #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG) |
|
179 /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a |
|
180 * %20 speed up (longs are 8 bytes, int's are 4). */ |
|
181 #ifndef DES_LONG |
|
182 #define DES_LONG unsigned long |
|
183 #endif |
|
184 #endif |
|
185 |
|
186 #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) |
|
187 #define CONFIG_HEADER_BN_H |
|
188 #define BN_LLONG |
|
189 |
|
190 /* Should we define BN_DIV2W here? */ |
|
191 |
|
192 /* Only one for the following should be defined */ |
|
193 /* The prime number generation stuff may not work when |
|
194 * EIGHT_BIT but I don't care since I've only used this mode |
|
195 * for debuging the bignum libraries */ |
|
196 #undef SIXTY_FOUR_BIT_LONG |
|
197 #undef SIXTY_FOUR_BIT |
|
198 #define THIRTY_TWO_BIT |
|
199 #undef SIXTEEN_BIT |
|
200 #undef EIGHT_BIT |
|
201 #endif |
|
202 |
|
203 #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H) |
|
204 #define CONFIG_HEADER_RC4_LOCL_H |
|
205 /* if this is defined data[i] is used instead of *data, this is a %20 |
|
206 * speedup on x86 */ |
|
207 #define RC4_INDEX |
|
208 #endif |
|
209 |
|
210 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H) |
|
211 #define CONFIG_HEADER_BF_LOCL_H |
|
212 #undef BF_PTR |
|
213 #endif /* HEADER_BF_LOCL_H */ |
|
214 |
|
215 #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H) |
|
216 #define CONFIG_HEADER_DES_LOCL_H |
|
217 #ifndef DES_DEFAULT_OPTIONS |
|
218 /* the following is tweaked from a config script, that is why it is a |
|
219 * protected undef/define */ |
|
220 #ifndef DES_PTR |
|
221 #define DES_PTR |
|
222 #endif |
|
223 |
|
224 /* This helps C compiler generate the correct code for multiple functional |
|
225 * units. It reduces register dependancies at the expense of 2 more |
|
226 * registers */ |
|
227 #ifndef DES_RISC1 |
|
228 #define DES_RISC1 |
|
229 #endif |
|
230 |
|
231 #ifndef DES_RISC2 |
|
232 #undef DES_RISC2 |
|
233 #endif |
|
234 |
|
235 #if defined(DES_RISC1) && defined(DES_RISC2) |
|
236 YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! |
|
237 #endif |
|
238 |
|
239 /* Unroll the inner loop, this sometimes helps, sometimes hinders. |
|
240 * Very mucy CPU dependant */ |
|
241 #ifndef DES_UNROLL |
|
242 #define DES_UNROLL |
|
243 #endif |
|
244 |
|
245 /* These default values were supplied by |
|
246 * Peter Gutman <pgut001@cs.auckland.ac.nz> |
|
247 * They are only used if nothing else has been defined */ |
|
248 #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL) |
|
249 /* Special defines which change the way the code is built depending on the |
|
250 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find |
|
251 even newer MIPS CPU's, but at the moment one size fits all for |
|
252 optimization options. Older Sparc's work better with only UNROLL, but |
|
253 there's no way to tell at compile time what it is you're running on */ |
|
254 |
|
255 #if defined( sun ) /* Newer Sparc's */ |
|
256 # define DES_PTR |
|
257 # define DES_RISC1 |
|
258 # define DES_UNROLL |
|
259 #elif defined( __ultrix ) /* Older MIPS */ |
|
260 # define DES_PTR |
|
261 # define DES_RISC2 |
|
262 # define DES_UNROLL |
|
263 #elif defined( __osf1__ ) /* Alpha */ |
|
264 # define DES_PTR |
|
265 # define DES_RISC2 |
|
266 #elif defined ( _AIX ) /* RS6000 */ |
|
267 /* Unknown */ |
|
268 #elif defined( __hpux ) /* HP-PA */ |
|
269 /* Unknown */ |
|
270 #elif defined( __aux ) /* 68K */ |
|
271 /* Unknown */ |
|
272 #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */ |
|
273 # define DES_UNROLL |
|
274 #elif defined( __sgi ) /* Newer MIPS */ |
|
275 # define DES_PTR |
|
276 # define DES_RISC2 |
|
277 # define DES_UNROLL |
|
278 #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */ |
|
279 # define DES_PTR |
|
280 # define DES_RISC1 |
|
281 # define DES_UNROLL |
|
282 #endif /* Systems-specific speed defines */ |
|
283 #endif |
|
284 |
|
285 #endif /* DES_DEFAULT_OPTIONS */ |
|
286 #endif /* HEADER_DES_LOCL_H */ |