comparison OrthancFramework/Resources/Patches/openssl-1.1.1-conf.h.in @ 4908:f4a41cc17ac6

re-added missing patches for OpenSSL 1.1.1
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Feb 2022 10:28:08 +0100
parents
children
comparison
equal deleted inserted replaced
4905:b5b693465295 4908:f4a41cc17ac6
1 /*
2 * {- join("\n * ", @autowarntext) -}
3 *
4 * Copyright 2016-2020 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 * Sometimes OPENSSSL_NO_xxx ends up with an empty file and some compilers
24 * don't like that. This will hopefully silence them.
25 */
26 #define NON_EMPTY_TRANSLATION_UNIT static void *dummy = &dummy;
27
28 /*
29 * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the
30 * declarations of functions deprecated in or before <version>. Otherwise, they
31 * still won't see them if the library has been built to disable deprecated
32 * functions.
33 */
34 #ifndef DECLARE_DEPRECATED
35 # define DECLARE_DEPRECATED(f) f;
36 # ifdef __GNUC__
37 # if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
38 # undef DECLARE_DEPRECATED
39 # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
40 # endif
41 # elif defined(__SUNPRO_C)
42 # if (__SUNPRO_C >= 0x5130)
43 # undef DECLARE_DEPRECATED
44 # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
45 # endif
46 # endif
47 #endif
48
49 #ifndef OPENSSL_FILE
50 # ifdef OPENSSL_NO_FILENAMES
51 # define OPENSSL_FILE ""
52 # define OPENSSL_LINE 0
53 # else
54 # define OPENSSL_FILE __FILE__
55 # define OPENSSL_LINE __LINE__
56 # endif
57 #endif
58
59 #ifndef OPENSSL_MIN_API
60 # define OPENSSL_MIN_API 0
61 #endif
62
63 #if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API
64 # undef OPENSSL_API_COMPAT
65 # define OPENSSL_API_COMPAT OPENSSL_MIN_API
66 #endif
67
68 /*
69 * Do not deprecate things to be deprecated in version 1.2.0 before the
70 * OpenSSL version number matches.
71 */
72 #if OPENSSL_VERSION_NUMBER < 0x10200000L
73 # define DEPRECATEDIN_1_2_0(f) f;
74 #elif OPENSSL_API_COMPAT < 0x10200000L
75 # define DEPRECATEDIN_1_2_0(f) DECLARE_DEPRECATED(f)
76 #else
77 # define DEPRECATEDIN_1_2_0(f)
78 #endif
79
80 #if OPENSSL_API_COMPAT < 0x10100000L
81 # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)
82 #else
83 # define DEPRECATEDIN_1_1_0(f)
84 #endif
85
86 #if OPENSSL_API_COMPAT < 0x10000000L
87 # define DEPRECATEDIN_1_0_0(f) DECLARE_DEPRECATED(f)
88 #else
89 # define DEPRECATEDIN_1_0_0(f)
90 #endif
91
92 #if OPENSSL_API_COMPAT < 0x00908000L
93 # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f)
94 #else
95 # define DEPRECATEDIN_0_9_8(f)
96 #endif
97
98
99 #define OPENSSL_UNISTD <unistd.h>
100
101 #if 0
102 /* Generate 80386 code? */
103 {- ${processor} eq "386" ? "#define" : "#undef" -} I386_ONLY
104
105 #undef OPENSSL_UNISTD
106 #define OPENSSL_UNISTD {- ${unistd} -}
107
108 {- ${export_var_as_fn} ? "#define" : "#undef" -} OPENSSL_EXPORT_VAR_AS_FUNCTION
109
110 /*
111 * The following are cipher-specific, but are part of the public API.
112 */
113 #if !defined(OPENSSL_SYS_UEFI)
114 {- ${bn_ll} ? "# define" : "# undef" -} BN_LLONG
115 /* Only one for the following should be defined */
116 {- ${b64l} ? "# define" : "# undef" -} SIXTY_FOUR_BIT_LONG
117 {- ${b64} ? "# define" : "# undef" -} SIXTY_FOUR_BIT
118 {- ${b32} ? "# define" : "# undef" -} THIRTY_TWO_BIT
119 #endif
120
121 #define RC4_INT {- ${rc4_int} -}
122 #endif
123
124 #ifdef __cplusplus
125 }
126 #endif