]>
Commit | Line | Data |
---|---|---|
21dcbebc | 1 | /* |
4333b89f | 2 | * Copyright 2001-2021 The OpenSSL Project Authors. All Rights Reserved. |
d66ace9d | 3 | * |
48f4ad77 | 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
21dcbebc RS |
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 | |
d66ace9d BL |
8 | */ |
9 | ||
3c58d447 SL |
10 | /* |
11 | * Unfortunate workaround to avoid symbol conflict with wincrypt.h | |
12 | * See https://github.com/openssl/openssl/issues/9981 | |
13 | */ | |
14 | #ifdef _WIN32 | |
15 | # define WINCRYPT_USE_SYMBOL_PREFIX | |
16 | # undef X509_NAME | |
17 | # undef X509_EXTENSIONS | |
18 | # undef PKCS7_SIGNER_INFO | |
19 | # undef OCSP_REQUEST | |
20 | # undef OCSP_RESPONSE | |
21 | #endif | |
22 | ||
ae4186b0 DMSP |
23 | #ifndef OPENSSL_TYPES_H |
24 | # define OPENSSL_TYPES_H | |
d66ace9d | 25 | |
d59068bd | 26 | # include <limits.h> |
03f887ca | 27 | |
d59068bd | 28 | # ifdef __cplusplus |
17e80c6b | 29 | extern "C" { |
d59068bd | 30 | # endif |
17e80c6b | 31 | |
0f113f3e | 32 | # include <openssl/e_os2.h> |
c3a4fa4c | 33 | # include <openssl/safestack.h> |
d7e498ac | 34 | # include <openssl/macros.h> |
0f113f3e | 35 | |
4c2883a9 RL |
36 | typedef struct ossl_provider_st OSSL_PROVIDER; /* Provider Object */ |
37 | ||
0f113f3e MC |
38 | # ifdef NO_ASN1_TYPEDEFS |
39 | # define ASN1_INTEGER ASN1_STRING | |
40 | # define ASN1_ENUMERATED ASN1_STRING | |
41 | # define ASN1_BIT_STRING ASN1_STRING | |
42 | # define ASN1_OCTET_STRING ASN1_STRING | |
43 | # define ASN1_PRINTABLESTRING ASN1_STRING | |
44 | # define ASN1_T61STRING ASN1_STRING | |
45 | # define ASN1_IA5STRING ASN1_STRING | |
46 | # define ASN1_UTCTIME ASN1_STRING | |
47 | # define ASN1_GENERALIZEDTIME ASN1_STRING | |
48 | # define ASN1_TIME ASN1_STRING | |
49 | # define ASN1_GENERALSTRING ASN1_STRING | |
50 | # define ASN1_UNIVERSALSTRING ASN1_STRING | |
51 | # define ASN1_BMPSTRING ASN1_STRING | |
52 | # define ASN1_VISIBLESTRING ASN1_STRING | |
53 | # define ASN1_UTF8STRING ASN1_STRING | |
54 | # define ASN1_BOOLEAN int | |
55 | # define ASN1_NULL int | |
56 | # else | |
d66ace9d BL |
57 | typedef struct asn1_string_st ASN1_INTEGER; |
58 | typedef struct asn1_string_st ASN1_ENUMERATED; | |
59 | typedef struct asn1_string_st ASN1_BIT_STRING; | |
60 | typedef struct asn1_string_st ASN1_OCTET_STRING; | |
61 | typedef struct asn1_string_st ASN1_PRINTABLESTRING; | |
62 | typedef struct asn1_string_st ASN1_T61STRING; | |
63 | typedef struct asn1_string_st ASN1_IA5STRING; | |
64 | typedef struct asn1_string_st ASN1_GENERALSTRING; | |
65 | typedef struct asn1_string_st ASN1_UNIVERSALSTRING; | |
66 | typedef struct asn1_string_st ASN1_BMPSTRING; | |
67 | typedef struct asn1_string_st ASN1_UTCTIME; | |
68 | typedef struct asn1_string_st ASN1_TIME; | |
69 | typedef struct asn1_string_st ASN1_GENERALIZEDTIME; | |
70 | typedef struct asn1_string_st ASN1_VISIBLESTRING; | |
71 | typedef struct asn1_string_st ASN1_UTF8STRING; | |
fa1ba589 | 72 | typedef struct asn1_string_st ASN1_STRING; |
d66ace9d BL |
73 | typedef int ASN1_BOOLEAN; |
74 | typedef int ASN1_NULL; | |
0f113f3e | 75 | # endif |
d66ace9d | 76 | |
852c2ed2 | 77 | typedef struct asn1_type_st ASN1_TYPE; |
dc1ce3bc | 78 | typedef struct asn1_object_st ASN1_OBJECT; |
852c2ed2 | 79 | typedef struct asn1_string_table_st ASN1_STRING_TABLE; |
dc1ce3bc | 80 | |
31904ecd | 81 | typedef struct ASN1_ITEM_st ASN1_ITEM; |
1ef7acfe | 82 | typedef struct asn1_pctx_st ASN1_PCTX; |
d7d5a55d | 83 | typedef struct asn1_sctx_st ASN1_SCTX; |
1ef7acfe | 84 | |
0f113f3e MC |
85 | # ifdef BIGNUM |
86 | # undef BIGNUM | |
87 | # endif | |
96fc458a | 88 | |
94af0cd7 | 89 | typedef struct bio_st BIO; |
d6dda126 GT |
90 | typedef struct bignum_st BIGNUM; |
91 | typedef struct bignum_ctx BN_CTX; | |
92 | typedef struct bn_blinding_st BN_BLINDING; | |
93 | typedef struct bn_mont_ctx_st BN_MONT_CTX; | |
94 | typedef struct bn_recp_ctx_st BN_RECP_CTX; | |
95 | typedef struct bn_gencb_st BN_GENCB; | |
96 | ||
97 | typedef struct buf_mem_st BUF_MEM; | |
98 | ||
c3a4fa4c RL |
99 | STACK_OF(BIGNUM); |
100 | STACK_OF(BIGNUM_const); | |
101 | ||
14e275e8 RL |
102 | typedef struct err_state_st ERR_STATE; |
103 | ||
d66ace9d BL |
104 | typedef struct evp_cipher_st EVP_CIPHER; |
105 | typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX; | |
ef853206 NC |
106 | typedef struct evp_md_st EVP_MD; |
107 | typedef struct evp_md_ctx_st EVP_MD_CTX; | |
567db2c1 RL |
108 | typedef struct evp_mac_st EVP_MAC; |
109 | typedef struct evp_mac_ctx_st EVP_MAC_CTX; | |
d66ace9d BL |
110 | typedef struct evp_pkey_st EVP_PKEY; |
111 | ||
448be743 DSH |
112 | typedef struct evp_pkey_asn1_method_st EVP_PKEY_ASN1_METHOD; |
113 | ||
0b6f3c66 DSH |
114 | typedef struct evp_pkey_method_st EVP_PKEY_METHOD; |
115 | typedef struct evp_pkey_ctx_st EVP_PKEY_CTX; | |
5a285add | 116 | |
a94a3e0d RL |
117 | typedef struct evp_keymgmt_st EVP_KEYMGMT; |
118 | ||
d2ba8123 | 119 | typedef struct evp_kdf_st EVP_KDF; |
5a285add | 120 | typedef struct evp_kdf_ctx_st EVP_KDF_CTX; |
0b6f3c66 | 121 | |
15dfa092 P |
122 | typedef struct evp_rand_st EVP_RAND; |
123 | typedef struct evp_rand_ctx_st EVP_RAND_CTX; | |
124 | ||
ff64702b MC |
125 | typedef struct evp_keyexch_st EVP_KEYEXCH; |
126 | ||
dfcb5d29 MC |
127 | typedef struct evp_signature_st EVP_SIGNATURE; |
128 | ||
2c938e2e MC |
129 | typedef struct evp_asym_cipher_st EVP_ASYM_CIPHER; |
130 | ||
80f4fd18 SL |
131 | typedef struct evp_kem_st EVP_KEM; |
132 | ||
a0be4fd1 RL |
133 | typedef struct evp_Encode_Ctx_st EVP_ENCODE_CTX; |
134 | ||
3f43aecc RL |
135 | typedef struct hmac_ctx_st HMAC_CTX; |
136 | ||
3a87a9b9 GT |
137 | typedef struct dh_st DH; |
138 | typedef struct dh_method DH_METHOD; | |
139 | ||
52c8535a | 140 | # ifndef OPENSSL_NO_DEPRECATED_3_0 |
3a87a9b9 GT |
141 | typedef struct dsa_st DSA; |
142 | typedef struct dsa_method DSA_METHOD; | |
52c8535a | 143 | # endif |
3a87a9b9 | 144 | |
d7e498ac | 145 | # ifndef OPENSSL_NO_DEPRECATED_3_0 |
3a87a9b9 GT |
146 | typedef struct rsa_st RSA; |
147 | typedef struct rsa_meth_st RSA_METHOD; | |
d7e498ac | 148 | # endif |
677add38 | 149 | typedef struct rsa_pss_params_st RSA_PSS_PARAMS; |
3a87a9b9 | 150 | |
5b5eea4b | 151 | # ifndef OPENSSL_NO_DEPRECATED_3_0 |
f8d3ab49 RL |
152 | typedef struct ec_key_st EC_KEY; |
153 | typedef struct ec_key_method_st EC_KEY_METHOD; | |
5b5eea4b | 154 | # endif |
f8d3ab49 | 155 | |
3a87a9b9 | 156 | typedef struct rand_meth_st RAND_METHOD; |
75e2c877 | 157 | typedef struct rand_drbg_st RAND_DRBG; |
3a87a9b9 | 158 | |
b9aec69a | 159 | typedef struct ssl_dane_st SSL_DANE; |
d66ace9d BL |
160 | typedef struct x509_st X509; |
161 | typedef struct X509_algor_st X509_ALGOR; | |
162 | typedef struct X509_crl_st X509_CRL; | |
010fa0b3 DSH |
163 | typedef struct x509_crl_method_st X509_CRL_METHOD; |
164 | typedef struct x509_revoked_st X509_REVOKED; | |
d66ace9d | 165 | typedef struct X509_name_st X509_NAME; |
448be743 | 166 | typedef struct X509_pubkey_st X509_PUBKEY; |
d66ace9d BL |
167 | typedef struct x509_store_st X509_STORE; |
168 | typedef struct x509_store_ctx_st X509_STORE_CTX; | |
169 | ||
f0e0fd51 RS |
170 | typedef struct x509_object_st X509_OBJECT; |
171 | typedef struct x509_lookup_st X509_LOOKUP; | |
172 | typedef struct x509_lookup_method_st X509_LOOKUP_METHOD; | |
173 | typedef struct X509_VERIFY_PARAM_st X509_VERIFY_PARAM; | |
174 | ||
786dd2c2 DSH |
175 | typedef struct x509_sig_info_st X509_SIG_INFO; |
176 | ||
448be743 DSH |
177 | typedef struct pkcs8_priv_key_info_st PKCS8_PRIV_KEY_INFO; |
178 | ||
9ea1b878 DSH |
179 | typedef struct v3_ext_ctx X509V3_CTX; |
180 | typedef struct conf_st CONF; | |
7253fd55 | 181 | typedef struct ossl_init_settings_st OPENSSL_INIT_SETTINGS; |
9ea1b878 | 182 | |
3a87a9b9 GT |
183 | typedef struct ui_st UI; |
184 | typedef struct ui_method_st UI_METHOD; | |
185 | ||
1a142264 | 186 | typedef struct engine_st ENGINE; |
05935c47 DSH |
187 | typedef struct ssl_st SSL; |
188 | typedef struct ssl_ctx_st SSL_CTX; | |
1a142264 | 189 | |
9a555706 RS |
190 | typedef struct comp_ctx_st COMP_CTX; |
191 | typedef struct comp_method_st COMP_METHOD; | |
192 | ||
4acc3e90 DSH |
193 | typedef struct X509_POLICY_NODE_st X509_POLICY_NODE; |
194 | typedef struct X509_POLICY_LEVEL_st X509_POLICY_LEVEL; | |
195 | typedef struct X509_POLICY_TREE_st X509_POLICY_TREE; | |
196 | typedef struct X509_POLICY_CACHE_st X509_POLICY_CACHE; | |
197 | ||
edc54021 DSH |
198 | typedef struct AUTHORITY_KEYID_st AUTHORITY_KEYID; |
199 | typedef struct DIST_POINT_st DIST_POINT; | |
200 | typedef struct ISSUING_DIST_POINT_st ISSUING_DIST_POINT; | |
e9746e03 | 201 | typedef struct NAME_CONSTRAINTS_st NAME_CONSTRAINTS; |
edc54021 | 202 | |
210a21bc | 203 | typedef struct crypto_ex_data_st CRYPTO_EX_DATA; |
210a21bc | 204 | |
83b6dc8d | 205 | typedef struct ossl_http_req_ctx_st OSSL_HTTP_REQ_CTX; |
67c8e7f4 DSH |
206 | typedef struct ocsp_response_st OCSP_RESPONSE; |
207 | typedef struct ocsp_responder_id_st OCSP_RESPID; | |
c1c6c0bf | 208 | |
a8d177ac | 209 | typedef struct sct_st SCT; |
8c6afbc5 RP |
210 | typedef struct sct_ctx_st SCT_CTX; |
211 | typedef struct ctlog_st CTLOG; | |
212 | typedef struct ctlog_store_st CTLOG_STORE; | |
7d054e5a | 213 | typedef struct ct_policy_eval_ctx_st CT_POLICY_EVAL_CTX; |
a8d177ac | 214 | |
71a5516d | 215 | typedef struct ossl_store_info_st OSSL_STORE_INFO; |
fac8673b | 216 | typedef struct ossl_store_search_st OSSL_STORE_SEARCH; |
71a5516d | 217 | |
b4250010 | 218 | typedef struct ossl_lib_ctx_st OSSL_LIB_CTX; |
d64b6299 | 219 | |
7753be74 RL |
220 | typedef struct ossl_dispatch_st OSSL_DISPATCH; |
221 | typedef struct ossl_item_st OSSL_ITEM; | |
222 | typedef struct ossl_algorithm_st OSSL_ALGORITHM; | |
223 | typedef struct ossl_param_st OSSL_PARAM; | |
6d4e6009 | 224 | typedef struct ossl_param_bld_st OSSL_PARAM_BLD; |
7753be74 | 225 | |
0d003c52 RL |
226 | typedef int pem_password_cb (char *buf, int size, int rwflag, void *userdata); |
227 | ||
ece9304c RL |
228 | typedef struct ossl_encoder_st OSSL_ENCODER; |
229 | typedef struct ossl_encoder_ctx_st OSSL_ENCODER_CTX; | |
230 | typedef struct ossl_decoder_st OSSL_DECODER; | |
231 | typedef struct ossl_decoder_ctx_st OSSL_DECODER_CTX; | |
0d003c52 | 232 | |
47c239c6 SL |
233 | typedef struct ossl_self_test_st OSSL_SELF_TEST; |
234 | ||
17e80c6b RS |
235 | #ifdef __cplusplus |
236 | } | |
237 | #endif | |
96fc458a DG |
238 | |
239 | #endif /* OPENSSL_TYPES_H */ |