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