Home | History | Annotate | Line # | Download | only in openssl
      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 /*
     54  * XXX
     55  * This seems broken on big-endian or strictly-aligned architectures.
     56  */
     57 #if !defined(_LP64) || \
     58     defined(__AARCH64EB__) || defined(__sparc64__)
     59 # ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
     60 #  define OPENSSL_NO_EC_NISTP_64_GCC_128
     61 # endif
     62 #endif
     63 #ifndef OPENSSL_NO_EGD
     64 # define OPENSSL_NO_EGD
     65 #endif
     66 #ifndef OPENSSL_NO_EXTERNAL_TESTS
     67 # define OPENSSL_NO_EXTERNAL_TESTS
     68 #endif
     69 #ifndef OPENSSL_NO_FUZZ_AFL
     70 # define OPENSSL_NO_FUZZ_AFL
     71 #endif
     72 #ifndef OPENSSL_NO_FUZZ_LIBFUZZER
     73 # define OPENSSL_NO_FUZZ_LIBFUZZER
     74 #endif
     75 #ifndef OPENSSL_NO_HEARTBEATS
     76 # define OPENSSL_NO_HEARTBEATS
     77 #endif
     78 #ifndef OPENSSL_NO_MSAN
     79 # define OPENSSL_NO_MSAN
     80 #endif
     81 #ifndef OPENSSL_NO_SCTP
     82 # define OPENSSL_NO_SCTP
     83 #endif
     84 #ifndef OPENSSL_NO_SSL_TRACE
     85 # define OPENSSL_NO_SSL_TRACE
     86 #endif
     87 #ifndef OPENSSL_NO_SSL3
     88 # define OPENSSL_NO_SSL3
     89 #endif
     90 #ifndef OPENSSL_NO_SSL3_METHOD
     91 # define OPENSSL_NO_SSL3_METHOD
     92 #endif
     93 #ifndef OPENSSL_NO_UBSAN
     94 # define OPENSSL_NO_UBSAN
     95 #endif
     96 #ifndef OPENSSL_NO_UNIT_TEST
     97 # define OPENSSL_NO_UNIT_TEST
     98 #endif
     99 #ifndef OPENSSL_NO_WEAK_SSL_CIPHERS
    100 # define OPENSSL_NO_WEAK_SSL_CIPHERS
    101 #endif
    102 #ifndef OPENSSL_NO_STATIC_ENGINE
    103 # define OPENSSL_NO_STATIC_ENGINE
    104 #endif
    105 #ifndef OPENSSL_NO_AFALGENG
    106 # define OPENSSL_NO_AFALGENG
    107 #endif
    108 
    109 
    110 /*
    111  * Sometimes OPENSSSL_NO_xxx ends up with an empty file and some compilers
    112  * don't like that.  This will hopefully silence them.
    113  */
    114 #define NON_EMPTY_TRANSLATION_UNIT static void *dummy = &dummy;
    115 
    116 /*
    117  * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the
    118  * declarations of functions deprecated in or before <version>. Otherwise, they
    119  * still won't see them if the library has been built to disable deprecated
    120  * functions.
    121  */
    122 #ifndef DECLARE_DEPRECATED
    123 # define DECLARE_DEPRECATED(f)   f;
    124 # ifdef __GNUC__
    125 #  if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
    126 #   undef DECLARE_DEPRECATED
    127 #   define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));
    128 #  endif
    129 # endif
    130 #endif
    131 
    132 #ifndef OPENSSL_FILE
    133 # ifdef OPENSSL_NO_FILENAMES
    134 #  define OPENSSL_FILE ""
    135 #  define OPENSSL_LINE 0
    136 # else
    137 #  define OPENSSL_FILE __FILE__
    138 #  define OPENSSL_LINE __LINE__
    139 # endif
    140 #endif
    141 
    142 #ifndef OPENSSL_MIN_API
    143 # define OPENSSL_MIN_API 0
    144 #endif
    145 
    146 #if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API
    147 # undef OPENSSL_API_COMPAT
    148 # define OPENSSL_API_COMPAT OPENSSL_MIN_API
    149 #endif
    150 
    151 /*
    152  * Do not deprecate things to be deprecated in version 1.2.0 before the
    153  * OpenSSL version number matches.
    154  */
    155 #if OPENSSL_VERSION_NUMBER < 0x10200000L
    156 # define DEPRECATEDIN_1_2_0(f)   f;
    157 #elif OPENSSL_API_COMPAT < 0x10200000L
    158 # define DEPRECATEDIN_1_2_0(f)   DECLARE_DEPRECATED(f)
    159 #else
    160 # define DEPRECATEDIN_1_2_0(f)
    161 #endif
    162 
    163 #if OPENSSL_API_COMPAT < 0x10100000L
    164 # define DEPRECATEDIN_1_1_0(f)   DECLARE_DEPRECATED(f)
    165 #else
    166 # define DEPRECATEDIN_1_1_0(f)
    167 #endif
    168 
    169 #if OPENSSL_API_COMPAT < 0x10000000L
    170 # define DEPRECATEDIN_1_0_0(f)   DECLARE_DEPRECATED(f)
    171 #else
    172 # define DEPRECATEDIN_1_0_0(f)
    173 #endif
    174 
    175 #if OPENSSL_API_COMPAT < 0x00908000L
    176 # define DEPRECATEDIN_0_9_8(f)   DECLARE_DEPRECATED(f)
    177 #else
    178 # define DEPRECATEDIN_0_9_8(f)
    179 #endif
    180 
    181 /* Generate 80386 code? */
    182 #undef I386_ONLY
    183 
    184 #undef OPENSSL_UNISTD
    185 #define OPENSSL_UNISTD <unistd.h>
    186 
    187 #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
    188 
    189 /*
    190  * The following are cipher-specific, but are part of the public API.
    191  */
    192 #if !defined(OPENSSL_SYS_UEFI)
    193 # undef BN_LLONG
    194 /* Only one for the following should be defined */
    195 # if _LP64
    196 #  define SIXTY_FOUR_BIT_LONG
    197 # elif _ILP64
    198 #  define SIXTY_FOUR_BIT
    199 # else
    200 #  define THIRTY_TWO_BIT
    201 # endif
    202 #endif
    203 
    204 #define RC4_INT unsigned int
    205 
    206 #ifdef  __cplusplus
    207 }
    208 #endif
    209