comparison OrthancFramework/Resources/Patches/openssl-1.1.1-conf.h.in @ 4044:d25f4c0fa160 framework

splitting code into OrthancFramework and OrthancServer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Jun 2020 20:30:34 +0200
parents Resources/Patches/openssl-1.1.1-conf.h.in@e9834343d327
children 0524d6e93672
comparison
equal deleted inserted replaced
4043:6c6239aec462 4044:d25f4c0fa160
1 /*
2 * {- join("\n * ", @autowarntext) -}
3 *
4 * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
5 *
6 * Licensed under the OpenSSL license (the "License"). You may not use
7 * this file except in compliance with the License. You can obtain a copy
8 * in the file LICENSE in the source distribution or at
9 * https://www.openssl.org/source/license.html
10 */
11
12 #include <openssl/opensslv.h>
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 #ifdef OPENSSL_ALGORITHM_DEFINES
19 # error OPENSSL_ALGORITHM_DEFINES no longer supported
20 #endif
21
22
23 /*
24 * Sometimes OPENSSSL_NO_xxx ends up with an empty file and some compilers
25 * don't like that. This will hopefully silence them.
26 */
27 #define NON_EMPTY_TRANSLATION_UNIT static void *dummy = &dummy;
28
29 /*
30 * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the
31 * declarations of functions deprecated in or before <version>. Otherwise, they
32 * still won't see them if the library has been built to disable deprecated
33 * functions.
34 */
35 #ifndef DECLARE_DEPRECATED
36 # define DECLARE_DEPRECATED(f) f;
37 # ifdef __GNUC__
38 # if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
39 # undef DECLARE_DEPRECATED
40 # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
41 # endif
42 # endif
43 #endif
44
45 #ifndef OPENSSL_FILE
46 # ifdef OPENSSL_NO_FILENAMES
47 # define OPENSSL_FILE ""
48 # define OPENSSL_LINE 0
49 # else
50 # define OPENSSL_FILE __FILE__
51 # define OPENSSL_LINE __LINE__
52 # endif
53 #endif
54
55 #ifndef OPENSSL_MIN_API
56 # define OPENSSL_MIN_API 0
57 #endif
58
59 #if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API
60 # undef OPENSSL_API_COMPAT
61 # define OPENSSL_API_COMPAT OPENSSL_MIN_API
62 #endif
63
64 /*
65 * Do not deprecate things to be deprecated in version 1.2.0 before the
66 * OpenSSL version number matches.
67 */
68 #if OPENSSL_VERSION_NUMBER < 0x10200000L
69 # define DEPRECATEDIN_1_2_0(f) f;
70 #elif OPENSSL_API_COMPAT < 0x10200000L
71 # define DEPRECATEDIN_1_2_0(f) DECLARE_DEPRECATED(f)
72 #else
73 # define DEPRECATEDIN_1_2_0(f)
74 #endif
75
76 #if OPENSSL_API_COMPAT < 0x10100000L
77 # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)
78 #else
79 # define DEPRECATEDIN_1_1_0(f)
80 #endif
81
82 #if OPENSSL_API_COMPAT < 0x10000000L
83 # define DEPRECATEDIN_1_0_0(f) DECLARE_DEPRECATED(f)
84 #else
85 # define DEPRECATEDIN_1_0_0(f)
86 #endif
87
88 #if OPENSSL_API_COMPAT < 0x00908000L
89 # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f)
90 #else
91 # define DEPRECATEDIN_0_9_8(f)
92 #endif
93
94
95 #define OPENSSL_UNISTD <unistd.h>
96
97 #if 0
98 /* Generate 80386 code? */
99 {- ${processor} eq "386" ? "#define" : "#undef" -} I386_ONLY
100
101 #undef OPENSSL_UNISTD
102 #define OPENSSL_UNISTD {- ${unistd} -}
103
104 {- ${export_var_as_fn} ? "#define" : "#undef" -} OPENSSL_EXPORT_VAR_AS_FUNCTION
105
106 /*
107 * The following are cipher-specific, but are part of the public API.
108 */
109 #if !defined(OPENSSL_SYS_UEFI)
110 {- ${bn_ll} ? "# define" : "# undef" -} BN_LLONG
111 /* Only one for the following should be defined */
112 {- ${b64l} ? "# define" : "# undef" -} SIXTY_FOUR_BIT_LONG
113 {- ${b64} ? "# define" : "# undef" -} SIXTY_FOUR_BIT
114 {- ${b32} ? "# define" : "# undef" -} THIRTY_TWO_BIT
115 #endif
116
117 #define RC4_INT {- ${rc4_int} -}
118 #endif
119
120 #ifdef __cplusplus
121 }
122 #endif