3 * WARNING: do not edit!
4 * Generated by Makefile from include/openssl/opensslconf.h.in
6 * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
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
14 #include <openssl/opensslv.h>
20 #ifdef OPENSSL_ALGORITHM_DEFINES
21 # error OPENSSL_ALGORITHM_DEFINES no longer supported
25 * OpenSSL was configured with the following options:
28 #ifndef OPENSSL_NO_MD2
29 # define OPENSSL_NO_MD2
31 #ifndef OPENSSL_THREADS
32 # define OPENSSL_THREADS
34 #ifndef OPENSSL_RAND_SEED_OS
35 # define OPENSSL_RAND_SEED_OS
37 #ifndef OPENSSL_NO_ASAN
38 # define OPENSSL_NO_ASAN
40 %%NO_ASM%%#ifndef OPENSSL_NO_ASM
41 %%NO_ASM%%# define OPENSSL_NO_ASM
43 #ifndef OPENSSL_NO_CRYPTO_MDEBUG
44 # define OPENSSL_NO_CRYPTO_MDEBUG
46 #ifndef OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
47 # define OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
49 #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
50 # define OPENSSL_NO_EC_NISTP_64_GCC_128
52 #ifndef OPENSSL_NO_EGD
53 # define OPENSSL_NO_EGD
55 #ifndef OPENSSL_NO_EXTERNAL_TESTS
56 # define OPENSSL_NO_EXTERNAL_TESTS
58 #ifndef OPENSSL_NO_FUZZ_AFL
59 # define OPENSSL_NO_FUZZ_AFL
61 #ifndef OPENSSL_NO_FUZZ_LIBFUZZER
62 # define OPENSSL_NO_FUZZ_LIBFUZZER
64 #ifndef OPENSSL_NO_HEARTBEATS
65 # define OPENSSL_NO_HEARTBEATS
67 #ifndef OPENSSL_NO_MSAN
68 # define OPENSSL_NO_MSAN
70 #ifndef OPENSSL_NO_SCTP
71 # define OPENSSL_NO_SCTP
73 #ifndef OPENSSL_NO_SSL_TRACE
74 # define OPENSSL_NO_SSL_TRACE
76 #ifndef OPENSSL_NO_UBSAN
77 # define OPENSSL_NO_UBSAN
79 #ifndef OPENSSL_NO_UNIT_TEST
80 # define OPENSSL_NO_UNIT_TEST
82 #ifndef OPENSSL_NO_WEAK_SSL_CIPHERS
83 # define OPENSSL_NO_WEAK_SSL_CIPHERS
85 #ifndef OPENSSL_NO_STATIC_ENGINE
86 # define OPENSSL_NO_STATIC_ENGINE
88 #ifndef OPENSSL_NO_AFALGENG
89 # define OPENSSL_NO_AFALGENG
94 * Sometimes OPENSSSL_NO_xxx ends up with an empty file and some compilers
95 * don't like that. This will hopefully silence them.
97 #define NON_EMPTY_TRANSLATION_UNIT static void *dummy = &dummy;
100 * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the
101 * declarations of functions deprecated in or before <version>. Otherwise, they
102 * still won't see them if the library has been built to disable deprecated
105 #ifndef DECLARE_DEPRECATED
106 # define DECLARE_DEPRECATED(f) f;
108 # if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
109 # undef DECLARE_DEPRECATED
110 # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
116 # ifdef OPENSSL_NO_FILENAMES
117 # define OPENSSL_FILE ""
118 # define OPENSSL_LINE 0
120 # define OPENSSL_FILE __FILE__
121 # define OPENSSL_LINE __LINE__
125 #ifndef OPENSSL_MIN_API
126 # define OPENSSL_MIN_API 0
129 #if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API
130 # undef OPENSSL_API_COMPAT
131 # define OPENSSL_API_COMPAT OPENSSL_MIN_API
135 * Do not deprecate things to be deprecated in version 1.2.0 before the
136 * OpenSSL version number matches.
138 #if OPENSSL_VERSION_NUMBER < 0x10200000L
139 # define DEPRECATEDIN_1_2_0(f) f;
140 #elif OPENSSL_API_COMPAT < 0x10200000L
141 # define DEPRECATEDIN_1_2_0(f) DECLARE_DEPRECATED(f)
143 # define DEPRECATEDIN_1_2_0(f)
146 #if OPENSSL_API_COMPAT < 0x10100000L
147 # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)
149 # define DEPRECATEDIN_1_1_0(f)
152 #if OPENSSL_API_COMPAT < 0x10000000L
153 # define DEPRECATEDIN_1_0_0(f) DECLARE_DEPRECATED(f)
155 # define DEPRECATEDIN_1_0_0(f)
158 #if OPENSSL_API_COMPAT < 0x00908000L
159 # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f)
161 # define DEPRECATEDIN_0_9_8(f)
164 /* Generate 80386 code? */
167 #undef OPENSSL_UNISTD
168 #define OPENSSL_UNISTD <unistd.h>
170 #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
173 * The following are cipher-specific, but are part of the public API.
175 #if !defined(OPENSSL_SYS_UEFI)
178 /* Only one for the following should be defined */
179 # define SIXTY_FOUR_BIT_LONG
180 # undef SIXTY_FOUR_BIT
181 # undef THIRTY_TWO_BIT
184 /* Only one for the following should be defined */
185 # undef SIXTY_FOUR_BIT_LONG
186 # undef SIXTY_FOUR_BIT
187 # define THIRTY_TWO_BIT
191 #define RC4_INT unsigned int