@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,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2002-2016 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
|
+
#include <openssl/ec.h>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2002-2016 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
|
+
#include <openssl/ec.h>
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by util/mkerr.pl DO NOT EDIT
|
|
3
|
+
* Copyright 1995-2023 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_ECERR_H
|
|
12
|
+
# define OPENSSL_ECERR_H
|
|
13
|
+
# pragma once
|
|
14
|
+
|
|
15
|
+
# include <openssl/opensslconf.h>
|
|
16
|
+
# include <openssl/symhacks.h>
|
|
17
|
+
# include <openssl/cryptoerr_legacy.h>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# ifndef OPENSSL_NO_EC
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/*
|
|
24
|
+
* EC reason codes.
|
|
25
|
+
*/
|
|
26
|
+
# define EC_R_ASN1_ERROR 115
|
|
27
|
+
# define EC_R_BAD_SIGNATURE 156
|
|
28
|
+
# define EC_R_BIGNUM_OUT_OF_RANGE 144
|
|
29
|
+
# define EC_R_BUFFER_TOO_SMALL 100
|
|
30
|
+
# define EC_R_CANNOT_INVERT 165
|
|
31
|
+
# define EC_R_COORDINATES_OUT_OF_RANGE 146
|
|
32
|
+
# define EC_R_CURVE_DOES_NOT_SUPPORT_ECDH 160
|
|
33
|
+
# define EC_R_CURVE_DOES_NOT_SUPPORT_ECDSA 170
|
|
34
|
+
# define EC_R_CURVE_DOES_NOT_SUPPORT_SIGNING 159
|
|
35
|
+
# define EC_R_DECODE_ERROR 142
|
|
36
|
+
# define EC_R_DISCRIMINANT_IS_ZERO 118
|
|
37
|
+
# define EC_R_EC_GROUP_NEW_BY_NAME_FAILURE 119
|
|
38
|
+
# define EC_R_EXPLICIT_PARAMS_NOT_SUPPORTED 127
|
|
39
|
+
# define EC_R_FAILED_MAKING_PUBLIC_KEY 166
|
|
40
|
+
# define EC_R_FIELD_TOO_LARGE 143
|
|
41
|
+
# define EC_R_GF2M_NOT_SUPPORTED 147
|
|
42
|
+
# define EC_R_GROUP2PKPARAMETERS_FAILURE 120
|
|
43
|
+
# define EC_R_I2D_ECPKPARAMETERS_FAILURE 121
|
|
44
|
+
# define EC_R_INCOMPATIBLE_OBJECTS 101
|
|
45
|
+
# define EC_R_INVALID_A 168
|
|
46
|
+
# define EC_R_INVALID_ARGUMENT 112
|
|
47
|
+
# define EC_R_INVALID_B 169
|
|
48
|
+
# define EC_R_INVALID_COFACTOR 171
|
|
49
|
+
# define EC_R_INVALID_COMPRESSED_POINT 110
|
|
50
|
+
# define EC_R_INVALID_COMPRESSION_BIT 109
|
|
51
|
+
# define EC_R_INVALID_CURVE 141
|
|
52
|
+
# define EC_R_INVALID_DIGEST 151
|
|
53
|
+
# define EC_R_INVALID_DIGEST_TYPE 138
|
|
54
|
+
# define EC_R_INVALID_ENCODING 102
|
|
55
|
+
# define EC_R_INVALID_FIELD 103
|
|
56
|
+
# define EC_R_INVALID_FORM 104
|
|
57
|
+
# define EC_R_INVALID_GENERATOR 173
|
|
58
|
+
# define EC_R_INVALID_GROUP_ORDER 122
|
|
59
|
+
# define EC_R_INVALID_KEY 116
|
|
60
|
+
# define EC_R_INVALID_LENGTH 117
|
|
61
|
+
# define EC_R_INVALID_NAMED_GROUP_CONVERSION 174
|
|
62
|
+
# define EC_R_INVALID_OUTPUT_LENGTH 161
|
|
63
|
+
# define EC_R_INVALID_P 172
|
|
64
|
+
# define EC_R_INVALID_PEER_KEY 133
|
|
65
|
+
# define EC_R_INVALID_PENTANOMIAL_BASIS 132
|
|
66
|
+
# define EC_R_INVALID_PRIVATE_KEY 123
|
|
67
|
+
# define EC_R_INVALID_SEED 175
|
|
68
|
+
# define EC_R_INVALID_TRINOMIAL_BASIS 137
|
|
69
|
+
# define EC_R_KDF_PARAMETER_ERROR 148
|
|
70
|
+
# define EC_R_KEYS_NOT_SET 140
|
|
71
|
+
# define EC_R_LADDER_POST_FAILURE 136
|
|
72
|
+
# define EC_R_LADDER_PRE_FAILURE 153
|
|
73
|
+
# define EC_R_LADDER_STEP_FAILURE 162
|
|
74
|
+
# define EC_R_MISSING_OID 167
|
|
75
|
+
# define EC_R_MISSING_PARAMETERS 124
|
|
76
|
+
# define EC_R_MISSING_PRIVATE_KEY 125
|
|
77
|
+
# define EC_R_NEED_NEW_SETUP_VALUES 157
|
|
78
|
+
# define EC_R_NOT_A_NIST_PRIME 135
|
|
79
|
+
# define EC_R_NOT_IMPLEMENTED 126
|
|
80
|
+
# define EC_R_NOT_INITIALIZED 111
|
|
81
|
+
# define EC_R_NO_PARAMETERS_SET 139
|
|
82
|
+
# define EC_R_NO_PRIVATE_VALUE 154
|
|
83
|
+
# define EC_R_OPERATION_NOT_SUPPORTED 152
|
|
84
|
+
# define EC_R_PASSED_NULL_PARAMETER 134
|
|
85
|
+
# define EC_R_PEER_KEY_ERROR 149
|
|
86
|
+
# define EC_R_POINT_ARITHMETIC_FAILURE 155
|
|
87
|
+
# define EC_R_POINT_AT_INFINITY 106
|
|
88
|
+
# define EC_R_POINT_COORDINATES_BLIND_FAILURE 163
|
|
89
|
+
# define EC_R_POINT_IS_NOT_ON_CURVE 107
|
|
90
|
+
# define EC_R_RANDOM_NUMBER_GENERATION_FAILED 158
|
|
91
|
+
# define EC_R_SHARED_INFO_ERROR 150
|
|
92
|
+
# define EC_R_SLOT_FULL 108
|
|
93
|
+
# define EC_R_TOO_MANY_RETRIES 176
|
|
94
|
+
# define EC_R_UNDEFINED_GENERATOR 113
|
|
95
|
+
# define EC_R_UNDEFINED_ORDER 128
|
|
96
|
+
# define EC_R_UNKNOWN_COFACTOR 164
|
|
97
|
+
# define EC_R_UNKNOWN_GROUP 129
|
|
98
|
+
# define EC_R_UNKNOWN_ORDER 114
|
|
99
|
+
# define EC_R_UNSUPPORTED_FIELD 131
|
|
100
|
+
# define EC_R_WRONG_CURVE_PARAMETERS 145
|
|
101
|
+
# define EC_R_WRONG_ORDER 130
|
|
102
|
+
|
|
103
|
+
# endif
|
|
104
|
+
#endif
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2019-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_ENCODER_H
|
|
11
|
+
# define OPENSSL_ENCODER_H
|
|
12
|
+
# pragma once
|
|
13
|
+
|
|
14
|
+
# include <openssl/opensslconf.h>
|
|
15
|
+
|
|
16
|
+
# ifndef OPENSSL_NO_STDIO
|
|
17
|
+
# include <stdio.h>
|
|
18
|
+
# endif
|
|
19
|
+
# include <stdarg.h>
|
|
20
|
+
# include <stddef.h>
|
|
21
|
+
# include <openssl/encodererr.h>
|
|
22
|
+
# include <openssl/types.h>
|
|
23
|
+
# include <openssl/core.h>
|
|
24
|
+
|
|
25
|
+
# ifdef __cplusplus
|
|
26
|
+
extern "C" {
|
|
27
|
+
# endif
|
|
28
|
+
|
|
29
|
+
OSSL_ENCODER *OSSL_ENCODER_fetch(OSSL_LIB_CTX *libctx, const char *name,
|
|
30
|
+
const char *properties);
|
|
31
|
+
int OSSL_ENCODER_up_ref(OSSL_ENCODER *encoder);
|
|
32
|
+
void OSSL_ENCODER_free(OSSL_ENCODER *encoder);
|
|
33
|
+
|
|
34
|
+
const OSSL_PROVIDER *OSSL_ENCODER_get0_provider(const OSSL_ENCODER *encoder);
|
|
35
|
+
const char *OSSL_ENCODER_get0_properties(const OSSL_ENCODER *encoder);
|
|
36
|
+
const char *OSSL_ENCODER_get0_name(const OSSL_ENCODER *kdf);
|
|
37
|
+
const char *OSSL_ENCODER_get0_description(const OSSL_ENCODER *kdf);
|
|
38
|
+
int OSSL_ENCODER_is_a(const OSSL_ENCODER *encoder, const char *name);
|
|
39
|
+
|
|
40
|
+
void OSSL_ENCODER_do_all_provided(OSSL_LIB_CTX *libctx,
|
|
41
|
+
void (*fn)(OSSL_ENCODER *encoder, void *arg),
|
|
42
|
+
void *arg);
|
|
43
|
+
int OSSL_ENCODER_names_do_all(const OSSL_ENCODER *encoder,
|
|
44
|
+
void (*fn)(const char *name, void *data),
|
|
45
|
+
void *data);
|
|
46
|
+
const OSSL_PARAM *OSSL_ENCODER_gettable_params(OSSL_ENCODER *encoder);
|
|
47
|
+
int OSSL_ENCODER_get_params(OSSL_ENCODER *encoder, OSSL_PARAM params[]);
|
|
48
|
+
|
|
49
|
+
const OSSL_PARAM *OSSL_ENCODER_settable_ctx_params(OSSL_ENCODER *encoder);
|
|
50
|
+
OSSL_ENCODER_CTX *OSSL_ENCODER_CTX_new(void);
|
|
51
|
+
int OSSL_ENCODER_CTX_set_params(OSSL_ENCODER_CTX *ctx,
|
|
52
|
+
const OSSL_PARAM params[]);
|
|
53
|
+
void OSSL_ENCODER_CTX_free(OSSL_ENCODER_CTX *ctx);
|
|
54
|
+
|
|
55
|
+
/* Utilities that help set specific parameters */
|
|
56
|
+
int OSSL_ENCODER_CTX_set_passphrase(OSSL_ENCODER_CTX *ctx,
|
|
57
|
+
const unsigned char *kstr, size_t klen);
|
|
58
|
+
int OSSL_ENCODER_CTX_set_pem_password_cb(OSSL_ENCODER_CTX *ctx,
|
|
59
|
+
pem_password_cb *cb, void *cbarg);
|
|
60
|
+
int OSSL_ENCODER_CTX_set_passphrase_cb(OSSL_ENCODER_CTX *ctx,
|
|
61
|
+
OSSL_PASSPHRASE_CALLBACK *cb,
|
|
62
|
+
void *cbarg);
|
|
63
|
+
int OSSL_ENCODER_CTX_set_passphrase_ui(OSSL_ENCODER_CTX *ctx,
|
|
64
|
+
const UI_METHOD *ui_method,
|
|
65
|
+
void *ui_data);
|
|
66
|
+
int OSSL_ENCODER_CTX_set_cipher(OSSL_ENCODER_CTX *ctx,
|
|
67
|
+
const char *cipher_name,
|
|
68
|
+
const char *propquery);
|
|
69
|
+
int OSSL_ENCODER_CTX_set_selection(OSSL_ENCODER_CTX *ctx, int selection);
|
|
70
|
+
int OSSL_ENCODER_CTX_set_output_type(OSSL_ENCODER_CTX *ctx,
|
|
71
|
+
const char *output_type);
|
|
72
|
+
int OSSL_ENCODER_CTX_set_output_structure(OSSL_ENCODER_CTX *ctx,
|
|
73
|
+
const char *output_structure);
|
|
74
|
+
|
|
75
|
+
/* Utilities to add encoders */
|
|
76
|
+
int OSSL_ENCODER_CTX_add_encoder(OSSL_ENCODER_CTX *ctx, OSSL_ENCODER *encoder);
|
|
77
|
+
int OSSL_ENCODER_CTX_add_extra(OSSL_ENCODER_CTX *ctx,
|
|
78
|
+
OSSL_LIB_CTX *libctx, const char *propq);
|
|
79
|
+
int OSSL_ENCODER_CTX_get_num_encoders(OSSL_ENCODER_CTX *ctx);
|
|
80
|
+
|
|
81
|
+
typedef struct ossl_encoder_instance_st OSSL_ENCODER_INSTANCE;
|
|
82
|
+
OSSL_ENCODER *
|
|
83
|
+
OSSL_ENCODER_INSTANCE_get_encoder(OSSL_ENCODER_INSTANCE *encoder_inst);
|
|
84
|
+
void *
|
|
85
|
+
OSSL_ENCODER_INSTANCE_get_encoder_ctx(OSSL_ENCODER_INSTANCE *encoder_inst);
|
|
86
|
+
const char *
|
|
87
|
+
OSSL_ENCODER_INSTANCE_get_output_type(OSSL_ENCODER_INSTANCE *encoder_inst);
|
|
88
|
+
const char *
|
|
89
|
+
OSSL_ENCODER_INSTANCE_get_output_structure(OSSL_ENCODER_INSTANCE *encoder_inst);
|
|
90
|
+
|
|
91
|
+
typedef const void *OSSL_ENCODER_CONSTRUCT(OSSL_ENCODER_INSTANCE *encoder_inst,
|
|
92
|
+
void *construct_data);
|
|
93
|
+
typedef void OSSL_ENCODER_CLEANUP(void *construct_data);
|
|
94
|
+
|
|
95
|
+
int OSSL_ENCODER_CTX_set_construct(OSSL_ENCODER_CTX *ctx,
|
|
96
|
+
OSSL_ENCODER_CONSTRUCT *construct);
|
|
97
|
+
int OSSL_ENCODER_CTX_set_construct_data(OSSL_ENCODER_CTX *ctx,
|
|
98
|
+
void *construct_data);
|
|
99
|
+
int OSSL_ENCODER_CTX_set_cleanup(OSSL_ENCODER_CTX *ctx,
|
|
100
|
+
OSSL_ENCODER_CLEANUP *cleanup);
|
|
101
|
+
|
|
102
|
+
/* Utilities to output the object to encode */
|
|
103
|
+
int OSSL_ENCODER_to_bio(OSSL_ENCODER_CTX *ctx, BIO *out);
|
|
104
|
+
#ifndef OPENSSL_NO_STDIO
|
|
105
|
+
int OSSL_ENCODER_to_fp(OSSL_ENCODER_CTX *ctx, FILE *fp);
|
|
106
|
+
#endif
|
|
107
|
+
int OSSL_ENCODER_to_data(OSSL_ENCODER_CTX *ctx, unsigned char **pdata,
|
|
108
|
+
size_t *pdata_len);
|
|
109
|
+
|
|
110
|
+
/*
|
|
111
|
+
* Create the OSSL_ENCODER_CTX with an associated type. This will perform
|
|
112
|
+
* an implicit OSSL_ENCODER_fetch(), suitable for the object of that type.
|
|
113
|
+
* This is more useful than calling OSSL_ENCODER_CTX_new().
|
|
114
|
+
*/
|
|
115
|
+
OSSL_ENCODER_CTX *OSSL_ENCODER_CTX_new_for_pkey(const EVP_PKEY *pkey,
|
|
116
|
+
int selection,
|
|
117
|
+
const char *output_type,
|
|
118
|
+
const char *output_struct,
|
|
119
|
+
const char *propquery);
|
|
120
|
+
|
|
121
|
+
# ifdef __cplusplus
|
|
122
|
+
}
|
|
123
|
+
# endif
|
|
124
|
+
#endif
|
|
@@ -0,0 +1,28 @@
|
|
|
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_ENCODERERR_H
|
|
12
|
+
# define OPENSSL_ENCODERERR_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
|
+
* OSSL_ENCODER reason codes.
|
|
23
|
+
*/
|
|
24
|
+
# define OSSL_ENCODER_R_ENCODER_NOT_FOUND 101
|
|
25
|
+
# define OSSL_ENCODER_R_INCORRECT_PROPERTY_QUERY 100
|
|
26
|
+
# define OSSL_ENCODER_R_MISSING_GET_PARAMS 102
|
|
27
|
+
|
|
28
|
+
#endif
|