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