2 /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
7 /* OpenSSL was configured with the following options: */
9 if (@
{$config
{openssl_sys_defines
}}) {
10 foreach (@
{$config
{openssl_sys_defines
}}) {
11 $OUT
.= "#ifndef $_\n";
12 $OUT
.= "# define $_ 1\n";
18 #ifndef OPENSSL_DOING_MAKEDEPEND
21 if (@
{$config
{openssl_experimental_defines
}}) {
22 foreach (@
{$config
{openssl_experimental_defines
}}) {
23 (my $ex
= $_
) =~ s
/_NO_
/_EXPERIMENTAL_
/;
24 $OUT
.= "#ifndef $ex\n";
25 $OUT
.= "# ifndef $_\n";
26 $OUT
.= "# define $_\n";
34 foreach (@
{$config
{openssl_api_defines
}}) {
35 (my $macro
, my $value
) = $_
=~ /^(.*?)=(.*?)$
/;
36 $OUT
.= "#define OPENSSL_MIN_API $value\n";
40 if (@
{$config
{openssl_algorithm_defines
}}) {
41 foreach (@
{$config
{openssl_algorithm_defines
}}) {
42 $OUT
.= "#ifndef $_\n";
43 $OUT
.= "# define $_\n";
47 " /* no ciphers excluded */\n";
51 #endif /* OPENSSL_DOING_MAKEDEPEND */
54 if (@
{$config
{openssl_thread_defines
}}) {
55 foreach (@
{$config
{openssl_thread_defines
}}) {
56 $OUT
.= "#ifndef $_\n";
57 $OUT
.= "# define $_\n";
64 if (@
{$config
{openssl_other_defines
}}) {
65 foreach (@
{$config
{openssl_other_defines
}}) {
66 $OUT
.= "#ifndef $_\n";
67 $OUT
.= "# define $_\n";
74 /* The OPENSSL_NO_* macros are also defined as NO_* if the application
75 asks for it. This is a transient feature that is provided for those
76 who haven't had the time to do the appropriate changes in their
78 #ifdef OPENSSL_ALGORITHM_DEFINES
80 if (@
{$config
{openssl_algorithm_defines
}}) {
81 foreach (@
{$config
{openssl_algorithm_defines
}}) {
82 (my $ex
= $_
) =~ s
/^OPENSSL_
//;
83 $OUT
.= "# if defined($_) \&\& !defined($ex)\n";
84 $OUT
.= "# define $ex\n";
92 {- $target
{cpuid_obj
} ne
"mem_clr.o" ? "#define OPENSSL_CPUID_OBJ" : "" -}
95 * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the
96 * declarations of functions deprecated in or before <version>. Otherwise, they
97 * still won't see them if the library has been built to disable deprecated
100 #if defined(OPENSSL_NO_DEPRECATED)
101 # define DECLARE_DEPRECATED(f)
102 #elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
103 # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
105 # define DECLARE_DEPRECATED(f) f;
108 #ifndef OPENSSL_MIN_API
109 #define OPENSSL_MIN_API 0
112 #if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API
113 #undef OPENSSL_API_COMPAT
114 #define OPENSSL_API_COMPAT OPENSSL_MIN_API
117 #if OPENSSL_API_COMPAT < 0x10100000L
118 # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)
120 # define DEPRECATEDIN_1_1_0(f)
123 #if OPENSSL_API_COMPAT < 0x10000000L
124 # define DEPRECATEDIN_1_0_0(f) DECLARE_DEPRECATED(f)
126 # define DEPRECATEDIN_1_0_0(f)
129 #if OPENSSL_API_COMPAT < 0x00908000L
130 # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f)
132 # define DEPRECATEDIN_0_9_8(f)
135 /* Generate 80386 code? */
136 {- $config
{processor
} eq
"386" ? "#define" : "#undef" -} I386_ONLY
138 #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
139 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
140 #define ENGINESDIR {- quotify1($config{enginesdir}) -}
141 #define OPENSSLDIR {- quotify1($config{openssldir}) -}
145 #undef OPENSSL_UNISTD
146 #define OPENSSL_UNISTD {- $target{unistd} -}
148 #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
149 {- $config
{export_var_as_fn
} ? "#define OPENSSL_EXPORT_VAR_AS_FUNCTION" : "" -}
151 #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
152 #define IDEA_INT {- $config{idea_int} -}
155 #if defined(HEADER_MD2_H) && !defined(MD2_INT)
156 #define MD2_INT {- $config{md2_int} -}
159 #if defined(HEADER_RC2_H) && !defined(RC2_INT)
160 /* I need to put in a mod for the alpha - eay */
161 #define RC2_INT {- $config{rc2_int} -}
164 #if defined(HEADER_RC4_H)
165 #if !defined(RC4_INT)
166 /* using int types make the structure larger but make the code faster
167 * on most boxes I have tested - up to %20 faster. */
169 * I don't know what does "most" mean, but declaring "int" is a must on:
170 * - Intel P6 because partial register stalls are very expensive;
171 * - elder Alpha because it lacks byte load/store instructions;
173 #define RC4_INT {- $config{rc4_int} -}
175 #if !defined(RC4_CHUNK)
177 * This enables code handling data aligned at natural CPU word
178 * boundary. See crypto/rc4/rc4_enc.c for further details.
182 ? "#define RC4_CHUNK ".$config
{rc4_chunk
}
183 : "#undef RC4_CHUNK";
188 #ifndef OSSL_DES_LONG
189 /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
190 * %20 speed up (longs are 8 bytes, int's are 4). */
191 #ifndef OSSL_DES_LONG
192 #define OSSL_DES_LONG {- $config{des_int} -}
196 #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) && !defined(OPENSSL_SYS_UEFI)
197 #define CONFIG_HEADER_BN_H
198 {- $config
{bn_ll
} ? "#define" : "#undef" -} BN_LLONG
200 /* Should we define BN_DIV2W here? */
202 /* Only one for the following should be defined */
203 {- $config
{b64l
} ? "#define" : "#undef" -} SIXTY_FOUR_BIT_LONG
204 {- $config
{b64
} ? "#define" : "#undef" -} SIXTY_FOUR_BIT
205 {- $config
{b32
} ? "#define" : "#undef" -} THIRTY_TWO_BIT
208 #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
209 #define CONFIG_HEADER_RC4_LOCL_H
210 /* if this is defined data[i] is used instead of *data, this is a %20
212 {- $config
{rc4_idx
} ? "#define" : "#undef" -} RC4_INDEX
215 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
216 #define CONFIG_HEADER_BF_LOCL_H
218 if ($config
{bf_ptr
} == 0) {
220 } elsif ($config
{bf_ptr
} == 1) {
222 } elsif ($config
{bf_ptr
} == 2) {
226 #endif /* HEADER_BF_LOCL_H */
228 #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
229 #define CONFIG_HEADER_DES_LOCL_H
230 #ifndef DES_DEFAULT_OPTIONS
231 /* the following is tweaked from a config script, that is why it is a
232 * protected undef/define */
234 {- $config
{des_ptr
} ? "#define" : "#undef" -} DES_PTR
237 /* This helps C compiler generate the correct code for multiple functional
238 * units. It reduces register dependancies at the expense of 2 more
241 {- $config
{des_risc1
} ? "#define" : "#undef" -} DES_RISC1
245 {- $config
{des_risc2
} ? "#define" : "#undef" -} DES_RISC2
248 #if defined(DES_RISC1) && defined(DES_RISC2)
249 #error YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
252 /* Unroll the inner loop, this sometimes helps, sometimes hinders.
253 * Very mucy CPU dependant */
255 {- $config
{des_unroll
} ? "#define" : "#undef" -} DES_UNROLL
258 /* These default values were supplied by
259 * Peter Gutman <pgut001@cs.auckland.ac.nz>
260 * They are only used if nothing else has been defined */
261 #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
262 /* Special defines which change the way the code is built depending on the
263 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
264 even newer MIPS CPU's, but at the moment one size fits all for
265 optimization options. Older Sparc's work better with only UNROLL, but
266 there's no way to tell at compile time what it is you're running on */
268 #if defined(sparc) || defined(__sparc__) /* Newer Sparc's */
272 #elif defined( __ultrix ) /* Older MIPS */
276 #elif defined( __osf1__ ) /* Alpha */
279 #elif defined ( _AIX ) /* RS6000 */
281 #elif defined( __hpux ) /* HP-PA */
283 #elif defined( __aux ) /* 68K */
285 #elif defined( __sgi ) /* Newer MIPS */
289 #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
293 #endif /* Systems-specific speed defines */
296 #endif /* DES_DEFAULT_OPTIONS */
297 #endif /* HEADER_DES_LOCL_H */