xref: /freebsd/crypto/openssl/include/openssl/configuration.h (revision 1731fc70f7344af08db49b06c63c963fa12ee354)
1 /*
2  * WARNING: do not edit!
3  * Generated by configdata.pm from Configurations/common0.tmpl, Configurations/unix-Makefile.tmpl
4  * via Makefile.in
5  *
6  * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
7  *
8  * Licensed under the Apache License 2.0 (the "License").  You may not use
9  * this file except in compliance with the License.  You can obtain a copy
10  * in the file LICENSE in the source distribution or at
11  * https://www.openssl.org/source/license.html
12  */
13 
14 #ifndef OPENSSL_CONFIGURATION_H
15 #define OPENSSL_CONFIGURATION_H
16 #pragma once
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #ifdef OPENSSL_ALGORITHM_DEFINES
23 #error OPENSSL_ALGORITHM_DEFINES no longer supported
24 #endif
25 
26 /*
27  * OpenSSL was configured with the following options:
28  */
29 
30 /* clang-format off */
31 # define OPENSSL_CONFIGURED_API 30500
32 # ifndef OPENSSL_RAND_SEED_OS
33 #  define OPENSSL_RAND_SEED_OS
34 # endif
35 # ifndef OPENSSL_THREADS
36 #  define OPENSSL_THREADS
37 # endif
38 # ifndef OPENSSL_NO_ACVP_TESTS
39 #  define OPENSSL_NO_ACVP_TESTS
40 # endif
41 # ifndef OPENSSL_NO_AFALGENG
42 #  define OPENSSL_NO_AFALGENG
43 # endif
44 # ifndef OPENSSL_NO_ARIA
45 #  define OPENSSL_NO_ARIA
46 # endif
47 # ifndef OPENSSL_NO_ASAN
48 #  define OPENSSL_NO_ASAN
49 # endif
50 # ifndef OPENSSL_NO_BROTLI
51 #  define OPENSSL_NO_BROTLI
52 # endif
53 # ifndef OPENSSL_NO_BROTLI_DYNAMIC
54 #  define OPENSSL_NO_BROTLI_DYNAMIC
55 # endif
56 # ifndef OPENSSL_NO_CRYPTO_MDEBUG
57 #  define OPENSSL_NO_CRYPTO_MDEBUG
58 # endif
59 # ifndef OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
60 #  define OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
61 # endif
62 # ifndef OPENSSL_NO_DEMOS
63 #  define OPENSSL_NO_DEMOS
64 # endif
65 # ifndef OPENSSL_NO_EGD
66 #  define OPENSSL_NO_EGD
67 # endif
68 # ifndef OPENSSL_NO_EXTERNAL_TESTS
69 #  define OPENSSL_NO_EXTERNAL_TESTS
70 # endif
71 # ifndef OPENSSL_NO_FIPS_JITTER
72 #  define OPENSSL_NO_FIPS_JITTER
73 # endif
74 # ifndef OPENSSL_NO_FIPS_POST
75 #  define OPENSSL_NO_FIPS_POST
76 # endif
77 # ifndef OPENSSL_NO_FIPS_SECURITYCHECKS
78 #  define OPENSSL_NO_FIPS_SECURITYCHECKS
79 # endif
80 # ifndef OPENSSL_NO_FUZZ_AFL
81 #  define OPENSSL_NO_FUZZ_AFL
82 # endif
83 # ifndef OPENSSL_NO_FUZZ_LIBFUZZER
84 #  define OPENSSL_NO_FUZZ_LIBFUZZER
85 # endif
86 # ifndef OPENSSL_NO_H3DEMO
87 #  define OPENSSL_NO_H3DEMO
88 # endif
89 # ifndef OPENSSL_NO_HQINTEROP
90 #  define OPENSSL_NO_HQINTEROP
91 # endif
92 # ifndef OPENSSL_NO_IDEA
93 #  define OPENSSL_NO_IDEA
94 # endif
95 # ifndef OPENSSL_NO_JITTER
96 #  define OPENSSL_NO_JITTER
97 # endif
98 # ifndef OPENSSL_NO_MD2
99 #  define OPENSSL_NO_MD2
100 # endif
101 # ifndef OPENSSL_NO_MDC2
102 #  define OPENSSL_NO_MDC2
103 # endif
104 # ifndef OPENSSL_NO_MSAN
105 #  define OPENSSL_NO_MSAN
106 # endif
107 # ifndef OPENSSL_NO_PIE
108 #  define OPENSSL_NO_PIE
109 # endif
110 # ifndef OPENSSL_NO_RC5
111 #  define OPENSSL_NO_RC5
112 # endif
113 # ifndef OPENSSL_NO_SM2
114 #  define OPENSSL_NO_SM2
115 # endif
116 # ifndef OPENSSL_NO_SM3
117 #  define OPENSSL_NO_SM3
118 # endif
119 # ifndef OPENSSL_NO_SM4
120 #  define OPENSSL_NO_SM4
121 # endif
122 # ifndef OPENSSL_NO_SSL3
123 #  define OPENSSL_NO_SSL3
124 # endif
125 # ifndef OPENSSL_NO_SSL3_METHOD
126 #  define OPENSSL_NO_SSL3_METHOD
127 # endif
128 # ifndef OPENSSL_NO_SSLKEYLOG
129 #  define OPENSSL_NO_SSLKEYLOG
130 # endif
131 # ifndef OPENSSL_NO_TFO
132 #  define OPENSSL_NO_TFO
133 # endif
134 # ifndef OPENSSL_NO_TRACE
135 #  define OPENSSL_NO_TRACE
136 # endif
137 # ifndef OPENSSL_NO_UBSAN
138 #  define OPENSSL_NO_UBSAN
139 # endif
140 # ifndef OPENSSL_NO_UNIT_TEST
141 #  define OPENSSL_NO_UNIT_TEST
142 # endif
143 # ifndef OPENSSL_NO_UPLINK
144 #  define OPENSSL_NO_UPLINK
145 # endif
146 # ifndef OPENSSL_NO_WEAK_SSL_CIPHERS
147 #  define OPENSSL_NO_WEAK_SSL_CIPHERS
148 # endif
149 # ifndef OPENSSL_NO_WINSTORE
150 #  define OPENSSL_NO_WINSTORE
151 # endif
152 # ifndef OPENSSL_NO_ZLIB
153 #  define OPENSSL_NO_ZLIB
154 # endif
155 # ifndef OPENSSL_NO_ZLIB_DYNAMIC
156 #  define OPENSSL_NO_ZLIB_DYNAMIC
157 # endif
158 # ifndef OPENSSL_NO_ZSTD
159 #  define OPENSSL_NO_ZSTD
160 # endif
161 # ifndef OPENSSL_NO_ZSTD_DYNAMIC
162 #  define OPENSSL_NO_ZSTD_DYNAMIC
163 # endif
164 # ifndef OPENSSL_NO_STATIC_ENGINE
165 #  define OPENSSL_NO_STATIC_ENGINE
166 # endif
167 
168 /* clang-format on */
169 
170 /* Generate 80386 code? */
171 /* clang-format off */
172 # undef I386_ONLY
173 /* clang-format on */
174 
175 /*
176  * The following are cipher-specific, but are part of the public API.
177  */
178 #if !defined(OPENSSL_SYS_UEFI)
179     /* clang-format off */
180 #  undef BN_LLONG
181     /* clang-format on */
182     /* Only one for the following should be defined */
183     /* clang-format off */
184 #  define SIXTY_FOUR_BIT_LONG
185     /* clang-format on */
186     /* clang-format off */
187 #  undef SIXTY_FOUR_BIT
188     /* clang-format on */
189     /* clang-format off */
190 #  undef THIRTY_TWO_BIT
191 /* clang-format on */
192 #endif
193 
194 /* clang-format off */
195 # define RC4_INT unsigned int
196 /* clang-format on */
197 
198 #if defined(OPENSSL_NO_COMP) || (defined(OPENSSL_NO_BROTLI) && defined(OPENSSL_NO_ZSTD) && defined(OPENSSL_NO_ZLIB))
199 #define OPENSSL_NO_COMP_ALG
200 #else
201 #undef OPENSSL_NO_COMP_ALG
202 #endif
203 
204 #ifdef __cplusplus
205 }
206 #endif
207 
208 #endif /* OPENSSL_CONFIGURATION_H */
209 
210 /**
211  * OpenSSL's Configure script generates these values automatically for the host
212  * architecture, but FreeBSD provides values which are universal for all
213  * supported target architectures.
214  */
215 
216 #ifndef	__FREEBSD_CONFIGURATION_H__
217 #define	__FREEBSD_CONFIGURATION_H__
218 
219 # undef OPENSSL_NO_EC_NISTP_64_GCC_128
220 # if __SIZEOF_LONG__ == 4 || __BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__
221 #  ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
222 #   define OPENSSL_NO_EC_NISTP_64_GCC_128
223 #  endif
224 # endif
225 
226 # undef BN_LLONG
227 # undef	SIXTY_FOUR_BIT_LONG
228 # undef SIXTY_FOUR_BIT
229 # undef	THIRTY_TWO_BIT
230 # if !defined(OPENSSL_SYS_UEFI)
231 #  if __SIZEOF_LONG__ == 8
232 #   undef BN_LLONG
233 #   define SIXTY_FOUR_BIT_LONG
234 #   undef SIXTY_FOUR_BIT
235 #   undef THIRTY_TWO_BIT
236 #  elif __SIZEOF_LONG__ == 4
237 #   define BN_LLONG
238 #   undef SIXTY_FOUR_BIT_LONG
239 #   undef SIXTY_FOUR_BIT
240 #   define THIRTY_TWO_BIT
241 #  else
242 #   error Unsupported size of long
243 #  endif
244 # endif
245 
246 #endif  /* __FREEBSD_CONFIGURATION_H__ */
247