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