@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,312 @@
1
+ /*
2
+ * Copyright 2019-2022 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_TRACE_H
11
+ # define OPENSSL_TRACE_H
12
+ # pragma once
13
+
14
+ # include <stdarg.h>
15
+
16
+ # include <openssl/bio.h>
17
+
18
+ # ifdef __cplusplus
19
+ extern "C" {
20
+ # endif
21
+
22
+ /*
23
+ * TRACE CATEGORIES
24
+ */
25
+
26
+ /*
27
+ * The trace messages of the OpenSSL libraries are organized into different
28
+ * categories. For every trace category, the application can register a separate
29
+ * tracer callback. When a callback is registered, a so called trace channel is
30
+ * created for this category. This channel consists essentially of an internal
31
+ * BIO which sends all trace output it receives to the registered application
32
+ * callback.
33
+ *
34
+ * The ALL category can be used as a fallback category to register a single
35
+ * channel which receives the output from all categories. However, if the
36
+ * application intends to print the trace channel name in the line prefix,
37
+ * it is better to register channels for all categories separately.
38
+ * (This is how the openssl application does it.)
39
+ */
40
+ # define OSSL_TRACE_CATEGORY_ALL 0 /* The fallback */
41
+ # define OSSL_TRACE_CATEGORY_TRACE 1
42
+ # define OSSL_TRACE_CATEGORY_INIT 2
43
+ # define OSSL_TRACE_CATEGORY_TLS 3
44
+ # define OSSL_TRACE_CATEGORY_TLS_CIPHER 4
45
+ # define OSSL_TRACE_CATEGORY_CONF 5
46
+ # define OSSL_TRACE_CATEGORY_ENGINE_TABLE 6
47
+ # define OSSL_TRACE_CATEGORY_ENGINE_REF_COUNT 7
48
+ # define OSSL_TRACE_CATEGORY_PKCS5V2 8
49
+ # define OSSL_TRACE_CATEGORY_PKCS12_KEYGEN 9
50
+ # define OSSL_TRACE_CATEGORY_PKCS12_DECRYPT 10
51
+ # define OSSL_TRACE_CATEGORY_X509V3_POLICY 11
52
+ # define OSSL_TRACE_CATEGORY_BN_CTX 12
53
+ # define OSSL_TRACE_CATEGORY_CMP 13
54
+ # define OSSL_TRACE_CATEGORY_STORE 14
55
+ # define OSSL_TRACE_CATEGORY_DECODER 15
56
+ # define OSSL_TRACE_CATEGORY_ENCODER 16
57
+ # define OSSL_TRACE_CATEGORY_REF_COUNT 17
58
+ # define OSSL_TRACE_CATEGORY_HTTP 18
59
+ /* Count of available categories. */
60
+ # define OSSL_TRACE_CATEGORY_NUM 19
61
+ /* KEEP THIS LIST IN SYNC with trace_categories[] in crypto/trace.c */
62
+
63
+ /* Returns the trace category number for the given |name| */
64
+ int OSSL_trace_get_category_num(const char *name);
65
+
66
+ /* Returns the trace category name for the given |num| */
67
+ const char *OSSL_trace_get_category_name(int num);
68
+
69
+ /*
70
+ * TRACE CONSUMERS
71
+ */
72
+
73
+ /*
74
+ * Enables tracing for the given |category| by providing a BIO sink
75
+ * as |channel|. If a null pointer is passed as |channel|, an existing
76
+ * trace channel is removed and tracing for the category is disabled.
77
+ *
78
+ * Returns 1 on success and 0 on failure
79
+ */
80
+ int OSSL_trace_set_channel(int category, BIO* channel);
81
+
82
+ /*
83
+ * Attach a prefix and a suffix to the given |category|, to be printed at the
84
+ * beginning and at the end of each trace output group, i.e. when
85
+ * OSSL_trace_begin() and OSSL_trace_end() are called.
86
+ * If a null pointer is passed as argument, the existing prefix or suffix is
87
+ * removed.
88
+ *
89
+ * They return 1 on success and 0 on failure
90
+ */
91
+ int OSSL_trace_set_prefix(int category, const char *prefix);
92
+ int OSSL_trace_set_suffix(int category, const char *suffix);
93
+
94
+ /*
95
+ * OSSL_trace_cb is the type tracing callback provided by the application.
96
+ * It MUST return the number of bytes written, or 0 on error (in other words,
97
+ * it can never write zero bytes).
98
+ *
99
+ * The |buffer| will always contain text, which may consist of several lines.
100
+ * The |data| argument points to whatever data was provided by the application
101
+ * when registering the tracer function.
102
+ *
103
+ * The |category| number is given, as well as a |cmd| number, described below.
104
+ */
105
+ typedef size_t (*OSSL_trace_cb)(const char *buffer, size_t count,
106
+ int category, int cmd, void *data);
107
+ /*
108
+ * Possible |cmd| numbers.
109
+ */
110
+ # define OSSL_TRACE_CTRL_BEGIN 0
111
+ # define OSSL_TRACE_CTRL_WRITE 1
112
+ # define OSSL_TRACE_CTRL_END 2
113
+
114
+ /*
115
+ * Enables tracing for the given |category| by creating an internal
116
+ * trace channel which sends the output to the given |callback|.
117
+ * If a null pointer is passed as callback, an existing trace channel
118
+ * is removed and tracing for the category is disabled.
119
+ *
120
+ * NOTE: OSSL_trace_set_channel() and OSSL_trace_set_callback() are mutually
121
+ * exclusive.
122
+ *
123
+ * Returns 1 on success and 0 on failure
124
+ */
125
+ int OSSL_trace_set_callback(int category, OSSL_trace_cb callback, void *data);
126
+
127
+ /*
128
+ * TRACE PRODUCERS
129
+ */
130
+
131
+ /*
132
+ * Returns 1 if tracing for the specified category is enabled, otherwise 0
133
+ */
134
+ int OSSL_trace_enabled(int category);
135
+
136
+ /*
137
+ * Wrap a group of tracing output calls. OSSL_trace_begin() locks tracing and
138
+ * returns the trace channel associated with the given category, or NULL if no
139
+ * channel is associated with the category. OSSL_trace_end() unlocks tracing.
140
+ *
141
+ * Usage:
142
+ *
143
+ * BIO *out;
144
+ * if ((out = OSSL_trace_begin(category)) != NULL) {
145
+ * ...
146
+ * BIO_fprintf(out, ...);
147
+ * ...
148
+ * OSSL_trace_end(category, out);
149
+ * }
150
+ *
151
+ * See also the convenience macros OSSL_TRACE_BEGIN and OSSL_TRACE_END below.
152
+ */
153
+ BIO *OSSL_trace_begin(int category);
154
+ void OSSL_trace_end(int category, BIO *channel);
155
+
156
+ /*
157
+ * OSSL_TRACE* Convenience Macros
158
+ */
159
+
160
+ /*
161
+ * When the tracing feature is disabled, these macros are defined to
162
+ * produce dead code, which a good compiler should eliminate.
163
+ */
164
+
165
+ /*
166
+ * OSSL_TRACE_BEGIN, OSSL_TRACE_END - Define a Trace Group
167
+ *
168
+ * These two macros can be used to create a block which is executed only
169
+ * if the corresponding trace category is enabled. Inside this block, a
170
+ * local variable named |trc_out| is defined, which points to the channel
171
+ * associated with the given trace category.
172
+ *
173
+ * Usage: (using 'TLS' as an example category)
174
+ *
175
+ * OSSL_TRACE_BEGIN(TLS) {
176
+ *
177
+ * BIO_fprintf(trc_out, ... );
178
+ *
179
+ * } OSSL_TRACE_END(TLS);
180
+ *
181
+ *
182
+ * This expands to the following code
183
+ *
184
+ * do {
185
+ * BIO *trc_out = OSSL_trace_begin(OSSL_TRACE_CATEGORY_TLS);
186
+ * if (trc_out != NULL) {
187
+ * ...
188
+ * BIO_fprintf(trc_out, ...);
189
+ * }
190
+ * OSSL_trace_end(OSSL_TRACE_CATEGORY_TLS, trc_out);
191
+ * } while (0);
192
+ *
193
+ * The use of the inner '{...}' group and the trailing ';' is enforced
194
+ * by the definition of the macros in order to make the code look as much
195
+ * like C code as possible.
196
+ *
197
+ * Before returning from inside the trace block, it is necessary to
198
+ * call OSSL_TRACE_CANCEL(category).
199
+ */
200
+
201
+ # if !defined OPENSSL_NO_TRACE && !defined FIPS_MODULE
202
+
203
+ # define OSSL_TRACE_BEGIN(category) \
204
+ do { \
205
+ BIO *trc_out = OSSL_trace_begin(OSSL_TRACE_CATEGORY_##category); \
206
+ \
207
+ if (trc_out != NULL)
208
+
209
+ # define OSSL_TRACE_END(category) \
210
+ OSSL_trace_end(OSSL_TRACE_CATEGORY_##category, trc_out); \
211
+ } while (0)
212
+
213
+ # define OSSL_TRACE_CANCEL(category) \
214
+ OSSL_trace_end(OSSL_TRACE_CATEGORY_##category, trc_out) \
215
+
216
+ # else
217
+
218
+ # define OSSL_TRACE_BEGIN(category) \
219
+ do { \
220
+ BIO *trc_out = NULL; \
221
+ if (0)
222
+
223
+ # define OSSL_TRACE_END(category) \
224
+ } while(0)
225
+
226
+ # define OSSL_TRACE_CANCEL(category) \
227
+ ((void)0)
228
+
229
+ # endif
230
+
231
+ /*
232
+ * OSSL_TRACE_ENABLED() - Check whether tracing is enabled for |category|
233
+ *
234
+ * Usage:
235
+ *
236
+ * if (OSSL_TRACE_ENABLED(TLS)) {
237
+ * ...
238
+ * }
239
+ */
240
+ # if !defined OPENSSL_NO_TRACE && !defined FIPS_MODULE
241
+
242
+ # define OSSL_TRACE_ENABLED(category) \
243
+ OSSL_trace_enabled(OSSL_TRACE_CATEGORY_##category)
244
+
245
+ # else
246
+
247
+ # define OSSL_TRACE_ENABLED(category) (0)
248
+
249
+ # endif
250
+
251
+ /*
252
+ * OSSL_TRACE*() - OneShot Trace Macros
253
+ *
254
+ * These macros are intended to produce a simple printf-style trace output.
255
+ * Unfortunately, C90 macros don't support variable arguments, so the
256
+ * "vararg" OSSL_TRACEV() macro has a rather weird usage pattern:
257
+ *
258
+ * OSSL_TRACEV(category, (trc_out, "format string", ...args...));
259
+ *
260
+ * Where 'channel' is the literal symbol of this name, not a variable.
261
+ * For that reason, it is currently not intended to be used directly,
262
+ * but only as helper macro for the other oneshot trace macros
263
+ * OSSL_TRACE(), OSSL_TRACE1(), OSSL_TRACE2(), ...
264
+ *
265
+ * Usage:
266
+ *
267
+ * OSSL_TRACE(INIT, "Hello world!\n");
268
+ * OSSL_TRACE1(TLS, "The answer is %d\n", 42);
269
+ * OSSL_TRACE2(TLS, "The ultimate question to answer %d is '%s'\n",
270
+ * 42, "What do you get when you multiply six by nine?");
271
+ */
272
+
273
+ # if !defined OPENSSL_NO_TRACE && !defined FIPS_MODULE
274
+
275
+ # define OSSL_TRACEV(category, args) \
276
+ OSSL_TRACE_BEGIN(category) \
277
+ BIO_printf args; \
278
+ OSSL_TRACE_END(category)
279
+
280
+ # else
281
+
282
+ # define OSSL_TRACEV(category, args) ((void)0)
283
+
284
+ # endif
285
+
286
+ # define OSSL_TRACE(category, text) \
287
+ OSSL_TRACEV(category, (trc_out, "%s", text))
288
+
289
+ # define OSSL_TRACE1(category, format, arg1) \
290
+ OSSL_TRACEV(category, (trc_out, format, arg1))
291
+ # define OSSL_TRACE2(category, format, arg1, arg2) \
292
+ OSSL_TRACEV(category, (trc_out, format, arg1, arg2))
293
+ # define OSSL_TRACE3(category, format, arg1, arg2, arg3) \
294
+ OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
295
+ # define OSSL_TRACE4(category, format, arg1, arg2, arg3, arg4) \
296
+ OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4))
297
+ # define OSSL_TRACE5(category, format, arg1, arg2, arg3, arg4, arg5) \
298
+ OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4, arg5))
299
+ # define OSSL_TRACE6(category, format, arg1, arg2, arg3, arg4, arg5, arg6) \
300
+ OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4, arg5, arg6))
301
+ # define OSSL_TRACE7(category, format, arg1, arg2, arg3, arg4, arg5, arg6, arg7) \
302
+ OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4, arg5, arg6, arg7))
303
+ # define OSSL_TRACE8(category, format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
304
+ OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8))
305
+ # define OSSL_TRACE9(category, format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \
306
+ OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9))
307
+
308
+ # ifdef __cplusplus
309
+ }
310
+ # endif
311
+
312
+ #endif