@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,147 @@
1
+ /*
2
+ * ngtcp2
3
+ *
4
+ * Copyright (c) 2019 ngtcp2 contributors
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining
7
+ * a copy of this software and associated documentation files (the
8
+ * "Software"), to deal in the Software without restriction, including
9
+ * without limitation the rights to use, copy, modify, merge, publish,
10
+ * distribute, sublicense, and/or sell copies of the Software, and to
11
+ * permit persons to whom the Software is furnished to do so, subject to
12
+ * the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be
15
+ * included in all copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
+ */
25
+ #ifndef NGTCP2_CRYPTO_QUICTLS_H
26
+ #define NGTCP2_CRYPTO_QUICTLS_H
27
+
28
+ #include <ngtcp2/ngtcp2.h>
29
+
30
+ #include <openssl/ssl.h>
31
+
32
+ #ifdef __cplusplus
33
+ extern "C" {
34
+ #endif /* defined(__cplusplus) */
35
+
36
+ /**
37
+ * @macrosection
38
+ *
39
+ * quictls specific error codes
40
+ */
41
+
42
+ /**
43
+ * @macro
44
+ *
45
+ * :macro:`NGTCP2_CRYPTO_QUICTLS_ERR_TLS_WANT_X509_LOOKUP` is the
46
+ * error code which indicates that TLS handshake routine is
47
+ * interrupted by X509 certificate lookup. See
48
+ * :macro:`SSL_ERROR_WANT_X509_LOOKUP` error description from
49
+ * `SSL_do_handshake`.
50
+ */
51
+ #define NGTCP2_CRYPTO_QUICTLS_ERR_TLS_WANT_X509_LOOKUP -10001
52
+
53
+ /**
54
+ * @macro
55
+ *
56
+ * :macro:`NGTCP2_CRYPTO_QUICTLS_ERR_TLS_WANT_CLIENT_HELLO_CB` is the
57
+ * error code which indicates that TLS handshake routine is
58
+ * interrupted by client hello callback. See
59
+ * :macro:`SSL_ERROR_WANT_CLIENT_HELLO_CB` error description from
60
+ * `SSL_do_handshake`.
61
+ */
62
+ #define NGTCP2_CRYPTO_QUICTLS_ERR_TLS_WANT_CLIENT_HELLO_CB -10002
63
+
64
+ /**
65
+ * @function
66
+ *
67
+ * `ngtcp2_crypto_quictls_from_ossl_encryption_level` translates
68
+ * |ossl_level| to :type:`ngtcp2_encryption_level`. This function is
69
+ * only available for quictls backend.
70
+ */
71
+ NGTCP2_EXTERN ngtcp2_encryption_level
72
+ ngtcp2_crypto_quictls_from_ossl_encryption_level(
73
+ OSSL_ENCRYPTION_LEVEL ossl_level);
74
+
75
+ /**
76
+ * @function
77
+ *
78
+ * `ngtcp2_crypto_quictls_from_ngtcp2_encryption_level` translates
79
+ * |encryption_level| to OSSL_ENCRYPTION_LEVEL. This function is only
80
+ * available for quictls backend.
81
+ */
82
+ NGTCP2_EXTERN OSSL_ENCRYPTION_LEVEL
83
+ ngtcp2_crypto_quictls_from_ngtcp2_encryption_level(
84
+ ngtcp2_encryption_level encryption_level);
85
+
86
+ /**
87
+ * @function
88
+ *
89
+ * `ngtcp2_crypto_quictls_configure_server_context` configures
90
+ * |ssl_ctx| for server side QUIC connection. It performs the
91
+ * following modifications:
92
+ *
93
+ * - Set minimum and maximum TLS version to TLSv1.3.
94
+ * - Set SSL_QUIC_METHOD by calling SSL_CTX_set_quic_method.
95
+ *
96
+ * Application must set a pointer to :type:`ngtcp2_crypto_conn_ref` to
97
+ * SSL object by calling SSL_set_app_data, and
98
+ * :type:`ngtcp2_crypto_conn_ref` object must have
99
+ * :member:`ngtcp2_crypto_conn_ref.get_conn` field assigned to get
100
+ * :type:`ngtcp2_conn`.
101
+ *
102
+ * It returns 0 if it succeeds, or -1.
103
+ */
104
+ NGTCP2_EXTERN int
105
+ ngtcp2_crypto_quictls_configure_server_context(SSL_CTX *ssl_ctx);
106
+
107
+ /**
108
+ * @function
109
+ *
110
+ * `ngtcp2_crypto_quictls_configure_client_context` configures
111
+ * |ssl_ctx| for client side QUIC connection. It performs the
112
+ * following modifications:
113
+ *
114
+ * - Set minimum and maximum TLS version to TLSv1.3.
115
+ * - Set SSL_QUIC_METHOD by calling SSL_CTX_set_quic_method.
116
+ *
117
+ * Application must set a pointer to :type:`ngtcp2_crypto_conn_ref` to
118
+ * SSL object by calling SSL_set_app_data, and
119
+ * :type:`ngtcp2_crypto_conn_ref` object must have
120
+ * :member:`ngtcp2_crypto_conn_ref.get_conn` field assigned to get
121
+ * :type:`ngtcp2_conn`.
122
+ *
123
+ * It returns 0 if it succeeds, or -1.
124
+ */
125
+ NGTCP2_EXTERN int
126
+ ngtcp2_crypto_quictls_configure_client_context(SSL_CTX *ssl_ctx);
127
+
128
+ /**
129
+ * @function
130
+ *
131
+ * `ngtcp2_crypto_quictls_init` initializes libngtcp2_crypto_quictls
132
+ * library. This initialization is optional. For quictls >= 3.0, it
133
+ * is highly recommended to call this function before any use of
134
+ * libngtcp2_crypto library API to workaround the performance
135
+ * regression. Note that calling this function does not solve all
136
+ * performance issues introduced in 3.x. For quictls 1.1.1, this
137
+ * function does nothing, and always succeeds.
138
+ *
139
+ * This function returns 0 if it succeeds, or -1.
140
+ */
141
+ NGTCP2_EXTERN int ngtcp2_crypto_quictls_init(void);
142
+
143
+ #ifdef __cplusplus
144
+ }
145
+ #endif /* defined(__cplusplus) */
146
+
147
+ #endif /* !defined(NGTCP2_CRYPTO_QUICTLS_H) */
@@ -0,0 +1,51 @@
1
+ /*
2
+ * ngtcp2
3
+ *
4
+ * Copyright (c) 2016 ngtcp2 contributors
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining
7
+ * a copy of this software and associated documentation files (the
8
+ * "Software"), to deal in the Software without restriction, including
9
+ * without limitation the rights to use, copy, modify, merge, publish,
10
+ * distribute, sublicense, and/or sell copies of the Software, and to
11
+ * permit persons to whom the Software is furnished to do so, subject to
12
+ * the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be
15
+ * included in all copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
+ */
25
+ #ifndef NGTCP2_VERSION_H
26
+ #define NGTCP2_VERSION_H
27
+
28
+ /**
29
+ * @macrosection
30
+ *
31
+ * Library version macros
32
+ */
33
+
34
+ /**
35
+ * @macro
36
+ *
37
+ * Version number of the ngtcp2 library release.
38
+ */
39
+ #define NGTCP2_VERSION "1.20.90"
40
+
41
+ /**
42
+ * @macro
43
+ *
44
+ * Numerical representation of the version number of the ngtcp2
45
+ * library release. This is a 24 bit number with 8 bits for major
46
+ * number, 8 bits for minor and 8 bits for patch. Version 1.2.3
47
+ * becomes 0x010203.
48
+ */
49
+ #define NGTCP2_VERSION_NUM 0x01145a
50
+
51
+ #endif /* !defined(NGTCP2_VERSION_H) */
@@ -0,0 +1,111 @@
1
+ /*
2
+ * Copyright 2002-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_AES_H
11
+ # define OPENSSL_AES_H
12
+ # pragma once
13
+
14
+ # include <openssl/macros.h>
15
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
16
+ # define HEADER_AES_H
17
+ # endif
18
+
19
+ # include <openssl/opensslconf.h>
20
+
21
+ # include <stddef.h>
22
+ # ifdef __cplusplus
23
+ extern "C" {
24
+ # endif
25
+
26
+ # define AES_BLOCK_SIZE 16
27
+
28
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
29
+
30
+ # define AES_ENCRYPT 1
31
+ # define AES_DECRYPT 0
32
+
33
+ # define AES_MAXNR 14
34
+
35
+
36
+ /* This should be a hidden type, but EVP requires that the size be known */
37
+ struct aes_key_st {
38
+ # ifdef AES_LONG
39
+ unsigned long rd_key[4 * (AES_MAXNR + 1)];
40
+ # else
41
+ unsigned int rd_key[4 * (AES_MAXNR + 1)];
42
+ # endif
43
+ int rounds;
44
+ };
45
+ typedef struct aes_key_st AES_KEY;
46
+
47
+ # endif
48
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
49
+ OSSL_DEPRECATEDIN_3_0 const char *AES_options(void);
50
+ OSSL_DEPRECATEDIN_3_0
51
+ int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
52
+ AES_KEY *key);
53
+ OSSL_DEPRECATEDIN_3_0
54
+ int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
55
+ AES_KEY *key);
56
+ OSSL_DEPRECATEDIN_3_0
57
+ void AES_encrypt(const unsigned char *in, unsigned char *out,
58
+ const AES_KEY *key);
59
+ OSSL_DEPRECATEDIN_3_0
60
+ void AES_decrypt(const unsigned char *in, unsigned char *out,
61
+ const AES_KEY *key);
62
+ OSSL_DEPRECATEDIN_3_0
63
+ void AES_ecb_encrypt(const unsigned char *in, unsigned char *out,
64
+ const AES_KEY *key, const int enc);
65
+ OSSL_DEPRECATEDIN_3_0
66
+ void AES_cbc_encrypt(const unsigned char *in, unsigned char *out,
67
+ size_t length, const AES_KEY *key,
68
+ unsigned char *ivec, const int enc);
69
+ OSSL_DEPRECATEDIN_3_0
70
+ void AES_cfb128_encrypt(const unsigned char *in, unsigned char *out,
71
+ size_t length, const AES_KEY *key,
72
+ unsigned char *ivec, int *num, const int enc);
73
+ OSSL_DEPRECATEDIN_3_0
74
+ void AES_cfb1_encrypt(const unsigned char *in, unsigned char *out,
75
+ size_t length, const AES_KEY *key,
76
+ unsigned char *ivec, int *num, const int enc);
77
+ OSSL_DEPRECATEDIN_3_0
78
+ void AES_cfb8_encrypt(const unsigned char *in, unsigned char *out,
79
+ size_t length, const AES_KEY *key,
80
+ unsigned char *ivec, int *num, const int enc);
81
+ OSSL_DEPRECATEDIN_3_0
82
+ void AES_ofb128_encrypt(const unsigned char *in, unsigned char *out,
83
+ size_t length, const AES_KEY *key,
84
+ unsigned char *ivec, int *num);
85
+
86
+ /* NB: the IV is _two_ blocks long */
87
+ OSSL_DEPRECATEDIN_3_0
88
+ void AES_ige_encrypt(const unsigned char *in, unsigned char *out,
89
+ size_t length, const AES_KEY *key,
90
+ unsigned char *ivec, const int enc);
91
+ /* NB: the IV is _four_ blocks long */
92
+ OSSL_DEPRECATEDIN_3_0
93
+ void AES_bi_ige_encrypt(const unsigned char *in, unsigned char *out,
94
+ size_t length, const AES_KEY *key, const AES_KEY *key2,
95
+ const unsigned char *ivec, const int enc);
96
+ OSSL_DEPRECATEDIN_3_0
97
+ int AES_wrap_key(AES_KEY *key, const unsigned char *iv,
98
+ unsigned char *out, const unsigned char *in,
99
+ unsigned int inlen);
100
+ OSSL_DEPRECATEDIN_3_0
101
+ int AES_unwrap_key(AES_KEY *key, const unsigned char *iv,
102
+ unsigned char *out, const unsigned char *in,
103
+ unsigned int inlen);
104
+ # endif
105
+
106
+
107
+ # ifdef __cplusplus
108
+ }
109
+ # endif
110
+
111
+ #endif