1 | /* |
2 | * WARNING: do not edit! |
3 | * Generated by Makefile from include/openssl/opensslconf.h.in |
4 | * |
5 | * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved. |
6 | * |
7 | * Licensed under the OpenSSL license (the "License"). You may not use |
8 | * this file except in compliance with the License. You can obtain a copy |
9 | * in the file LICENSE in the source distribution or at |
10 | * https://www.openssl.org/source/license.html |
11 | */ |
12 | |
13 | #include <openssl/opensslv.h> |
14 | |
15 | #ifdef __cplusplus |
16 | extern "C" { |
17 | #endif |
18 | |
19 | #ifdef OPENSSL_ALGORITHM_DEFINES |
20 | # error OPENSSL_ALGORITHM_DEFINES no longer supported |
21 | #endif |
22 | |
23 | /* |
24 | * OpenSSL was configured with the following options: |
25 | */ |
26 | |
27 | #ifndef OPENSSL_NO_MD2 |
28 | # define OPENSSL_NO_MD2 |
29 | #endif |
30 | #ifndef OPENSSL_NO_RC5 |
31 | # define OPENSSL_NO_RC5 |
32 | #endif |
33 | #ifndef OPENSSL_THREADS |
34 | # define OPENSSL_THREADS |
35 | #endif |
36 | #ifndef OPENSSL_RAND_SEED_OS |
37 | # define OPENSSL_RAND_SEED_OS |
38 | #endif |
39 | #ifndef OPENSSL_NO_ASAN |
40 | # define OPENSSL_NO_ASAN |
41 | #endif |
42 | #ifndef OPENSSL_NO_CRYPTO_MDEBUG |
43 | # define OPENSSL_NO_CRYPTO_MDEBUG |
44 | #endif |
45 | #ifndef OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE |
46 | # define OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE |
47 | #endif |
48 | #if 0 |
49 | # ifndef OPENSSL_NO_DEVCRYPTOENG |
50 | # define OPENSSL_NO_DEVCRYPTOENG |
51 | # endif |
52 | #endif |
53 | #if !defined(_LP64) || defined(__sparc64__) |
54 | # ifndef OPENSSL_NO_EC_NISTP_64_GCC_128 |
55 | # define OPENSSL_NO_EC_NISTP_64_GCC_128 |
56 | # endif |
57 | #endif |
58 | #ifndef OPENSSL_NO_EGD |
59 | # define OPENSSL_NO_EGD |
60 | #endif |
61 | #ifndef OPENSSL_NO_EXTERNAL_TESTS |
62 | # define OPENSSL_NO_EXTERNAL_TESTS |
63 | #endif |
64 | #ifndef OPENSSL_NO_FUZZ_AFL |
65 | # define OPENSSL_NO_FUZZ_AFL |
66 | #endif |
67 | #ifndef OPENSSL_NO_FUZZ_LIBFUZZER |
68 | # define OPENSSL_NO_FUZZ_LIBFUZZER |
69 | #endif |
70 | #ifndef OPENSSL_NO_HEARTBEATS |
71 | # define OPENSSL_NO_HEARTBEATS |
72 | #endif |
73 | #ifndef OPENSSL_NO_MSAN |
74 | # define OPENSSL_NO_MSAN |
75 | #endif |
76 | #ifndef OPENSSL_NO_SCTP |
77 | # define OPENSSL_NO_SCTP |
78 | #endif |
79 | #ifndef OPENSSL_NO_SSL_TRACE |
80 | # define OPENSSL_NO_SSL_TRACE |
81 | #endif |
82 | #ifndef OPENSSL_NO_SSL3 |
83 | # define OPENSSL_NO_SSL3 |
84 | #endif |
85 | #ifndef OPENSSL_NO_SSL3_METHOD |
86 | # define OPENSSL_NO_SSL3_METHOD |
87 | #endif |
88 | #ifndef OPENSSL_NO_UBSAN |
89 | # define OPENSSL_NO_UBSAN |
90 | #endif |
91 | #ifndef OPENSSL_NO_UNIT_TEST |
92 | # define OPENSSL_NO_UNIT_TEST |
93 | #endif |
94 | #ifndef OPENSSL_NO_WEAK_SSL_CIPHERS |
95 | # define OPENSSL_NO_WEAK_SSL_CIPHERS |
96 | #endif |
97 | #ifndef OPENSSL_NO_STATIC_ENGINE |
98 | # define OPENSSL_NO_STATIC_ENGINE |
99 | #endif |
100 | #ifndef OPENSSL_NO_AFALGENG |
101 | # define OPENSSL_NO_AFALGENG |
102 | #endif |
103 | |
104 | |
105 | /* |
106 | * Sometimes OPENSSSL_NO_xxx ends up with an empty file and some compilers |
107 | * don't like that. This will hopefully silence them. |
108 | */ |
109 | #define NON_EMPTY_TRANSLATION_UNIT static void *dummy = &dummy; |
110 | |
111 | /* |
112 | * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the |
113 | * declarations of functions deprecated in or before <version>. Otherwise, they |
114 | * still won't see them if the library has been built to disable deprecated |
115 | * functions. |
116 | */ |
117 | #ifndef DECLARE_DEPRECATED |
118 | # define DECLARE_DEPRECATED(f) f; |
119 | # ifdef __GNUC__ |
120 | # if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0) |
121 | # undef DECLARE_DEPRECATED |
122 | # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); |
123 | # endif |
124 | # endif |
125 | #endif |
126 | |
127 | #ifndef OPENSSL_FILE |
128 | # ifdef OPENSSL_NO_FILENAMES |
129 | # define OPENSSL_FILE "" |
130 | # define OPENSSL_LINE 0 |
131 | # else |
132 | # define OPENSSL_FILE __FILE__ |
133 | # define OPENSSL_LINE __LINE__ |
134 | # endif |
135 | #endif |
136 | |
137 | #ifndef OPENSSL_MIN_API |
138 | # define OPENSSL_MIN_API 0 |
139 | #endif |
140 | |
141 | #if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API |
142 | # undef OPENSSL_API_COMPAT |
143 | # define OPENSSL_API_COMPAT OPENSSL_MIN_API |
144 | #endif |
145 | |
146 | /* |
147 | * Do not deprecate things to be deprecated in version 1.2.0 before the |
148 | * OpenSSL version number matches. |
149 | */ |
150 | #if OPENSSL_VERSION_NUMBER < 0x10200000L |
151 | # define DEPRECATEDIN_1_2_0(f) f; |
152 | #elif OPENSSL_API_COMPAT < 0x10200000L |
153 | # define DEPRECATEDIN_1_2_0(f) DECLARE_DEPRECATED(f) |
154 | #else |
155 | # define DEPRECATEDIN_1_2_0(f) |
156 | #endif |
157 | |
158 | #if OPENSSL_API_COMPAT < 0x10100000L |
159 | # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f) |
160 | #else |
161 | # define DEPRECATEDIN_1_1_0(f) |
162 | #endif |
163 | |
164 | #if OPENSSL_API_COMPAT < 0x10000000L |
165 | # define DEPRECATEDIN_1_0_0(f) DECLARE_DEPRECATED(f) |
166 | #else |
167 | # define DEPRECATEDIN_1_0_0(f) |
168 | #endif |
169 | |
170 | #if OPENSSL_API_COMPAT < 0x00908000L |
171 | # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f) |
172 | #else |
173 | # define DEPRECATEDIN_0_9_8(f) |
174 | #endif |
175 | |
176 | /* Generate 80386 code? */ |
177 | #undef I386_ONLY |
178 | |
179 | #undef OPENSSL_UNISTD |
180 | #define OPENSSL_UNISTD <unistd.h> |
181 | |
182 | #undef OPENSSL_EXPORT_VAR_AS_FUNCTION |
183 | |
184 | /* |
185 | * The following are cipher-specific, but are part of the public API. |
186 | */ |
187 | #if !defined(OPENSSL_SYS_UEFI) |
188 | # undef BN_LLONG |
189 | /* Only one for the following should be defined */ |
190 | # if _LP64 |
191 | # define SIXTY_FOUR_BIT_LONG |
192 | # elif _ILP64 |
193 | # define SIXTY_FOUR_BIT |
194 | # else |
195 | # define THIRTY_TWO_BIT |
196 | # endif |
197 | #endif |
198 | |
199 | #define RC4_INT unsigned int |
200 | |
201 | #ifdef __cplusplus |
202 | } |
203 | #endif |
204 | |