OSDN Git Service

Update OpenSSL to 1.1.0.
[ffftp/ffftp.git] / contrib / openssl / include / openssl / opensslconf.h
index 33b32c8..65c821c 100644 (file)
@@ -1,51 +1,77 @@
-/* opensslconf.h */\r
-/* WARNING: Generated automatically from opensslconf.h.in by Configure. */\r
+/*\r
+ * WARNING: do not edit!\r
+ * Generated by makefile from include\openssl\opensslconf.h.in\r
+ *\r
+ * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.\r
+ *\r
+ * Licensed under the OpenSSL license (the "License").  You may not use\r
+ * this file except in compliance with the License.  You can obtain a copy\r
+ * in the file LICENSE in the source distribution or at\r
+ * https://www.openssl.org/source/license.html\r
+ */\r
 \r
 #ifdef  __cplusplus\r
 extern "C" {\r
 #endif\r
-/* OpenSSL was configured with the following options: */\r
-#ifndef OPENSSL_SYSNAME_WIN32\r
-# define OPENSSL_SYSNAME_WIN32\r
+\r
+#ifdef OPENSSL_ALGORITHM_DEFINES\r
+# error OPENSSL_ALGORITHM_DEFINES no longer supported\r
 #endif\r
-#ifndef OPENSSL_DOING_MAKEDEPEND\r
 \r
+/*\r
+ * OpenSSL was configured with the following options:\r
+ */\r
 \r
+#ifndef OPENSSL_SYS_WIN32\r
+# define OPENSSL_SYS_WIN32 1\r
+#endif\r
+#ifndef OPENSSL_NO_ASAN\r
+# define OPENSSL_NO_ASAN\r
+#endif\r
+#ifndef OPENSSL_NO_CRYPTO_MDEBUG\r
+# define OPENSSL_NO_CRYPTO_MDEBUG\r
+#endif\r
+#ifndef OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE\r
+# define OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE\r
+#endif\r
 #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128\r
 # define OPENSSL_NO_EC_NISTP_64_GCC_128\r
 #endif\r
-#ifndef OPENSSL_NO_GMP\r
-# define OPENSSL_NO_GMP\r
+#ifndef OPENSSL_NO_EGD\r
+# define OPENSSL_NO_EGD\r
 #endif\r
-#ifndef OPENSSL_NO_JPAKE\r
-# define OPENSSL_NO_JPAKE\r
+#ifndef OPENSSL_NO_FUZZ_AFL\r
+# define OPENSSL_NO_FUZZ_AFL\r
 #endif\r
-#ifndef OPENSSL_NO_KRB5\r
-# define OPENSSL_NO_KRB5\r
+#ifndef OPENSSL_NO_FUZZ_LIBFUZZER\r
+# define OPENSSL_NO_FUZZ_LIBFUZZER\r
 #endif\r
-#ifndef OPENSSL_NO_LIBUNBOUND\r
-# define OPENSSL_NO_LIBUNBOUND\r
+#ifndef OPENSSL_NO_HEARTBEATS\r
+# define OPENSSL_NO_HEARTBEATS\r
 #endif\r
 #ifndef OPENSSL_NO_MD2\r
 # define OPENSSL_NO_MD2\r
 #endif\r
+#ifndef OPENSSL_NO_MSAN\r
+# define OPENSSL_NO_MSAN\r
+#endif\r
 #ifndef OPENSSL_NO_RC5\r
 # define OPENSSL_NO_RC5\r
 #endif\r
-#ifndef OPENSSL_NO_RFC3779\r
-# define OPENSSL_NO_RFC3779\r
-#endif\r
 #ifndef OPENSSL_NO_SCTP\r
 # define OPENSSL_NO_SCTP\r
 #endif\r
 #ifndef OPENSSL_NO_SSL_TRACE\r
 # define OPENSSL_NO_SSL_TRACE\r
 #endif\r
-#ifndef OPENSSL_NO_SSL2\r
-# define OPENSSL_NO_SSL2\r
+#ifndef OPENSSL_NO_SSL3\r
+# define OPENSSL_NO_SSL3\r
 #endif\r
-#ifndef OPENSSL_NO_STORE\r
-# define OPENSSL_NO_STORE\r
+#ifndef OPENSSL_NO_SSL3_METHOD\r
+# define OPENSSL_NO_SSL3_METHOD\r
+#endif\r
+#ifndef OPENSSL_NO_UBSAN\r
+# define OPENSSL_NO_UBSAN\r
 #endif\r
 #ifndef OPENSSL_NO_UNIT_TEST\r
 # define OPENSSL_NO_UNIT_TEST\r
@@ -53,220 +79,97 @@ extern "C" {
 #ifndef OPENSSL_NO_WEAK_SSL_CIPHERS\r
 # define OPENSSL_NO_WEAK_SSL_CIPHERS\r
 #endif\r
-\r
-#endif /* OPENSSL_DOING_MAKEDEPEND */\r
-\r
 #ifndef OPENSSL_THREADS\r
 # define OPENSSL_THREADS\r
 #endif\r
 #ifndef OPENSSL_NO_ASM\r
 # define OPENSSL_NO_ASM\r
 #endif\r
-\r
-/* The OPENSSL_NO_* macros are also defined as NO_* if the application\r
-   asks for it.  This is a transient feature that is provided for those\r
-   who haven't had the time to do the appropriate changes in their\r
-   applications.  */\r
-#ifdef OPENSSL_ALGORITHM_DEFINES\r
-# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)\r
-#  define NO_EC_NISTP_64_GCC_128\r
-# endif\r
-# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)\r
-#  define NO_GMP\r
-# endif\r
-# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)\r
-#  define NO_JPAKE\r
-# endif\r
-# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)\r
-#  define NO_KRB5\r
-# endif\r
-# if defined(OPENSSL_NO_LIBUNBOUND) && !defined(NO_LIBUNBOUND)\r
-#  define NO_LIBUNBOUND\r
-# endif\r
-# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)\r
-#  define NO_MD2\r
-# endif\r
-# if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)\r
-#  define NO_RC5\r
-# endif\r
-# if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)\r
-#  define NO_RFC3779\r
-# endif\r
-# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)\r
-#  define NO_SCTP\r
-# endif\r
-# if defined(OPENSSL_NO_SSL_TRACE) && !defined(NO_SSL_TRACE)\r
-#  define NO_SSL_TRACE\r
-# endif\r
-# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)\r
-#  define NO_SSL2\r
-# endif\r
-# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)\r
-#  define NO_STORE\r
-# endif\r
-# if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST)\r
-#  define NO_UNIT_TEST\r
-# endif\r
-# if defined(OPENSSL_NO_WEAK_SSL_CIPHERS) && !defined(NO_WEAK_SSL_CIPHERS)\r
-#  define NO_WEAK_SSL_CIPHERS\r
-# endif\r
+#ifndef OPENSSL_NO_AFALGENG\r
+# define OPENSSL_NO_AFALGENG\r
 #endif\r
 \r
-/* crypto/opensslconf.h.in */\r
 \r
-/* Generate 80386 code? */\r
-#undef I386_ONLY\r
-\r
-#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */\r
-#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)\r
-#define ENGINESDIR "./lib/engines"\r
-#define OPENSSLDIR "././ssl"\r
-#endif\r
-#endif\r
-\r
-#undef OPENSSL_UNISTD\r
-#define OPENSSL_UNISTD <unistd.h>\r
-\r
-#undef OPENSSL_EXPORT_VAR_AS_FUNCTION\r
-#define OPENSSL_EXPORT_VAR_AS_FUNCTION\r
-\r
-#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)\r
-#define IDEA_INT unsigned int\r
-#endif\r
-\r
-#if defined(HEADER_MD2_H) && !defined(MD2_INT)\r
-#define MD2_INT unsigned int\r
-#endif\r
-\r
-#if defined(HEADER_RC2_H) && !defined(RC2_INT)\r
-/* I need to put in a mod for the alpha - eay */\r
-#define RC2_INT unsigned int\r
-#endif\r
-\r
-#if defined(HEADER_RC4_H)\r
-#if !defined(RC4_INT)\r
-/* using int types make the structure larger but make the code faster\r
- * on most boxes I have tested - up to %20 faster. */\r
 /*\r
- * I don't know what does "most" mean, but declaring "int" is a must on:\r
- * - Intel P6 because partial register stalls are very expensive;\r
- * - elder Alpha because it lacks byte load/store instructions;\r
+ * Sometimes OPENSSSL_NO_xxx ends up with an empty file and some compilers\r
+ * don't like that.  This will hopefully silence them.\r
  */\r
-#define RC4_INT unsigned int\r
-#endif\r
-#if !defined(RC4_CHUNK)\r
+#define NON_EMPTY_TRANSLATION_UNIT static void *dummy = &dummy;\r
+\r
 /*\r
- * This enables code handling data aligned at natural CPU word\r
- * boundary. See crypto/rc4/rc4_enc.c for further details.\r
+ * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the\r
+ * declarations of functions deprecated in or before <version>. Otherwise, they\r
+ * still won't see them if the library has been built to disable deprecated\r
+ * functions.\r
  */\r
-#undef RC4_CHUNK\r
-#endif\r
+#if defined(OPENSSL_NO_DEPRECATED)\r
+# define DECLARE_DEPRECATED(f)\r
+#elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)\r
+# define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));\r
+#else\r
+# define DECLARE_DEPRECATED(f)   f;\r
+#endif\r
+\r
+#ifndef OPENSSL_FILE\r
+# ifdef OPENSSL_NO_FILENAMES\r
+#  define OPENSSL_FILE ""\r
+#  define OPENSSL_LINE 0\r
+# else\r
+#  define OPENSSL_FILE __FILE__\r
+#  define OPENSSL_LINE __LINE__\r
+# endif\r
 #endif\r
 \r
-#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)\r
-/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a\r
- * %20 speed up (longs are 8 bytes, int's are 4). */\r
-#ifndef DES_LONG\r
-#define DES_LONG unsigned long\r
-#endif\r
+#ifndef OPENSSL_MIN_API\r
+# define OPENSSL_MIN_API 0\r
 #endif\r
 \r
-#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)\r
-#define CONFIG_HEADER_BN_H\r
-#define BN_LLONG\r
+#if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API\r
+# undef OPENSSL_API_COMPAT\r
+# define OPENSSL_API_COMPAT OPENSSL_MIN_API\r
+#endif\r
 \r
-/* Should we define BN_DIV2W here? */\r
+#if OPENSSL_API_COMPAT < 0x10100000L\r
+# define DEPRECATEDIN_1_1_0(f)   DECLARE_DEPRECATED(f)\r
+#else\r
+# define DEPRECATEDIN_1_1_0(f)\r
+#endif\r
 \r
-/* Only one for the following should be defined */\r
-#undef SIXTY_FOUR_BIT_LONG\r
-#undef SIXTY_FOUR_BIT\r
-#define THIRTY_TWO_BIT\r
+#if OPENSSL_API_COMPAT < 0x10000000L\r
+# define DEPRECATEDIN_1_0_0(f)   DECLARE_DEPRECATED(f)\r
+#else\r
+# define DEPRECATEDIN_1_0_0(f)\r
 #endif\r
 \r
-#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)\r
-#define CONFIG_HEADER_RC4_LOCL_H\r
-/* if this is defined data[i] is used instead of *data, this is a %20\r
- * speedup on x86 */\r
-#define RC4_INDEX\r
+#if OPENSSL_API_COMPAT < 0x00908000L\r
+# define DEPRECATEDIN_0_9_8(f)   DECLARE_DEPRECATED(f)\r
+#else\r
+# define DEPRECATEDIN_0_9_8(f)\r
 #endif\r
 \r
-#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)\r
-#define CONFIG_HEADER_BF_LOCL_H\r
-#undef BF_PTR\r
-#endif /* HEADER_BF_LOCL_H */\r
 \r
-#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)\r
-#define CONFIG_HEADER_DES_LOCL_H\r
-#ifndef DES_DEFAULT_OPTIONS\r
-/* the following is tweaked from a config script, that is why it is a\r
- * protected undef/define */\r
-#ifndef DES_PTR\r
-#undef DES_PTR\r
-#endif\r
 \r
-/* This helps C compiler generate the correct code for multiple functional\r
- * units.  It reduces register dependancies at the expense of 2 more\r
- * registers */\r
-#ifndef DES_RISC1\r
-#undef DES_RISC1\r
-#endif\r
+/* Generate 80386 code? */\r
+#undef I386_ONLY\r
 \r
-#ifndef DES_RISC2\r
-#undef DES_RISC2\r
-#endif\r
+#undef OPENSSL_UNISTD\r
+#define OPENSSL_UNISTD <unistd.h>\r
 \r
-#if defined(DES_RISC1) && defined(DES_RISC2)\r
-#error YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!\r
-#endif\r
+#define OPENSSL_EXPORT_VAR_AS_FUNCTION\r
 \r
-/* Unroll the inner loop, this sometimes helps, sometimes hinders.\r
- * Very mucy CPU dependant */\r
-#ifndef DES_UNROLL\r
-#undef DES_UNROLL\r
+/*\r
+ * The following are cipher-specific, but are part of the public API.\r
+ */\r
+#if !defined(OPENSSL_SYS_UEFI)\r
+# define BN_LLONG\r
+/* Only one for the following should be defined */\r
+# undef SIXTY_FOUR_BIT_LONG\r
+# undef SIXTY_FOUR_BIT\r
+# define THIRTY_TWO_BIT\r
 #endif\r
 \r
-/* These default values were supplied by\r
- * Peter Gutman <pgut001@cs.auckland.ac.nz>\r
- * They are only used if nothing else has been defined */\r
-#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)\r
-/* Special defines which change the way the code is built depending on the\r
-   CPU and OS.  For SGI machines you can use _MIPS_SZLONG (32 or 64) to find\r
-   even newer MIPS CPU's, but at the moment one size fits all for\r
-   optimization options.  Older Sparc's work better with only UNROLL, but\r
-   there's no way to tell at compile time what it is you're running on */\r
\r
-#if defined( __sun ) || defined ( sun )                /* Newer Sparc's */\r
-#  define DES_PTR\r
-#  define DES_RISC1\r
-#  define DES_UNROLL\r
-#elif defined( __ultrix )      /* Older MIPS */\r
-#  define DES_PTR\r
-#  define DES_RISC2\r
-#  define DES_UNROLL\r
-#elif defined( __osf1__ )      /* Alpha */\r
-#  define DES_PTR\r
-#  define DES_RISC2\r
-#elif defined ( _AIX )         /* RS6000 */\r
-  /* Unknown */\r
-#elif defined( __hpux )                /* HP-PA */\r
-  /* Unknown */\r
-#elif defined( __aux )         /* 68K */\r
-  /* Unknown */\r
-#elif defined( __dgux )                /* 88K (but P6 in latest boxes) */\r
-#  define DES_UNROLL\r
-#elif defined( __sgi )         /* Newer MIPS */\r
-#  define DES_PTR\r
-#  define DES_RISC2\r
-#  define DES_UNROLL\r
-#elif defined(i386) || defined(__i386__)       /* x86 boxes, should be gcc */\r
-#  define DES_PTR\r
-#  define DES_RISC1\r
-#  define DES_UNROLL\r
-#endif /* Systems-specific speed defines */\r
-#endif\r
+#define RC4_INT unsigned int\r
 \r
-#endif /* DES_DEFAULT_OPTIONS */\r
-#endif /* HEADER_DES_LOCL_H */\r
 #ifdef  __cplusplus\r
 }\r
 #endif\r