@annadata/capacitor-mqtt-quic 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/ios/include/nghttp3/nghttp3.h +3295 -0
  2. package/ios/include/nghttp3/version.h +46 -0
  3. package/ios/include/ngtcp2/ngtcp2.h +6254 -0
  4. package/ios/include/ngtcp2/ngtcp2_crypto.h +1037 -0
  5. package/ios/include/ngtcp2/ngtcp2_crypto_quictls.h +147 -0
  6. package/ios/include/ngtcp2/version.h +51 -0
  7. package/ios/include/openssl/aes.h +111 -0
  8. package/ios/include/openssl/asn1.h +1131 -0
  9. package/ios/include/openssl/asn1_mac.h +10 -0
  10. package/ios/include/openssl/asn1err.h +140 -0
  11. package/ios/include/openssl/asn1t.h +946 -0
  12. package/ios/include/openssl/async.h +96 -0
  13. package/ios/include/openssl/asyncerr.h +29 -0
  14. package/ios/include/openssl/bio.h +887 -0
  15. package/ios/include/openssl/bioerr.h +65 -0
  16. package/ios/include/openssl/blowfish.h +78 -0
  17. package/ios/include/openssl/bn.h +584 -0
  18. package/ios/include/openssl/bnerr.h +47 -0
  19. package/ios/include/openssl/buffer.h +62 -0
  20. package/ios/include/openssl/buffererr.h +25 -0
  21. package/ios/include/openssl/camellia.h +117 -0
  22. package/ios/include/openssl/cast.h +71 -0
  23. package/ios/include/openssl/cmac.h +52 -0
  24. package/ios/include/openssl/cmp.h +597 -0
  25. package/ios/include/openssl/cmp_util.h +56 -0
  26. package/ios/include/openssl/cmperr.h +116 -0
  27. package/ios/include/openssl/cms.h +493 -0
  28. package/ios/include/openssl/cmserr.h +124 -0
  29. package/ios/include/openssl/comp.h +59 -0
  30. package/ios/include/openssl/comperr.h +31 -0
  31. package/ios/include/openssl/conf.h +214 -0
  32. package/ios/include/openssl/conf_api.h +46 -0
  33. package/ios/include/openssl/conferr.h +52 -0
  34. package/ios/include/openssl/configuration.h +149 -0
  35. package/ios/include/openssl/conftypes.h +44 -0
  36. package/ios/include/openssl/core.h +233 -0
  37. package/ios/include/openssl/core_dispatch.h +960 -0
  38. package/ios/include/openssl/core_names.h +561 -0
  39. package/ios/include/openssl/core_object.h +41 -0
  40. package/ios/include/openssl/crmf.h +227 -0
  41. package/ios/include/openssl/crmferr.h +50 -0
  42. package/ios/include/openssl/crypto.h +558 -0
  43. package/ios/include/openssl/cryptoerr.h +55 -0
  44. package/ios/include/openssl/cryptoerr_legacy.h +1466 -0
  45. package/ios/include/openssl/ct.h +573 -0
  46. package/ios/include/openssl/cterr.h +45 -0
  47. package/ios/include/openssl/decoder.h +133 -0
  48. package/ios/include/openssl/decodererr.h +28 -0
  49. package/ios/include/openssl/des.h +211 -0
  50. package/ios/include/openssl/dh.h +335 -0
  51. package/ios/include/openssl/dherr.h +58 -0
  52. package/ios/include/openssl/dsa.h +280 -0
  53. package/ios/include/openssl/dsaerr.h +44 -0
  54. package/ios/include/openssl/dtls1.h +57 -0
  55. package/ios/include/openssl/e_os2.h +308 -0
  56. package/ios/include/openssl/ebcdic.h +39 -0
  57. package/ios/include/openssl/ec.h +1572 -0
  58. package/ios/include/openssl/ecdh.h +10 -0
  59. package/ios/include/openssl/ecdsa.h +10 -0
  60. package/ios/include/openssl/ecerr.h +104 -0
  61. package/ios/include/openssl/encoder.h +124 -0
  62. package/ios/include/openssl/encodererr.h +28 -0
  63. package/ios/include/openssl/engine.h +833 -0
  64. package/ios/include/openssl/engineerr.h +63 -0
  65. package/ios/include/openssl/err.h +504 -0
  66. package/ios/include/openssl/ess.h +128 -0
  67. package/ios/include/openssl/esserr.h +32 -0
  68. package/ios/include/openssl/evp.h +2175 -0
  69. package/ios/include/openssl/evperr.h +134 -0
  70. package/ios/include/openssl/fips_names.h +77 -0
  71. package/ios/include/openssl/fipskey.h +36 -0
  72. package/ios/include/openssl/hmac.h +62 -0
  73. package/ios/include/openssl/http.h +109 -0
  74. package/ios/include/openssl/httperr.h +55 -0
  75. package/ios/include/openssl/idea.h +82 -0
  76. package/ios/include/openssl/kdf.h +138 -0
  77. package/ios/include/openssl/kdferr.h +16 -0
  78. package/ios/include/openssl/lhash.h +331 -0
  79. package/ios/include/openssl/macros.h +325 -0
  80. package/ios/include/openssl/md2.h +56 -0
  81. package/ios/include/openssl/md4.h +63 -0
  82. package/ios/include/openssl/md5.h +62 -0
  83. package/ios/include/openssl/mdc2.h +55 -0
  84. package/ios/include/openssl/modes.h +219 -0
  85. package/ios/include/openssl/obj_mac.h +5481 -0
  86. package/ios/include/openssl/objects.h +183 -0
  87. package/ios/include/openssl/objectserr.h +28 -0
  88. package/ios/include/openssl/ocsp.h +483 -0
  89. package/ios/include/openssl/ocsperr.h +53 -0
  90. package/ios/include/openssl/opensslconf.h +17 -0
  91. package/ios/include/openssl/opensslv.h +114 -0
  92. package/ios/include/openssl/ossl_typ.h +16 -0
  93. package/ios/include/openssl/param_build.h +63 -0
  94. package/ios/include/openssl/params.h +160 -0
  95. package/ios/include/openssl/pem.h +541 -0
  96. package/ios/include/openssl/pem2.h +19 -0
  97. package/ios/include/openssl/pemerr.h +58 -0
  98. package/ios/include/openssl/pkcs12.h +353 -0
  99. package/ios/include/openssl/pkcs12err.h +45 -0
  100. package/ios/include/openssl/pkcs7.h +430 -0
  101. package/ios/include/openssl/pkcs7err.h +63 -0
  102. package/ios/include/openssl/prov_ssl.h +34 -0
  103. package/ios/include/openssl/proverr.h +149 -0
  104. package/ios/include/openssl/provider.h +60 -0
  105. package/ios/include/openssl/quic.h +19 -0
  106. package/ios/include/openssl/rand.h +125 -0
  107. package/ios/include/openssl/randerr.h +69 -0
  108. package/ios/include/openssl/rc2.h +68 -0
  109. package/ios/include/openssl/rc4.h +47 -0
  110. package/ios/include/openssl/rc5.h +79 -0
  111. package/ios/include/openssl/ripemd.h +59 -0
  112. package/ios/include/openssl/rsa.h +610 -0
  113. package/ios/include/openssl/rsaerr.h +107 -0
  114. package/ios/include/openssl/safestack.h +297 -0
  115. package/ios/include/openssl/seed.h +113 -0
  116. package/ios/include/openssl/self_test.h +94 -0
  117. package/ios/include/openssl/sha.h +138 -0
  118. package/ios/include/openssl/srp.h +285 -0
  119. package/ios/include/openssl/srtp.h +56 -0
  120. package/ios/include/openssl/ssl.h +2671 -0
  121. package/ios/include/openssl/ssl2.h +30 -0
  122. package/ios/include/openssl/ssl3.h +347 -0
  123. package/ios/include/openssl/sslerr.h +348 -0
  124. package/ios/include/openssl/sslerr_legacy.h +468 -0
  125. package/ios/include/openssl/stack.h +90 -0
  126. package/ios/include/openssl/store.h +369 -0
  127. package/ios/include/openssl/storeerr.h +49 -0
  128. package/ios/include/openssl/symhacks.h +39 -0
  129. package/ios/include/openssl/tls1.h +1186 -0
  130. package/ios/include/openssl/trace.h +312 -0
  131. package/ios/include/openssl/ts.h +505 -0
  132. package/ios/include/openssl/tserr.h +67 -0
  133. package/ios/include/openssl/txt_db.h +63 -0
  134. package/ios/include/openssl/types.h +239 -0
  135. package/ios/include/openssl/ui.h +407 -0
  136. package/ios/include/openssl/uierr.h +38 -0
  137. package/ios/include/openssl/whrlpool.h +62 -0
  138. package/ios/include/openssl/x509.h +1279 -0
  139. package/ios/include/openssl/x509_vfy.h +894 -0
  140. package/ios/include/openssl/x509err.h +69 -0
  141. package/ios/include/openssl/x509v3.h +1453 -0
  142. package/ios/include/openssl/x509v3err.h +93 -0
  143. package/ios/libs/libcrypto.a +0 -0
  144. package/ios/libs/libnghttp3.a +0 -0
  145. package/ios/libs/libngtcp2.a +0 -0
  146. package/ios/libs/libngtcp2_crypto_quictls.a +0 -0
  147. package/ios/libs/libssl.a +0 -0
  148. package/package.json +2 -2
@@ -0,0 +1,325 @@
1
+ /*
2
+ * Copyright 2019-2023 The OpenSSL Project Authors. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
5
+ * this file except in compliance with the License. You can obtain a copy
6
+ * in the file LICENSE in the source distribution or at
7
+ * https://www.openssl.org/source/license.html
8
+ */
9
+
10
+ #ifndef OPENSSL_MACROS_H
11
+ # define OPENSSL_MACROS_H
12
+ # pragma once
13
+
14
+ #include <openssl/opensslconf.h>
15
+ #include <openssl/opensslv.h>
16
+
17
+
18
+ /* Helper macros for CPP string composition */
19
+ # define OPENSSL_MSTR_HELPER(x) #x
20
+ # define OPENSSL_MSTR(x) OPENSSL_MSTR_HELPER(x)
21
+
22
+ /*
23
+ * Sometimes OPENSSL_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
+ * Generic deprecation macro
30
+ *
31
+ * If OPENSSL_SUPPRESS_DEPRECATED is defined, then OSSL_DEPRECATED and
32
+ * OSSL_DEPRECATED_FOR become no-ops
33
+ */
34
+ # ifndef OSSL_DEPRECATED
35
+ # undef OSSL_DEPRECATED_FOR
36
+ # ifndef OPENSSL_SUPPRESS_DEPRECATED
37
+ # if defined(_MSC_VER)
38
+ /*
39
+ * MSVC supports __declspec(deprecated) since MSVC 2003 (13.10),
40
+ * and __declspec(deprecated(message)) since MSVC 2005 (14.00)
41
+ */
42
+ # if _MSC_VER >= 1400
43
+ # define OSSL_DEPRECATED(since) \
44
+ __declspec(deprecated("Since OpenSSL " # since))
45
+ # define OSSL_DEPRECATED_FOR(since, message) \
46
+ __declspec(deprecated("Since OpenSSL " # since ";" message))
47
+ # elif _MSC_VER >= 1310
48
+ # define OSSL_DEPRECATED(since) __declspec(deprecated)
49
+ # define OSSL_DEPRECATED_FOR(since, message) __declspec(deprecated)
50
+ # endif
51
+ # elif defined(__GNUC__)
52
+ /*
53
+ * According to GCC documentation, deprecations with message appeared in
54
+ * GCC 4.5.0
55
+ */
56
+ # if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
57
+ # define OSSL_DEPRECATED(since) \
58
+ __attribute__((deprecated("Since OpenSSL " # since)))
59
+ # define OSSL_DEPRECATED_FOR(since, message) \
60
+ __attribute__((deprecated("Since OpenSSL " # since ";" message)))
61
+ # elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
62
+ # define OSSL_DEPRECATED(since) __attribute__((deprecated))
63
+ # define OSSL_DEPRECATED_FOR(since, message) __attribute__((deprecated))
64
+ # endif
65
+ # elif defined(__SUNPRO_C)
66
+ # if (__SUNPRO_C >= 0x5130)
67
+ # define OSSL_DEPRECATED(since) __attribute__ ((deprecated))
68
+ # define OSSL_DEPRECATED_FOR(since, message) __attribute__ ((deprecated))
69
+ # endif
70
+ # endif
71
+ # endif
72
+ # endif
73
+
74
+ /*
75
+ * Still not defined? Then define no-op macros. This means these macros
76
+ * are unsuitable for use in a typedef.
77
+ */
78
+ # ifndef OSSL_DEPRECATED
79
+ # define OSSL_DEPRECATED(since) extern
80
+ # define OSSL_DEPRECATED_FOR(since, message) extern
81
+ # endif
82
+
83
+ /*
84
+ * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the
85
+ * declarations of functions deprecated in or before <version>. If this is
86
+ * undefined, the value of the macro OPENSSL_CONFIGURED_API (defined in
87
+ * <openssl/opensslconf.h>) is the default.
88
+ *
89
+ * For any version number up until version 1.1.x, <version> is expected to be
90
+ * the calculated version number 0xMNNFFPPSL.
91
+ * For version numbers 3.0 and on, <version> is expected to be a computation
92
+ * of the major and minor numbers in decimal using this formula:
93
+ *
94
+ * MAJOR * 10000 + MINOR * 100
95
+ *
96
+ * So version 3.0 becomes 30000, version 3.2 becomes 30200, etc.
97
+ */
98
+
99
+ /*
100
+ * We use the OPENSSL_API_COMPAT value to define API level macros. These
101
+ * macros are used to enable or disable features at that API version boundary.
102
+ */
103
+
104
+ # ifdef OPENSSL_API_LEVEL
105
+ # error "OPENSSL_API_LEVEL must not be defined by application"
106
+ # endif
107
+
108
+ /*
109
+ * We figure out what API level was intended by simple numeric comparison.
110
+ * The lowest old style number we recognise is 0x00908000L, so we take some
111
+ * safety margin and assume that anything below 0x00900000L is a new style
112
+ * number. This allows new versions up to and including v943.71.83.
113
+ */
114
+ # ifdef OPENSSL_API_COMPAT
115
+ # if OPENSSL_API_COMPAT < 0x900000L
116
+ # define OPENSSL_API_LEVEL (OPENSSL_API_COMPAT)
117
+ # else
118
+ # define OPENSSL_API_LEVEL \
119
+ (((OPENSSL_API_COMPAT >> 28) & 0xF) * 10000 \
120
+ + ((OPENSSL_API_COMPAT >> 20) & 0xFF) * 100 \
121
+ + ((OPENSSL_API_COMPAT >> 12) & 0xFF))
122
+ # endif
123
+ # endif
124
+
125
+ /*
126
+ * If OPENSSL_API_COMPAT wasn't given, we use default numbers to set
127
+ * the API compatibility level.
128
+ */
129
+ # ifndef OPENSSL_API_LEVEL
130
+ # if OPENSSL_CONFIGURED_API > 0
131
+ # define OPENSSL_API_LEVEL (OPENSSL_CONFIGURED_API)
132
+ # else
133
+ # define OPENSSL_API_LEVEL \
134
+ (OPENSSL_VERSION_MAJOR * 10000 + OPENSSL_VERSION_MINOR * 100)
135
+ # endif
136
+ # endif
137
+
138
+ # if OPENSSL_API_LEVEL > OPENSSL_CONFIGURED_API
139
+ # error "The requested API level higher than the configured API compatibility level"
140
+ # endif
141
+
142
+ /*
143
+ * Check of sane values.
144
+ */
145
+ /* Can't go higher than the current version. */
146
+ # if OPENSSL_API_LEVEL > (OPENSSL_VERSION_MAJOR * 10000 + OPENSSL_VERSION_MINOR * 100)
147
+ # error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
148
+ # endif
149
+ /* OpenSSL will have no version 2.y.z */
150
+ # if OPENSSL_API_LEVEL < 30000 && OPENSSL_API_LEVEL >= 20000
151
+ # error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
152
+ # endif
153
+ /* Below 0.9.8 is unacceptably low */
154
+ # if OPENSSL_API_LEVEL < 908
155
+ # error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"
156
+ # endif
157
+
158
+ /*
159
+ * Define macros for deprecation and simulated removal purposes.
160
+ *
161
+ * The macros OSSL_DEPRECATED_{major}_{minor} are always defined for
162
+ * all OpenSSL versions we care for. They can be used as attributes
163
+ * in function declarations where appropriate.
164
+ *
165
+ * The macros OPENSSL_NO_DEPRECATED_{major}_{minor} are defined for
166
+ * all OpenSSL versions up to or equal to the version given with
167
+ * OPENSSL_API_COMPAT. They are used as guards around anything that's
168
+ * deprecated up to that version, as an effect of the developer option
169
+ * 'no-deprecated'.
170
+ */
171
+
172
+ # undef OPENSSL_NO_DEPRECATED_3_0
173
+ # undef OPENSSL_NO_DEPRECATED_1_1_1
174
+ # undef OPENSSL_NO_DEPRECATED_1_1_0
175
+ # undef OPENSSL_NO_DEPRECATED_1_0_2
176
+ # undef OPENSSL_NO_DEPRECATED_1_0_1
177
+ # undef OPENSSL_NO_DEPRECATED_1_0_0
178
+ # undef OPENSSL_NO_DEPRECATED_0_9_8
179
+
180
+ # if OPENSSL_API_LEVEL >= 30100
181
+ # ifndef OPENSSL_NO_DEPRECATED
182
+ # define OSSL_DEPRECATEDIN_3_1 OSSL_DEPRECATED(3.1)
183
+ # define OSSL_DEPRECATEDIN_3_1_FOR(msg) OSSL_DEPRECATED_FOR(3.1, msg)
184
+ # else
185
+ # define OPENSSL_NO_DEPRECATED_3_1
186
+ # endif
187
+ # else
188
+ # define OSSL_DEPRECATEDIN_3_1
189
+ # define OSSL_DEPRECATEDIN_3_1_FOR(msg)
190
+ # endif
191
+ # if OPENSSL_API_LEVEL >= 30000
192
+ # ifndef OPENSSL_NO_DEPRECATED
193
+ # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
194
+ # define OSSL_DEPRECATEDIN_3_0_FOR(msg) OSSL_DEPRECATED_FOR(3.0, msg)
195
+ # else
196
+ # define OPENSSL_NO_DEPRECATED_3_0
197
+ # endif
198
+ # else
199
+ # define OSSL_DEPRECATEDIN_3_0
200
+ # define OSSL_DEPRECATEDIN_3_0_FOR(msg)
201
+ # endif
202
+ # if OPENSSL_API_LEVEL >= 10101
203
+ # ifndef OPENSSL_NO_DEPRECATED
204
+ # define OSSL_DEPRECATEDIN_1_1_1 OSSL_DEPRECATED(1.1.1)
205
+ # define OSSL_DEPRECATEDIN_1_1_1_FOR(msg) OSSL_DEPRECATED_FOR(1.1.1, msg)
206
+ # else
207
+ # define OPENSSL_NO_DEPRECATED_1_1_1
208
+ # endif
209
+ # else
210
+ # define OSSL_DEPRECATEDIN_1_1_1
211
+ # define OSSL_DEPRECATEDIN_1_1_1_FOR(msg)
212
+ # endif
213
+ # if OPENSSL_API_LEVEL >= 10100
214
+ # ifndef OPENSSL_NO_DEPRECATED
215
+ # define OSSL_DEPRECATEDIN_1_1_0 OSSL_DEPRECATED(1.1.0)
216
+ # define OSSL_DEPRECATEDIN_1_1_0_FOR(msg) OSSL_DEPRECATED_FOR(1.1.0, msg)
217
+ # else
218
+ # define OPENSSL_NO_DEPRECATED_1_1_0
219
+ # endif
220
+ # else
221
+ # define OSSL_DEPRECATEDIN_1_1_0
222
+ # define OSSL_DEPRECATEDIN_1_1_0_FOR(msg)
223
+ # endif
224
+ # if OPENSSL_API_LEVEL >= 10002
225
+ # ifndef OPENSSL_NO_DEPRECATED
226
+ # define OSSL_DEPRECATEDIN_1_0_2 OSSL_DEPRECATED(1.0.2)
227
+ # define OSSL_DEPRECATEDIN_1_0_2_FOR(msg) OSSL_DEPRECATED_FOR(1.0.2, msg)
228
+ # else
229
+ # define OPENSSL_NO_DEPRECATED_1_0_2
230
+ # endif
231
+ # else
232
+ # define OSSL_DEPRECATEDIN_1_0_2
233
+ # define OSSL_DEPRECATEDIN_1_0_2_FOR(msg)
234
+ # endif
235
+ # if OPENSSL_API_LEVEL >= 10001
236
+ # ifndef OPENSSL_NO_DEPRECATED
237
+ # define OSSL_DEPRECATEDIN_1_0_1 OSSL_DEPRECATED(1.0.1)
238
+ # define OSSL_DEPRECATEDIN_1_0_1_FOR(msg) OSSL_DEPRECATED_FOR(1.0.1, msg)
239
+ # else
240
+ # define OPENSSL_NO_DEPRECATED_1_0_1
241
+ # endif
242
+ # else
243
+ # define OSSL_DEPRECATEDIN_1_0_1
244
+ # define OSSL_DEPRECATEDIN_1_0_1_FOR(msg)
245
+ # endif
246
+ # if OPENSSL_API_LEVEL >= 10000
247
+ # ifndef OPENSSL_NO_DEPRECATED
248
+ # define OSSL_DEPRECATEDIN_1_0_0 OSSL_DEPRECATED(1.0.0)
249
+ # define OSSL_DEPRECATEDIN_1_0_0_FOR(msg) OSSL_DEPRECATED_FOR(1.0.0, msg)
250
+ # else
251
+ # define OPENSSL_NO_DEPRECATED_1_0_0
252
+ # endif
253
+ # else
254
+ # define OSSL_DEPRECATEDIN_1_0_0
255
+ # define OSSL_DEPRECATEDIN_1_0_0_FOR(msg)
256
+ # endif
257
+ # if OPENSSL_API_LEVEL >= 908
258
+ # ifndef OPENSSL_NO_DEPRECATED
259
+ # define OSSL_DEPRECATEDIN_0_9_8 OSSL_DEPRECATED(0.9.8)
260
+ # define OSSL_DEPRECATEDIN_0_9_8_FOR(msg) OSSL_DEPRECATED_FOR(0.9.8, msg)
261
+ # else
262
+ # define OPENSSL_NO_DEPRECATED_0_9_8
263
+ # endif
264
+ # else
265
+ # define OSSL_DEPRECATEDIN_0_9_8
266
+ # define OSSL_DEPRECATEDIN_0_9_8_FOR(msg)
267
+ # endif
268
+
269
+ /*
270
+ * Make our own variants of __FILE__ and __LINE__, depending on configuration
271
+ */
272
+
273
+ # ifndef OPENSSL_FILE
274
+ # ifdef OPENSSL_NO_FILENAMES
275
+ # define OPENSSL_FILE ""
276
+ # define OPENSSL_LINE 0
277
+ # else
278
+ # define OPENSSL_FILE __FILE__
279
+ # define OPENSSL_LINE __LINE__
280
+ # endif
281
+ # endif
282
+
283
+ /*
284
+ * __func__ was standardized in C99, so for any compiler that claims
285
+ * to implement that language level or newer, we assume we can safely
286
+ * use that symbol.
287
+ *
288
+ * GNU C also provides __FUNCTION__ since version 2, which predates
289
+ * C99. We can, however, only use this if __STDC_VERSION__ exists,
290
+ * as it's otherwise not allowed according to ISO C standards (C90).
291
+ * (compiling with GNU C's -pedantic tells us so)
292
+ *
293
+ * If none of the above applies, we check if the compiler is MSVC,
294
+ * and use __FUNCTION__ if that's the case.
295
+ */
296
+ # ifndef OPENSSL_FUNC
297
+ # if defined(__STDC_VERSION__)
298
+ # if __STDC_VERSION__ >= 199901L
299
+ # define OPENSSL_FUNC __func__
300
+ # elif defined(__GNUC__) && __GNUC__ >= 2
301
+ # define OPENSSL_FUNC __FUNCTION__
302
+ # endif
303
+ # elif defined(_MSC_VER)
304
+ # define OPENSSL_FUNC __FUNCTION__
305
+ # endif
306
+ /*
307
+ * If all these possibilities are exhausted, we give up and use a
308
+ * static string.
309
+ */
310
+ # ifndef OPENSSL_FUNC
311
+ # define OPENSSL_FUNC "(unknown function)"
312
+ # endif
313
+ # endif
314
+
315
+ # ifndef OSSL_CRYPTO_ALLOC
316
+ # if defined(__GNUC__)
317
+ # define OSSL_CRYPTO_ALLOC __attribute__((__malloc__))
318
+ # elif defined(_MSC_VER)
319
+ # define OSSL_CRYPTO_ALLOC __declspec(restrict)
320
+ # else
321
+ # define OSSL_CRYPTO_ALLOC
322
+ # endif
323
+ # endif
324
+
325
+ #endif /* OPENSSL_MACROS_H */
@@ -0,0 +1,56 @@
1
+ /*
2
+ * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
5
+ * this file except in compliance with the License. You can obtain a copy
6
+ * in the file LICENSE in the source distribution or at
7
+ * https://www.openssl.org/source/license.html
8
+ */
9
+
10
+ #ifndef OPENSSL_MD2_H
11
+ # define OPENSSL_MD2_H
12
+ # pragma once
13
+
14
+ # include <openssl/macros.h>
15
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
16
+ # define HEADER_MD2_H
17
+ # endif
18
+
19
+ # include <openssl/opensslconf.h>
20
+
21
+ # ifndef OPENSSL_NO_MD2
22
+ # include <stddef.h>
23
+ # ifdef __cplusplus
24
+ extern "C" {
25
+ # endif
26
+
27
+ # define MD2_DIGEST_LENGTH 16
28
+
29
+ # if !defined(OPENSSL_NO_DEPRECATED_3_0)
30
+
31
+ typedef unsigned char MD2_INT;
32
+
33
+ # define MD2_BLOCK 16
34
+
35
+ typedef struct MD2state_st {
36
+ unsigned int num;
37
+ unsigned char data[MD2_BLOCK];
38
+ MD2_INT cksm[MD2_BLOCK];
39
+ MD2_INT state[MD2_BLOCK];
40
+ } MD2_CTX;
41
+ # endif
42
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
43
+ OSSL_DEPRECATEDIN_3_0 const char *MD2_options(void);
44
+ OSSL_DEPRECATEDIN_3_0 int MD2_Init(MD2_CTX *c);
45
+ OSSL_DEPRECATEDIN_3_0 int MD2_Update(MD2_CTX *c, const unsigned char *data,
46
+ size_t len);
47
+ OSSL_DEPRECATEDIN_3_0 int MD2_Final(unsigned char *md, MD2_CTX *c);
48
+ OSSL_DEPRECATEDIN_3_0 unsigned char *MD2(const unsigned char *d, size_t n,
49
+ unsigned char *md);
50
+ # endif
51
+
52
+ # ifdef __cplusplus
53
+ }
54
+ # endif
55
+ # endif
56
+ #endif
@@ -0,0 +1,63 @@
1
+ /*
2
+ * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
5
+ * this file except in compliance with the License. You can obtain a copy
6
+ * in the file LICENSE in the source distribution or at
7
+ * https://www.openssl.org/source/license.html
8
+ */
9
+
10
+ #ifndef OPENSSL_MD4_H
11
+ # define OPENSSL_MD4_H
12
+ # pragma once
13
+
14
+ # include <openssl/macros.h>
15
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
16
+ # define HEADER_MD4_H
17
+ # endif
18
+
19
+ # include <openssl/opensslconf.h>
20
+
21
+ # ifndef OPENSSL_NO_MD4
22
+ # include <openssl/e_os2.h>
23
+ # include <stddef.h>
24
+ # ifdef __cplusplus
25
+ extern "C" {
26
+ # endif
27
+
28
+ # define MD4_DIGEST_LENGTH 16
29
+
30
+ # if !defined(OPENSSL_NO_DEPRECATED_3_0)
31
+
32
+ /*-
33
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
34
+ * ! MD4_LONG has to be at least 32 bits wide. !
35
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
36
+ */
37
+ # define MD4_LONG unsigned int
38
+
39
+ # define MD4_CBLOCK 64
40
+ # define MD4_LBLOCK (MD4_CBLOCK/4)
41
+
42
+ typedef struct MD4state_st {
43
+ MD4_LONG A, B, C, D;
44
+ MD4_LONG Nl, Nh;
45
+ MD4_LONG data[MD4_LBLOCK];
46
+ unsigned int num;
47
+ } MD4_CTX;
48
+ # endif
49
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
50
+ OSSL_DEPRECATEDIN_3_0 int MD4_Init(MD4_CTX *c);
51
+ OSSL_DEPRECATEDIN_3_0 int MD4_Update(MD4_CTX *c, const void *data, size_t len);
52
+ OSSL_DEPRECATEDIN_3_0 int MD4_Final(unsigned char *md, MD4_CTX *c);
53
+ OSSL_DEPRECATEDIN_3_0 unsigned char *MD4(const unsigned char *d, size_t n,
54
+ unsigned char *md);
55
+ OSSL_DEPRECATEDIN_3_0 void MD4_Transform(MD4_CTX *c, const unsigned char *b);
56
+ # endif
57
+
58
+ # ifdef __cplusplus
59
+ }
60
+ # endif
61
+ # endif
62
+
63
+ #endif
@@ -0,0 +1,62 @@
1
+ /*
2
+ * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
5
+ * this file except in compliance with the License. You can obtain a copy
6
+ * in the file LICENSE in the source distribution or at
7
+ * https://www.openssl.org/source/license.html
8
+ */
9
+
10
+ #ifndef OPENSSL_MD5_H
11
+ # define OPENSSL_MD5_H
12
+ # pragma once
13
+
14
+ # include <openssl/macros.h>
15
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
16
+ # define HEADER_MD5_H
17
+ # endif
18
+
19
+ # include <openssl/opensslconf.h>
20
+
21
+ # ifndef OPENSSL_NO_MD5
22
+ # include <openssl/e_os2.h>
23
+ # include <stddef.h>
24
+ # ifdef __cplusplus
25
+ extern "C" {
26
+ # endif
27
+
28
+ # define MD5_DIGEST_LENGTH 16
29
+
30
+ # if !defined(OPENSSL_NO_DEPRECATED_3_0)
31
+ /*
32
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
33
+ * ! MD5_LONG has to be at least 32 bits wide. !
34
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
35
+ */
36
+ # define MD5_LONG unsigned int
37
+
38
+ # define MD5_CBLOCK 64
39
+ # define MD5_LBLOCK (MD5_CBLOCK/4)
40
+
41
+ typedef struct MD5state_st {
42
+ MD5_LONG A, B, C, D;
43
+ MD5_LONG Nl, Nh;
44
+ MD5_LONG data[MD5_LBLOCK];
45
+ unsigned int num;
46
+ } MD5_CTX;
47
+ # endif
48
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
49
+ OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
50
+ OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
51
+ OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c);
52
+ OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
53
+ unsigned char *md);
54
+ OSSL_DEPRECATEDIN_3_0 void MD5_Transform(MD5_CTX *c, const unsigned char *b);
55
+ # endif
56
+
57
+ # ifdef __cplusplus
58
+ }
59
+ # endif
60
+ # endif
61
+
62
+ #endif
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
5
+ * this file except in compliance with the License. You can obtain a copy
6
+ * in the file LICENSE in the source distribution or at
7
+ * https://www.openssl.org/source/license.html
8
+ */
9
+
10
+ #ifndef OPENSSL_MDC2_H
11
+ # define OPENSSL_MDC2_H
12
+ # pragma once
13
+
14
+ # include <openssl/macros.h>
15
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
16
+ # define HEADER_MDC2_H
17
+ # endif
18
+
19
+ # include <openssl/opensslconf.h>
20
+
21
+ # ifndef OPENSSL_NO_MDC2
22
+ # include <stdlib.h>
23
+ # include <openssl/des.h>
24
+ # ifdef __cplusplus
25
+ extern "C" {
26
+ # endif
27
+
28
+ # define MDC2_DIGEST_LENGTH 16
29
+
30
+ # if !defined(OPENSSL_NO_DEPRECATED_3_0)
31
+
32
+ # define MDC2_BLOCK 8
33
+
34
+ typedef struct mdc2_ctx_st {
35
+ unsigned int num;
36
+ unsigned char data[MDC2_BLOCK];
37
+ DES_cblock h, hh;
38
+ unsigned int pad_type; /* either 1 or 2, default 1 */
39
+ } MDC2_CTX;
40
+ # endif
41
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
42
+ OSSL_DEPRECATEDIN_3_0 int MDC2_Init(MDC2_CTX *c);
43
+ OSSL_DEPRECATEDIN_3_0 int MDC2_Update(MDC2_CTX *c, const unsigned char *data,
44
+ size_t len);
45
+ OSSL_DEPRECATEDIN_3_0 int MDC2_Final(unsigned char *md, MDC2_CTX *c);
46
+ OSSL_DEPRECATEDIN_3_0 unsigned char *MDC2(const unsigned char *d, size_t n,
47
+ unsigned char *md);
48
+ # endif
49
+
50
+ # ifdef __cplusplus
51
+ }
52
+ # endif
53
+ # endif
54
+
55
+ #endif