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