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