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