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