@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.
- package/ios/include/nghttp3/nghttp3.h +3295 -0
- package/ios/include/nghttp3/version.h +46 -0
- package/ios/include/ngtcp2/ngtcp2.h +6254 -0
- package/ios/include/ngtcp2/ngtcp2_crypto.h +1037 -0
- package/ios/include/ngtcp2/ngtcp2_crypto_quictls.h +147 -0
- package/ios/include/ngtcp2/version.h +51 -0
- package/ios/include/openssl/aes.h +111 -0
- package/ios/include/openssl/asn1.h +1131 -0
- package/ios/include/openssl/asn1_mac.h +10 -0
- package/ios/include/openssl/asn1err.h +140 -0
- package/ios/include/openssl/asn1t.h +946 -0
- package/ios/include/openssl/async.h +96 -0
- package/ios/include/openssl/asyncerr.h +29 -0
- package/ios/include/openssl/bio.h +887 -0
- package/ios/include/openssl/bioerr.h +65 -0
- package/ios/include/openssl/blowfish.h +78 -0
- package/ios/include/openssl/bn.h +584 -0
- package/ios/include/openssl/bnerr.h +47 -0
- package/ios/include/openssl/buffer.h +62 -0
- package/ios/include/openssl/buffererr.h +25 -0
- package/ios/include/openssl/camellia.h +117 -0
- package/ios/include/openssl/cast.h +71 -0
- package/ios/include/openssl/cmac.h +52 -0
- package/ios/include/openssl/cmp.h +597 -0
- package/ios/include/openssl/cmp_util.h +56 -0
- package/ios/include/openssl/cmperr.h +116 -0
- package/ios/include/openssl/cms.h +493 -0
- package/ios/include/openssl/cmserr.h +124 -0
- package/ios/include/openssl/comp.h +59 -0
- package/ios/include/openssl/comperr.h +31 -0
- package/ios/include/openssl/conf.h +214 -0
- package/ios/include/openssl/conf_api.h +46 -0
- package/ios/include/openssl/conferr.h +52 -0
- package/ios/include/openssl/configuration.h +149 -0
- package/ios/include/openssl/conftypes.h +44 -0
- package/ios/include/openssl/core.h +233 -0
- package/ios/include/openssl/core_dispatch.h +960 -0
- package/ios/include/openssl/core_names.h +561 -0
- package/ios/include/openssl/core_object.h +41 -0
- package/ios/include/openssl/crmf.h +227 -0
- package/ios/include/openssl/crmferr.h +50 -0
- package/ios/include/openssl/crypto.h +558 -0
- package/ios/include/openssl/cryptoerr.h +55 -0
- package/ios/include/openssl/cryptoerr_legacy.h +1466 -0
- package/ios/include/openssl/ct.h +573 -0
- package/ios/include/openssl/cterr.h +45 -0
- package/ios/include/openssl/decoder.h +133 -0
- package/ios/include/openssl/decodererr.h +28 -0
- package/ios/include/openssl/des.h +211 -0
- package/ios/include/openssl/dh.h +335 -0
- package/ios/include/openssl/dherr.h +58 -0
- package/ios/include/openssl/dsa.h +280 -0
- package/ios/include/openssl/dsaerr.h +44 -0
- package/ios/include/openssl/dtls1.h +57 -0
- package/ios/include/openssl/e_os2.h +308 -0
- package/ios/include/openssl/ebcdic.h +39 -0
- package/ios/include/openssl/ec.h +1572 -0
- package/ios/include/openssl/ecdh.h +10 -0
- package/ios/include/openssl/ecdsa.h +10 -0
- package/ios/include/openssl/ecerr.h +104 -0
- package/ios/include/openssl/encoder.h +124 -0
- package/ios/include/openssl/encodererr.h +28 -0
- package/ios/include/openssl/engine.h +833 -0
- package/ios/include/openssl/engineerr.h +63 -0
- package/ios/include/openssl/err.h +504 -0
- package/ios/include/openssl/ess.h +128 -0
- package/ios/include/openssl/esserr.h +32 -0
- package/ios/include/openssl/evp.h +2175 -0
- package/ios/include/openssl/evperr.h +134 -0
- package/ios/include/openssl/fips_names.h +77 -0
- package/ios/include/openssl/fipskey.h +36 -0
- package/ios/include/openssl/hmac.h +62 -0
- package/ios/include/openssl/http.h +109 -0
- package/ios/include/openssl/httperr.h +55 -0
- package/ios/include/openssl/idea.h +82 -0
- package/ios/include/openssl/kdf.h +138 -0
- package/ios/include/openssl/kdferr.h +16 -0
- package/ios/include/openssl/lhash.h +331 -0
- package/ios/include/openssl/macros.h +325 -0
- package/ios/include/openssl/md2.h +56 -0
- package/ios/include/openssl/md4.h +63 -0
- package/ios/include/openssl/md5.h +62 -0
- package/ios/include/openssl/mdc2.h +55 -0
- package/ios/include/openssl/modes.h +219 -0
- package/ios/include/openssl/obj_mac.h +5481 -0
- package/ios/include/openssl/objects.h +183 -0
- package/ios/include/openssl/objectserr.h +28 -0
- package/ios/include/openssl/ocsp.h +483 -0
- package/ios/include/openssl/ocsperr.h +53 -0
- package/ios/include/openssl/opensslconf.h +17 -0
- package/ios/include/openssl/opensslv.h +114 -0
- package/ios/include/openssl/ossl_typ.h +16 -0
- package/ios/include/openssl/param_build.h +63 -0
- package/ios/include/openssl/params.h +160 -0
- package/ios/include/openssl/pem.h +541 -0
- package/ios/include/openssl/pem2.h +19 -0
- package/ios/include/openssl/pemerr.h +58 -0
- package/ios/include/openssl/pkcs12.h +353 -0
- package/ios/include/openssl/pkcs12err.h +45 -0
- package/ios/include/openssl/pkcs7.h +430 -0
- package/ios/include/openssl/pkcs7err.h +63 -0
- package/ios/include/openssl/prov_ssl.h +34 -0
- package/ios/include/openssl/proverr.h +149 -0
- package/ios/include/openssl/provider.h +60 -0
- package/ios/include/openssl/quic.h +19 -0
- package/ios/include/openssl/rand.h +125 -0
- package/ios/include/openssl/randerr.h +69 -0
- package/ios/include/openssl/rc2.h +68 -0
- package/ios/include/openssl/rc4.h +47 -0
- package/ios/include/openssl/rc5.h +79 -0
- package/ios/include/openssl/ripemd.h +59 -0
- package/ios/include/openssl/rsa.h +610 -0
- package/ios/include/openssl/rsaerr.h +107 -0
- package/ios/include/openssl/safestack.h +297 -0
- package/ios/include/openssl/seed.h +113 -0
- package/ios/include/openssl/self_test.h +94 -0
- package/ios/include/openssl/sha.h +138 -0
- package/ios/include/openssl/srp.h +285 -0
- package/ios/include/openssl/srtp.h +56 -0
- package/ios/include/openssl/ssl.h +2671 -0
- package/ios/include/openssl/ssl2.h +30 -0
- package/ios/include/openssl/ssl3.h +347 -0
- package/ios/include/openssl/sslerr.h +348 -0
- package/ios/include/openssl/sslerr_legacy.h +468 -0
- package/ios/include/openssl/stack.h +90 -0
- package/ios/include/openssl/store.h +369 -0
- package/ios/include/openssl/storeerr.h +49 -0
- package/ios/include/openssl/symhacks.h +39 -0
- package/ios/include/openssl/tls1.h +1186 -0
- package/ios/include/openssl/trace.h +312 -0
- package/ios/include/openssl/ts.h +505 -0
- package/ios/include/openssl/tserr.h +67 -0
- package/ios/include/openssl/txt_db.h +63 -0
- package/ios/include/openssl/types.h +239 -0
- package/ios/include/openssl/ui.h +407 -0
- package/ios/include/openssl/uierr.h +38 -0
- package/ios/include/openssl/whrlpool.h +62 -0
- package/ios/include/openssl/x509.h +1279 -0
- package/ios/include/openssl/x509_vfy.h +894 -0
- package/ios/include/openssl/x509err.h +69 -0
- package/ios/include/openssl/x509v3.h +1453 -0
- package/ios/include/openssl/x509v3err.h +93 -0
- package/ios/libs/libcrypto.a +0 -0
- package/ios/libs/libnghttp3.a +0 -0
- package/ios/libs/libngtcp2.a +0 -0
- package/ios/libs/libngtcp2_crypto_quictls.a +0 -0
- package/ios/libs/libssl.a +0 -0
- package/package.json +2 -2
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by util/mkerr.pl DO NOT EDIT
|
|
3
|
+
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
6
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
7
|
+
* in the file LICENSE in the source distribution or at
|
|
8
|
+
* https://www.openssl.org/source/license.html
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#ifndef OPENSSL_EVPERR_H
|
|
12
|
+
# define OPENSSL_EVPERR_H
|
|
13
|
+
# pragma once
|
|
14
|
+
|
|
15
|
+
# include <openssl/opensslconf.h>
|
|
16
|
+
# include <openssl/symhacks.h>
|
|
17
|
+
# include <openssl/cryptoerr_legacy.h>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* EVP reason codes.
|
|
23
|
+
*/
|
|
24
|
+
# define EVP_R_AES_KEY_SETUP_FAILED 143
|
|
25
|
+
# define EVP_R_ARIA_KEY_SETUP_FAILED 176
|
|
26
|
+
# define EVP_R_BAD_ALGORITHM_NAME 200
|
|
27
|
+
# define EVP_R_BAD_DECRYPT 100
|
|
28
|
+
# define EVP_R_BAD_KEY_LENGTH 195
|
|
29
|
+
# define EVP_R_BUFFER_TOO_SMALL 155
|
|
30
|
+
# define EVP_R_CACHE_CONSTANTS_FAILED 225
|
|
31
|
+
# define EVP_R_CAMELLIA_KEY_SETUP_FAILED 157
|
|
32
|
+
# define EVP_R_CANNOT_GET_PARAMETERS 197
|
|
33
|
+
# define EVP_R_CANNOT_SET_PARAMETERS 198
|
|
34
|
+
# define EVP_R_CIPHER_NOT_GCM_MODE 184
|
|
35
|
+
# define EVP_R_CIPHER_PARAMETER_ERROR 122
|
|
36
|
+
# define EVP_R_COMMAND_NOT_SUPPORTED 147
|
|
37
|
+
# define EVP_R_CONFLICTING_ALGORITHM_NAME 201
|
|
38
|
+
# define EVP_R_COPY_ERROR 173
|
|
39
|
+
# define EVP_R_CTRL_NOT_IMPLEMENTED 132
|
|
40
|
+
# define EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED 133
|
|
41
|
+
# define EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH 138
|
|
42
|
+
# define EVP_R_DECODE_ERROR 114
|
|
43
|
+
# define EVP_R_DEFAULT_QUERY_PARSE_ERROR 210
|
|
44
|
+
# define EVP_R_DIFFERENT_KEY_TYPES 101
|
|
45
|
+
# define EVP_R_DIFFERENT_PARAMETERS 153
|
|
46
|
+
# define EVP_R_ERROR_LOADING_SECTION 165
|
|
47
|
+
# define EVP_R_EXPECTING_AN_HMAC_KEY 174
|
|
48
|
+
# define EVP_R_EXPECTING_AN_RSA_KEY 127
|
|
49
|
+
# define EVP_R_EXPECTING_A_DH_KEY 128
|
|
50
|
+
# define EVP_R_EXPECTING_A_DSA_KEY 129
|
|
51
|
+
# define EVP_R_EXPECTING_A_ECX_KEY 219
|
|
52
|
+
# define EVP_R_EXPECTING_A_EC_KEY 142
|
|
53
|
+
# define EVP_R_EXPECTING_A_POLY1305_KEY 164
|
|
54
|
+
# define EVP_R_EXPECTING_A_SIPHASH_KEY 175
|
|
55
|
+
# define EVP_R_FINAL_ERROR 188
|
|
56
|
+
# define EVP_R_GENERATE_ERROR 214
|
|
57
|
+
# define EVP_R_GET_RAW_KEY_FAILED 182
|
|
58
|
+
# define EVP_R_ILLEGAL_SCRYPT_PARAMETERS 171
|
|
59
|
+
# define EVP_R_INACCESSIBLE_DOMAIN_PARAMETERS 204
|
|
60
|
+
# define EVP_R_INACCESSIBLE_KEY 203
|
|
61
|
+
# define EVP_R_INITIALIZATION_ERROR 134
|
|
62
|
+
# define EVP_R_INPUT_NOT_INITIALIZED 111
|
|
63
|
+
# define EVP_R_INVALID_CUSTOM_LENGTH 185
|
|
64
|
+
# define EVP_R_INVALID_DIGEST 152
|
|
65
|
+
# define EVP_R_INVALID_IV_LENGTH 194
|
|
66
|
+
# define EVP_R_INVALID_KEY 163
|
|
67
|
+
# define EVP_R_INVALID_KEY_LENGTH 130
|
|
68
|
+
# define EVP_R_INVALID_LENGTH 221
|
|
69
|
+
# define EVP_R_INVALID_NULL_ALGORITHM 218
|
|
70
|
+
# define EVP_R_INVALID_OPERATION 148
|
|
71
|
+
# define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
|
|
72
|
+
# define EVP_R_INVALID_SALT_LENGTH 186
|
|
73
|
+
# define EVP_R_INVALID_SECRET_LENGTH 223
|
|
74
|
+
# define EVP_R_INVALID_SEED_LENGTH 220
|
|
75
|
+
# define EVP_R_INVALID_VALUE 222
|
|
76
|
+
# define EVP_R_KEYMGMT_EXPORT_FAILURE 205
|
|
77
|
+
# define EVP_R_KEY_SETUP_FAILED 180
|
|
78
|
+
# define EVP_R_LOCKING_NOT_SUPPORTED 213
|
|
79
|
+
# define EVP_R_MEMORY_LIMIT_EXCEEDED 172
|
|
80
|
+
# define EVP_R_MESSAGE_DIGEST_IS_NULL 159
|
|
81
|
+
# define EVP_R_METHOD_NOT_SUPPORTED 144
|
|
82
|
+
# define EVP_R_MISSING_PARAMETERS 103
|
|
83
|
+
# define EVP_R_NOT_ABLE_TO_COPY_CTX 190
|
|
84
|
+
# define EVP_R_NOT_XOF_OR_INVALID_LENGTH 178
|
|
85
|
+
# define EVP_R_NO_CIPHER_SET 131
|
|
86
|
+
# define EVP_R_NO_DEFAULT_DIGEST 158
|
|
87
|
+
# define EVP_R_NO_DIGEST_SET 139
|
|
88
|
+
# define EVP_R_NO_IMPORT_FUNCTION 206
|
|
89
|
+
# define EVP_R_NO_KEYMGMT_AVAILABLE 199
|
|
90
|
+
# define EVP_R_NO_KEYMGMT_PRESENT 196
|
|
91
|
+
# define EVP_R_NO_KEY_SET 154
|
|
92
|
+
# define EVP_R_NO_OPERATION_SET 149
|
|
93
|
+
# define EVP_R_NULL_MAC_PKEY_CTX 208
|
|
94
|
+
# define EVP_R_ONLY_ONESHOT_SUPPORTED 177
|
|
95
|
+
# define EVP_R_OPERATION_NOT_INITIALIZED 151
|
|
96
|
+
# define EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE 150
|
|
97
|
+
# define EVP_R_OUTPUT_WOULD_OVERFLOW 202
|
|
98
|
+
# define EVP_R_PARAMETER_TOO_LARGE 187
|
|
99
|
+
# define EVP_R_PARTIALLY_OVERLAPPING 162
|
|
100
|
+
# define EVP_R_PBKDF2_ERROR 181
|
|
101
|
+
# define EVP_R_PKEY_APPLICATION_ASN1_METHOD_ALREADY_REGISTERED 179
|
|
102
|
+
# define EVP_R_PRIVATE_KEY_DECODE_ERROR 145
|
|
103
|
+
# define EVP_R_PRIVATE_KEY_ENCODE_ERROR 146
|
|
104
|
+
# define EVP_R_PUBLIC_KEY_NOT_RSA 106
|
|
105
|
+
# define EVP_R_SETTING_XOF_FAILED 227
|
|
106
|
+
# define EVP_R_SET_DEFAULT_PROPERTY_FAILURE 209
|
|
107
|
+
# define EVP_R_TOO_MANY_RECORDS 183
|
|
108
|
+
# define EVP_R_UNABLE_TO_ENABLE_LOCKING 212
|
|
109
|
+
# define EVP_R_UNABLE_TO_GET_MAXIMUM_REQUEST_SIZE 215
|
|
110
|
+
# define EVP_R_UNABLE_TO_GET_RANDOM_STRENGTH 216
|
|
111
|
+
# define EVP_R_UNABLE_TO_LOCK_CONTEXT 211
|
|
112
|
+
# define EVP_R_UNABLE_TO_SET_CALLBACKS 217
|
|
113
|
+
# define EVP_R_UNKNOWN_CIPHER 160
|
|
114
|
+
# define EVP_R_UNKNOWN_DIGEST 161
|
|
115
|
+
# define EVP_R_UNKNOWN_KEY_TYPE 207
|
|
116
|
+
# define EVP_R_UNKNOWN_OPTION 169
|
|
117
|
+
# define EVP_R_UNKNOWN_PBE_ALGORITHM 121
|
|
118
|
+
# define EVP_R_UNSUPPORTED_ALGORITHM 156
|
|
119
|
+
# define EVP_R_UNSUPPORTED_CIPHER 107
|
|
120
|
+
# define EVP_R_UNSUPPORTED_KEYLENGTH 123
|
|
121
|
+
# define EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION 124
|
|
122
|
+
# define EVP_R_UNSUPPORTED_KEY_SIZE 108
|
|
123
|
+
# define EVP_R_UNSUPPORTED_KEY_TYPE 224
|
|
124
|
+
# define EVP_R_UNSUPPORTED_NUMBER_OF_ROUNDS 135
|
|
125
|
+
# define EVP_R_UNSUPPORTED_PRF 125
|
|
126
|
+
# define EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM 118
|
|
127
|
+
# define EVP_R_UNSUPPORTED_SALT_TYPE 126
|
|
128
|
+
# define EVP_R_UPDATE_ERROR 189
|
|
129
|
+
# define EVP_R_WRAP_MODE_NOT_ALLOWED 170
|
|
130
|
+
# define EVP_R_WRONG_FINAL_BLOCK_LENGTH 109
|
|
131
|
+
# define EVP_R_XTS_DATA_UNIT_IS_TOO_LARGE 191
|
|
132
|
+
# define EVP_R_XTS_DUPLICATED_KEYS 192
|
|
133
|
+
|
|
134
|
+
#endif
|
|
@@ -0,0 +1,77 @@
|
|
|
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_FIPS_NAMES_H
|
|
11
|
+
# define OPENSSL_FIPS_NAMES_H
|
|
12
|
+
# pragma once
|
|
13
|
+
|
|
14
|
+
# ifdef __cplusplus
|
|
15
|
+
extern "C" {
|
|
16
|
+
# endif
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
* Parameter names that the FIPS Provider defines
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/*
|
|
23
|
+
* The calculated MAC of the module file (Used for FIPS Self Testing)
|
|
24
|
+
* Type: OSSL_PARAM_UTF8_STRING
|
|
25
|
+
*/
|
|
26
|
+
# define OSSL_PROV_FIPS_PARAM_MODULE_MAC "module-mac"
|
|
27
|
+
/*
|
|
28
|
+
* A version number for the fips install process (Used for FIPS Self Testing)
|
|
29
|
+
* Type: OSSL_PARAM_UTF8_STRING
|
|
30
|
+
*/
|
|
31
|
+
# define OSSL_PROV_FIPS_PARAM_INSTALL_VERSION "install-version"
|
|
32
|
+
/*
|
|
33
|
+
* The calculated MAC of the install status indicator (Used for FIPS Self Testing)
|
|
34
|
+
* Type: OSSL_PARAM_UTF8_STRING
|
|
35
|
+
*/
|
|
36
|
+
# define OSSL_PROV_FIPS_PARAM_INSTALL_MAC "install-mac"
|
|
37
|
+
/*
|
|
38
|
+
* The install status indicator (Used for FIPS Self Testing)
|
|
39
|
+
* Type: OSSL_PARAM_UTF8_STRING
|
|
40
|
+
*/
|
|
41
|
+
# define OSSL_PROV_FIPS_PARAM_INSTALL_STATUS "install-status"
|
|
42
|
+
|
|
43
|
+
/*
|
|
44
|
+
* A boolean that determines if the FIPS conditional test errors result in
|
|
45
|
+
* the module entering an error state.
|
|
46
|
+
* Type: OSSL_PARAM_UTF8_STRING
|
|
47
|
+
*/
|
|
48
|
+
# define OSSL_PROV_FIPS_PARAM_CONDITIONAL_ERRORS "conditional-errors"
|
|
49
|
+
|
|
50
|
+
/*
|
|
51
|
+
* A boolean that determines if the runtime FIPS security checks are performed.
|
|
52
|
+
* This is enabled by default.
|
|
53
|
+
* Type: OSSL_PARAM_UTF8_STRING
|
|
54
|
+
*/
|
|
55
|
+
# define OSSL_PROV_FIPS_PARAM_SECURITY_CHECKS "security-checks"
|
|
56
|
+
|
|
57
|
+
/*
|
|
58
|
+
* A boolean that determines if the runtime FIPS check for TLS1_PRF EMS is performed.
|
|
59
|
+
* This is disabled by default.
|
|
60
|
+
* Type: OSSL_PARAM_UTF8_STRING
|
|
61
|
+
*/
|
|
62
|
+
# define OSSL_PROV_FIPS_PARAM_TLS1_PRF_EMS_CHECK "tls1-prf-ems-check"
|
|
63
|
+
|
|
64
|
+
/*
|
|
65
|
+
* A boolean that determines if truncated digests can be used with Hash and HMAC
|
|
66
|
+
* DRBGs. FIPS 140-3 IG D.R disallows such use for efficiency rather than
|
|
67
|
+
* security reasons.
|
|
68
|
+
* This is disabled by default.
|
|
69
|
+
* Type: OSSL_PARAM_UTF8_STRING
|
|
70
|
+
*/
|
|
71
|
+
# define OSSL_PROV_FIPS_PARAM_DRBG_TRUNC_DIGEST "drbg-no-trunc-md"
|
|
72
|
+
|
|
73
|
+
# ifdef __cplusplus
|
|
74
|
+
}
|
|
75
|
+
# endif
|
|
76
|
+
|
|
77
|
+
#endif /* OPENSSL_FIPS_NAMES_H */
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* WARNING: do not edit!
|
|
3
|
+
* Generated by Makefile from include/openssl/fipskey.h.in
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
8
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
9
|
+
* in the file LICENSE in the source distribution or at
|
|
10
|
+
* https://www.openssl.org/source/license.html
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
#ifndef OPENSSL_FIPSKEY_H
|
|
14
|
+
# define OPENSSL_FIPSKEY_H
|
|
15
|
+
# pragma once
|
|
16
|
+
|
|
17
|
+
# ifdef __cplusplus
|
|
18
|
+
extern "C" {
|
|
19
|
+
# endif
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* The FIPS validation HMAC key, usable as an array initializer.
|
|
23
|
+
*/
|
|
24
|
+
#define FIPS_KEY_ELEMENTS \
|
|
25
|
+
0xf4, 0x55, 0x66, 0x50, 0xac, 0x31, 0xd3, 0x54, 0x61, 0x61, 0x0b, 0xac, 0x4e, 0xd8, 0x1b, 0x1a, 0x18, 0x1b, 0x2d, 0x8a, 0x43, 0xea, 0x28, 0x54, 0xcb, 0xae, 0x22, 0xca, 0x74, 0x56, 0x08, 0x13
|
|
26
|
+
|
|
27
|
+
/*
|
|
28
|
+
* The FIPS validation key, as a string.
|
|
29
|
+
*/
|
|
30
|
+
#define FIPS_KEY_STRING "f4556650ac31d35461610bac4ed81b1a181b2d8a43ea2854cbae22ca74560813"
|
|
31
|
+
|
|
32
|
+
# ifdef __cplusplus
|
|
33
|
+
}
|
|
34
|
+
# endif
|
|
35
|
+
|
|
36
|
+
#endif
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 1995-2021 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_HMAC_H
|
|
11
|
+
# define OPENSSL_HMAC_H
|
|
12
|
+
# pragma once
|
|
13
|
+
|
|
14
|
+
# include <openssl/macros.h>
|
|
15
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
16
|
+
# define HEADER_HMAC_H
|
|
17
|
+
# endif
|
|
18
|
+
|
|
19
|
+
# include <openssl/opensslconf.h>
|
|
20
|
+
|
|
21
|
+
# include <openssl/evp.h>
|
|
22
|
+
|
|
23
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
24
|
+
# define HMAC_MAX_MD_CBLOCK 200 /* Deprecated */
|
|
25
|
+
# endif
|
|
26
|
+
|
|
27
|
+
# ifdef __cplusplus
|
|
28
|
+
extern "C" {
|
|
29
|
+
# endif
|
|
30
|
+
|
|
31
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
32
|
+
OSSL_DEPRECATEDIN_3_0 size_t HMAC_size(const HMAC_CTX *e);
|
|
33
|
+
OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void);
|
|
34
|
+
OSSL_DEPRECATEDIN_3_0 int HMAC_CTX_reset(HMAC_CTX *ctx);
|
|
35
|
+
OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx);
|
|
36
|
+
# endif
|
|
37
|
+
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
|
38
|
+
OSSL_DEPRECATEDIN_1_1_0 __owur int HMAC_Init(HMAC_CTX *ctx,
|
|
39
|
+
const void *key, int len,
|
|
40
|
+
const EVP_MD *md);
|
|
41
|
+
# endif
|
|
42
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
43
|
+
OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
|
|
44
|
+
const EVP_MD *md, ENGINE *impl);
|
|
45
|
+
OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data,
|
|
46
|
+
size_t len);
|
|
47
|
+
OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md,
|
|
48
|
+
unsigned int *len);
|
|
49
|
+
OSSL_DEPRECATEDIN_3_0 __owur int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);
|
|
50
|
+
OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags);
|
|
51
|
+
OSSL_DEPRECATEDIN_3_0 const EVP_MD *HMAC_CTX_get_md(const HMAC_CTX *ctx);
|
|
52
|
+
# endif
|
|
53
|
+
|
|
54
|
+
unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,
|
|
55
|
+
const unsigned char *data, size_t data_len,
|
|
56
|
+
unsigned char *md, unsigned int *md_len);
|
|
57
|
+
|
|
58
|
+
# ifdef __cplusplus
|
|
59
|
+
}
|
|
60
|
+
# endif
|
|
61
|
+
|
|
62
|
+
#endif
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
|
|
3
|
+
* Copyright Siemens AG 2018-2020
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
6
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
7
|
+
* in the file LICENSE in the source distribution or at
|
|
8
|
+
* https://www.openssl.org/source/license.html
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#ifndef OPENSSL_HTTP_H
|
|
12
|
+
# define OPENSSL_HTTP_H
|
|
13
|
+
# pragma once
|
|
14
|
+
|
|
15
|
+
# include <openssl/opensslconf.h>
|
|
16
|
+
|
|
17
|
+
# include <openssl/bio.h>
|
|
18
|
+
# include <openssl/asn1.h>
|
|
19
|
+
# include <openssl/conf.h>
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# ifdef __cplusplus
|
|
23
|
+
extern "C" {
|
|
24
|
+
# endif
|
|
25
|
+
|
|
26
|
+
# define OSSL_HTTP_NAME "http"
|
|
27
|
+
# define OSSL_HTTPS_NAME "https"
|
|
28
|
+
# define OSSL_HTTP_PREFIX OSSL_HTTP_NAME"://"
|
|
29
|
+
# define OSSL_HTTPS_PREFIX OSSL_HTTPS_NAME"://"
|
|
30
|
+
# define OSSL_HTTP_PORT "80"
|
|
31
|
+
# define OSSL_HTTPS_PORT "443"
|
|
32
|
+
# define OPENSSL_NO_PROXY "NO_PROXY"
|
|
33
|
+
# define OPENSSL_HTTP_PROXY "HTTP_PROXY"
|
|
34
|
+
# define OPENSSL_HTTPS_PROXY "HTTPS_PROXY"
|
|
35
|
+
|
|
36
|
+
#define OSSL_HTTP_DEFAULT_MAX_LINE_LEN (4 * 1024)
|
|
37
|
+
#define OSSL_HTTP_DEFAULT_MAX_RESP_LEN (100 * 1024)
|
|
38
|
+
|
|
39
|
+
/* Low-level HTTP API */
|
|
40
|
+
OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size);
|
|
41
|
+
void OSSL_HTTP_REQ_CTX_free(OSSL_HTTP_REQ_CTX *rctx);
|
|
42
|
+
int OSSL_HTTP_REQ_CTX_set_request_line(OSSL_HTTP_REQ_CTX *rctx, int method_POST,
|
|
43
|
+
const char *server, const char *port,
|
|
44
|
+
const char *path);
|
|
45
|
+
int OSSL_HTTP_REQ_CTX_add1_header(OSSL_HTTP_REQ_CTX *rctx,
|
|
46
|
+
const char *name, const char *value);
|
|
47
|
+
int OSSL_HTTP_REQ_CTX_set_expected(OSSL_HTTP_REQ_CTX *rctx,
|
|
48
|
+
const char *content_type, int asn1,
|
|
49
|
+
int timeout, int keep_alive);
|
|
50
|
+
int OSSL_HTTP_REQ_CTX_set1_req(OSSL_HTTP_REQ_CTX *rctx, const char *content_type,
|
|
51
|
+
const ASN1_ITEM *it, const ASN1_VALUE *req);
|
|
52
|
+
int OSSL_HTTP_REQ_CTX_nbio(OSSL_HTTP_REQ_CTX *rctx);
|
|
53
|
+
int OSSL_HTTP_REQ_CTX_nbio_d2i(OSSL_HTTP_REQ_CTX *rctx,
|
|
54
|
+
ASN1_VALUE **pval, const ASN1_ITEM *it);
|
|
55
|
+
BIO *OSSL_HTTP_REQ_CTX_exchange(OSSL_HTTP_REQ_CTX *rctx);
|
|
56
|
+
BIO *OSSL_HTTP_REQ_CTX_get0_mem_bio(const OSSL_HTTP_REQ_CTX *rctx);
|
|
57
|
+
size_t OSSL_HTTP_REQ_CTX_get_resp_len(const OSSL_HTTP_REQ_CTX *rctx);
|
|
58
|
+
void OSSL_HTTP_REQ_CTX_set_max_response_length(OSSL_HTTP_REQ_CTX *rctx,
|
|
59
|
+
unsigned long len);
|
|
60
|
+
int OSSL_HTTP_is_alive(const OSSL_HTTP_REQ_CTX *rctx);
|
|
61
|
+
|
|
62
|
+
/* High-level HTTP API */
|
|
63
|
+
typedef BIO *(*OSSL_HTTP_bio_cb_t)(BIO *bio, void *arg, int connect, int detail);
|
|
64
|
+
OSSL_HTTP_REQ_CTX *OSSL_HTTP_open(const char *server, const char *port,
|
|
65
|
+
const char *proxy, const char *no_proxy,
|
|
66
|
+
int use_ssl, BIO *bio, BIO *rbio,
|
|
67
|
+
OSSL_HTTP_bio_cb_t bio_update_fn, void *arg,
|
|
68
|
+
int buf_size, int overall_timeout);
|
|
69
|
+
int OSSL_HTTP_proxy_connect(BIO *bio, const char *server, const char *port,
|
|
70
|
+
const char *proxyuser, const char *proxypass,
|
|
71
|
+
int timeout, BIO *bio_err, const char *prog);
|
|
72
|
+
int OSSL_HTTP_set1_request(OSSL_HTTP_REQ_CTX *rctx, const char *path,
|
|
73
|
+
const STACK_OF(CONF_VALUE) *headers,
|
|
74
|
+
const char *content_type, BIO *req,
|
|
75
|
+
const char *expected_content_type, int expect_asn1,
|
|
76
|
+
size_t max_resp_len, int timeout, int keep_alive);
|
|
77
|
+
BIO *OSSL_HTTP_exchange(OSSL_HTTP_REQ_CTX *rctx, char **redirection_url);
|
|
78
|
+
BIO *OSSL_HTTP_get(const char *url, const char *proxy, const char *no_proxy,
|
|
79
|
+
BIO *bio, BIO *rbio,
|
|
80
|
+
OSSL_HTTP_bio_cb_t bio_update_fn, void *arg,
|
|
81
|
+
int buf_size, const STACK_OF(CONF_VALUE) *headers,
|
|
82
|
+
const char *expected_content_type, int expect_asn1,
|
|
83
|
+
size_t max_resp_len, int timeout);
|
|
84
|
+
BIO *OSSL_HTTP_transfer(OSSL_HTTP_REQ_CTX **prctx,
|
|
85
|
+
const char *server, const char *port,
|
|
86
|
+
const char *path, int use_ssl,
|
|
87
|
+
const char *proxy, const char *no_proxy,
|
|
88
|
+
BIO *bio, BIO *rbio,
|
|
89
|
+
OSSL_HTTP_bio_cb_t bio_update_fn, void *arg,
|
|
90
|
+
int buf_size, const STACK_OF(CONF_VALUE) *headers,
|
|
91
|
+
const char *content_type, BIO *req,
|
|
92
|
+
const char *expected_content_type, int expect_asn1,
|
|
93
|
+
size_t max_resp_len, int timeout, int keep_alive);
|
|
94
|
+
int OSSL_HTTP_close(OSSL_HTTP_REQ_CTX *rctx, int ok);
|
|
95
|
+
|
|
96
|
+
/* Auxiliary functions */
|
|
97
|
+
int OSSL_parse_url(const char *url, char **pscheme, char **puser, char **phost,
|
|
98
|
+
char **pport, int *pport_num,
|
|
99
|
+
char **ppath, char **pquery, char **pfrag);
|
|
100
|
+
int OSSL_HTTP_parse_url(const char *url, int *pssl, char **puser, char **phost,
|
|
101
|
+
char **pport, int *pport_num,
|
|
102
|
+
char **ppath, char **pquery, char **pfrag);
|
|
103
|
+
const char *OSSL_HTTP_adapt_proxy(const char *proxy, const char *no_proxy,
|
|
104
|
+
const char *server, int use_ssl);
|
|
105
|
+
|
|
106
|
+
# ifdef __cplusplus
|
|
107
|
+
}
|
|
108
|
+
# endif
|
|
109
|
+
#endif /* !defined(OPENSSL_HTTP_H) */
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by util/mkerr.pl DO NOT EDIT
|
|
3
|
+
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
6
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
7
|
+
* in the file LICENSE in the source distribution or at
|
|
8
|
+
* https://www.openssl.org/source/license.html
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#ifndef OPENSSL_HTTPERR_H
|
|
12
|
+
# define OPENSSL_HTTPERR_H
|
|
13
|
+
# pragma once
|
|
14
|
+
|
|
15
|
+
# include <openssl/opensslconf.h>
|
|
16
|
+
# include <openssl/symhacks.h>
|
|
17
|
+
# include <openssl/cryptoerr_legacy.h>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* HTTP reason codes.
|
|
23
|
+
*/
|
|
24
|
+
# define HTTP_R_ASN1_LEN_EXCEEDS_MAX_RESP_LEN 108
|
|
25
|
+
# define HTTP_R_CONNECT_FAILURE 100
|
|
26
|
+
# define HTTP_R_ERROR_PARSING_ASN1_LENGTH 109
|
|
27
|
+
# define HTTP_R_ERROR_PARSING_CONTENT_LENGTH 119
|
|
28
|
+
# define HTTP_R_ERROR_PARSING_URL 101
|
|
29
|
+
# define HTTP_R_ERROR_RECEIVING 103
|
|
30
|
+
# define HTTP_R_ERROR_SENDING 102
|
|
31
|
+
# define HTTP_R_FAILED_READING_DATA 128
|
|
32
|
+
# define HTTP_R_HEADER_PARSE_ERROR 126
|
|
33
|
+
# define HTTP_R_INCONSISTENT_CONTENT_LENGTH 120
|
|
34
|
+
# define HTTP_R_INVALID_PORT_NUMBER 123
|
|
35
|
+
# define HTTP_R_INVALID_URL_PATH 125
|
|
36
|
+
# define HTTP_R_INVALID_URL_SCHEME 124
|
|
37
|
+
# define HTTP_R_MAX_RESP_LEN_EXCEEDED 117
|
|
38
|
+
# define HTTP_R_MISSING_ASN1_ENCODING 110
|
|
39
|
+
# define HTTP_R_MISSING_CONTENT_TYPE 121
|
|
40
|
+
# define HTTP_R_MISSING_REDIRECT_LOCATION 111
|
|
41
|
+
# define HTTP_R_RECEIVED_ERROR 105
|
|
42
|
+
# define HTTP_R_RECEIVED_WRONG_HTTP_VERSION 106
|
|
43
|
+
# define HTTP_R_REDIRECTION_FROM_HTTPS_TO_HTTP 112
|
|
44
|
+
# define HTTP_R_REDIRECTION_NOT_ENABLED 116
|
|
45
|
+
# define HTTP_R_RESPONSE_LINE_TOO_LONG 113
|
|
46
|
+
# define HTTP_R_RESPONSE_PARSE_ERROR 104
|
|
47
|
+
# define HTTP_R_RETRY_TIMEOUT 129
|
|
48
|
+
# define HTTP_R_SERVER_CANCELED_CONNECTION 127
|
|
49
|
+
# define HTTP_R_SOCK_NOT_SUPPORTED 122
|
|
50
|
+
# define HTTP_R_STATUS_CODE_UNSUPPORTED 114
|
|
51
|
+
# define HTTP_R_TLS_NOT_ENABLED 107
|
|
52
|
+
# define HTTP_R_TOO_MANY_REDIRECTIONS 115
|
|
53
|
+
# define HTTP_R_UNEXPECTED_CONTENT_TYPE 118
|
|
54
|
+
|
|
55
|
+
#endif
|
|
@@ -0,0 +1,82 @@
|
|
|
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_IDEA_H
|
|
11
|
+
# define OPENSSL_IDEA_H
|
|
12
|
+
# pragma once
|
|
13
|
+
|
|
14
|
+
# include <openssl/macros.h>
|
|
15
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
16
|
+
# define HEADER_IDEA_H
|
|
17
|
+
# endif
|
|
18
|
+
|
|
19
|
+
# include <openssl/opensslconf.h>
|
|
20
|
+
|
|
21
|
+
# ifndef OPENSSL_NO_IDEA
|
|
22
|
+
# ifdef __cplusplus
|
|
23
|
+
extern "C" {
|
|
24
|
+
# endif
|
|
25
|
+
|
|
26
|
+
# define IDEA_BLOCK 8
|
|
27
|
+
# define IDEA_KEY_LENGTH 16
|
|
28
|
+
|
|
29
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
30
|
+
|
|
31
|
+
typedef unsigned int IDEA_INT;
|
|
32
|
+
|
|
33
|
+
# define IDEA_ENCRYPT 1
|
|
34
|
+
# define IDEA_DECRYPT 0
|
|
35
|
+
|
|
36
|
+
typedef struct idea_key_st {
|
|
37
|
+
IDEA_INT data[9][6];
|
|
38
|
+
} IDEA_KEY_SCHEDULE;
|
|
39
|
+
#endif
|
|
40
|
+
#ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
41
|
+
OSSL_DEPRECATEDIN_3_0 const char *IDEA_options(void);
|
|
42
|
+
OSSL_DEPRECATEDIN_3_0 void IDEA_ecb_encrypt(const unsigned char *in,
|
|
43
|
+
unsigned char *out,
|
|
44
|
+
IDEA_KEY_SCHEDULE *ks);
|
|
45
|
+
OSSL_DEPRECATEDIN_3_0 void IDEA_set_encrypt_key(const unsigned char *key,
|
|
46
|
+
IDEA_KEY_SCHEDULE *ks);
|
|
47
|
+
OSSL_DEPRECATEDIN_3_0 void IDEA_set_decrypt_key(IDEA_KEY_SCHEDULE *ek,
|
|
48
|
+
IDEA_KEY_SCHEDULE *dk);
|
|
49
|
+
OSSL_DEPRECATEDIN_3_0 void IDEA_cbc_encrypt(const unsigned char *in,
|
|
50
|
+
unsigned char *out, long length,
|
|
51
|
+
IDEA_KEY_SCHEDULE *ks,
|
|
52
|
+
unsigned char *iv, int enc);
|
|
53
|
+
OSSL_DEPRECATEDIN_3_0 void IDEA_cfb64_encrypt(const unsigned char *in,
|
|
54
|
+
unsigned char *out, long length,
|
|
55
|
+
IDEA_KEY_SCHEDULE *ks,
|
|
56
|
+
unsigned char *iv, int *num,
|
|
57
|
+
int enc);
|
|
58
|
+
OSSL_DEPRECATEDIN_3_0 void IDEA_ofb64_encrypt(const unsigned char *in,
|
|
59
|
+
unsigned char *out, long length,
|
|
60
|
+
IDEA_KEY_SCHEDULE *ks,
|
|
61
|
+
unsigned char *iv, int *num);
|
|
62
|
+
OSSL_DEPRECATEDIN_3_0 void IDEA_encrypt(unsigned long *in,
|
|
63
|
+
IDEA_KEY_SCHEDULE *ks);
|
|
64
|
+
#endif
|
|
65
|
+
|
|
66
|
+
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
|
67
|
+
# define idea_options IDEA_options
|
|
68
|
+
# define idea_ecb_encrypt IDEA_ecb_encrypt
|
|
69
|
+
# define idea_set_encrypt_key IDEA_set_encrypt_key
|
|
70
|
+
# define idea_set_decrypt_key IDEA_set_decrypt_key
|
|
71
|
+
# define idea_cbc_encrypt IDEA_cbc_encrypt
|
|
72
|
+
# define idea_cfb64_encrypt IDEA_cfb64_encrypt
|
|
73
|
+
# define idea_ofb64_encrypt IDEA_ofb64_encrypt
|
|
74
|
+
# define idea_encrypt IDEA_encrypt
|
|
75
|
+
# endif
|
|
76
|
+
|
|
77
|
+
# ifdef __cplusplus
|
|
78
|
+
}
|
|
79
|
+
# endif
|
|
80
|
+
# endif
|
|
81
|
+
|
|
82
|
+
#endif
|