]>
Commit | Line | Data |
---|---|---|
21dcbebc | 1 | /* |
0d664759 | 2 | * Copyright 2001-2018 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 | ||
10 | #ifndef HEADER_OPENSSL_TYPES_H | |
0f113f3e | 11 | # define HEADER_OPENSSL_TYPES_H |
d66ace9d | 12 | |
03f887ca VD |
13 | #include <limits.h> |
14 | ||
17e80c6b RS |
15 | #ifdef __cplusplus |
16 | extern "C" { | |
17 | #endif | |
18 | ||
0f113f3e MC |
19 | # include <openssl/e_os2.h> |
20 | ||
21 | # ifdef NO_ASN1_TYPEDEFS | |
22 | # define ASN1_INTEGER ASN1_STRING | |
23 | # define ASN1_ENUMERATED ASN1_STRING | |
24 | # define ASN1_BIT_STRING ASN1_STRING | |
25 | # define ASN1_OCTET_STRING ASN1_STRING | |
26 | # define ASN1_PRINTABLESTRING ASN1_STRING | |
27 | # define ASN1_T61STRING ASN1_STRING | |
28 | # define ASN1_IA5STRING ASN1_STRING | |
29 | # define ASN1_UTCTIME ASN1_STRING | |
30 | # define ASN1_GENERALIZEDTIME ASN1_STRING | |
31 | # define ASN1_TIME ASN1_STRING | |
32 | # define ASN1_GENERALSTRING ASN1_STRING | |
33 | # define ASN1_UNIVERSALSTRING ASN1_STRING | |
34 | # define ASN1_BMPSTRING ASN1_STRING | |
35 | # define ASN1_VISIBLESTRING ASN1_STRING | |
36 | # define ASN1_UTF8STRING ASN1_STRING | |
37 | # define ASN1_BOOLEAN int | |
38 | # define ASN1_NULL int | |
39 | # else | |
d66ace9d BL |
40 | typedef struct asn1_string_st ASN1_INTEGER; |
41 | typedef struct asn1_string_st ASN1_ENUMERATED; | |
42 | typedef struct asn1_string_st ASN1_BIT_STRING; | |
43 | typedef struct asn1_string_st ASN1_OCTET_STRING; | |
44 | typedef struct asn1_string_st ASN1_PRINTABLESTRING; | |
45 | typedef struct asn1_string_st ASN1_T61STRING; | |
46 | typedef struct asn1_string_st ASN1_IA5STRING; | |
47 | typedef struct asn1_string_st ASN1_GENERALSTRING; | |
48 | typedef struct asn1_string_st ASN1_UNIVERSALSTRING; | |
49 | typedef struct asn1_string_st ASN1_BMPSTRING; | |
50 | typedef struct asn1_string_st ASN1_UTCTIME; | |
51 | typedef struct asn1_string_st ASN1_TIME; | |
52 | typedef struct asn1_string_st ASN1_GENERALIZEDTIME; | |
53 | typedef struct asn1_string_st ASN1_VISIBLESTRING; | |
54 | typedef struct asn1_string_st ASN1_UTF8STRING; | |
fa1ba589 | 55 | typedef struct asn1_string_st ASN1_STRING; |
d66ace9d BL |
56 | typedef int ASN1_BOOLEAN; |
57 | typedef int ASN1_NULL; | |
0f113f3e | 58 | # endif |
d66ace9d | 59 | |
dc1ce3bc DSH |
60 | typedef struct asn1_object_st ASN1_OBJECT; |
61 | ||
31904ecd | 62 | typedef struct ASN1_ITEM_st ASN1_ITEM; |
1ef7acfe | 63 | typedef struct asn1_pctx_st ASN1_PCTX; |
d7d5a55d | 64 | typedef struct asn1_sctx_st ASN1_SCTX; |
1ef7acfe | 65 | |
f1f5ee17 | 66 | # ifdef _WIN32 |
0f113f3e MC |
67 | # undef X509_NAME |
68 | # undef X509_EXTENSIONS | |
0f113f3e | 69 | # undef PKCS7_ISSUER_AND_SERIAL |
f1f5ee17 | 70 | # undef PKCS7_SIGNER_INFO |
0f113f3e MC |
71 | # undef OCSP_REQUEST |
72 | # undef OCSP_RESPONSE | |
73 | # endif | |
74 | ||
75 | # ifdef BIGNUM | |
76 | # undef BIGNUM | |
77 | # endif | |
f0e0fd51 | 78 | struct dane_st; |
94af0cd7 | 79 | typedef struct bio_st BIO; |
d6dda126 GT |
80 | typedef struct bignum_st BIGNUM; |
81 | typedef struct bignum_ctx BN_CTX; | |
82 | typedef struct bn_blinding_st BN_BLINDING; | |
83 | typedef struct bn_mont_ctx_st BN_MONT_CTX; | |
84 | typedef struct bn_recp_ctx_st BN_RECP_CTX; | |
85 | typedef struct bn_gencb_st BN_GENCB; | |
86 | ||
87 | typedef struct buf_mem_st BUF_MEM; | |
88 | ||
d66ace9d BL |
89 | typedef struct evp_cipher_st EVP_CIPHER; |
90 | typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX; | |
ef853206 NC |
91 | typedef struct evp_md_st EVP_MD; |
92 | typedef struct evp_md_ctx_st EVP_MD_CTX; | |
567db2c1 RL |
93 | typedef struct evp_mac_st EVP_MAC; |
94 | typedef struct evp_mac_ctx_st EVP_MAC_CTX; | |
d66ace9d BL |
95 | typedef struct evp_pkey_st EVP_PKEY; |
96 | ||
448be743 DSH |
97 | typedef struct evp_pkey_asn1_method_st EVP_PKEY_ASN1_METHOD; |
98 | ||
0b6f3c66 DSH |
99 | typedef struct evp_pkey_method_st EVP_PKEY_METHOD; |
100 | typedef struct evp_pkey_ctx_st EVP_PKEY_CTX; | |
5a285add DM |
101 | |
102 | typedef struct evp_kdf_ctx_st EVP_KDF_CTX; | |
0b6f3c66 | 103 | |
a0be4fd1 RL |
104 | typedef struct evp_Encode_Ctx_st EVP_ENCODE_CTX; |
105 | ||
3f43aecc RL |
106 | typedef struct hmac_ctx_st HMAC_CTX; |
107 | ||
3a87a9b9 GT |
108 | typedef struct dh_st DH; |
109 | typedef struct dh_method DH_METHOD; | |
110 | ||
111 | typedef struct dsa_st DSA; | |
112 | typedef struct dsa_method DSA_METHOD; | |
113 | ||
114 | typedef struct rsa_st RSA; | |
115 | typedef struct rsa_meth_st RSA_METHOD; | |
116 | ||
f8d3ab49 RL |
117 | typedef struct ec_key_st EC_KEY; |
118 | typedef struct ec_key_method_st EC_KEY_METHOD; | |
119 | ||
3a87a9b9 | 120 | typedef struct rand_meth_st RAND_METHOD; |
75e2c877 | 121 | typedef struct rand_drbg_st RAND_DRBG; |
3a87a9b9 | 122 | |
b9aec69a | 123 | typedef struct ssl_dane_st SSL_DANE; |
d66ace9d BL |
124 | typedef struct x509_st X509; |
125 | typedef struct X509_algor_st X509_ALGOR; | |
126 | typedef struct X509_crl_st X509_CRL; | |
010fa0b3 DSH |
127 | typedef struct x509_crl_method_st X509_CRL_METHOD; |
128 | typedef struct x509_revoked_st X509_REVOKED; | |
d66ace9d | 129 | typedef struct X509_name_st X509_NAME; |
448be743 | 130 | typedef struct X509_pubkey_st X509_PUBKEY; |
d66ace9d BL |
131 | typedef struct x509_store_st X509_STORE; |
132 | typedef struct x509_store_ctx_st X509_STORE_CTX; | |
133 | ||
f0e0fd51 RS |
134 | typedef struct x509_object_st X509_OBJECT; |
135 | typedef struct x509_lookup_st X509_LOOKUP; | |
136 | typedef struct x509_lookup_method_st X509_LOOKUP_METHOD; | |
137 | typedef struct X509_VERIFY_PARAM_st X509_VERIFY_PARAM; | |
138 | ||
786dd2c2 DSH |
139 | typedef struct x509_sig_info_st X509_SIG_INFO; |
140 | ||
448be743 DSH |
141 | typedef struct pkcs8_priv_key_info_st PKCS8_PRIV_KEY_INFO; |
142 | ||
9ea1b878 DSH |
143 | typedef struct v3_ext_ctx X509V3_CTX; |
144 | typedef struct conf_st CONF; | |
7253fd55 | 145 | typedef struct ossl_init_settings_st OPENSSL_INIT_SETTINGS; |
9ea1b878 | 146 | |
3a87a9b9 GT |
147 | typedef struct ui_st UI; |
148 | typedef struct ui_method_st UI_METHOD; | |
149 | ||
1a142264 | 150 | typedef struct engine_st ENGINE; |
05935c47 DSH |
151 | typedef struct ssl_st SSL; |
152 | typedef struct ssl_ctx_st SSL_CTX; | |
1a142264 | 153 | |
9a555706 RS |
154 | typedef struct comp_ctx_st COMP_CTX; |
155 | typedef struct comp_method_st COMP_METHOD; | |
156 | ||
4acc3e90 DSH |
157 | typedef struct X509_POLICY_NODE_st X509_POLICY_NODE; |
158 | typedef struct X509_POLICY_LEVEL_st X509_POLICY_LEVEL; | |
159 | typedef struct X509_POLICY_TREE_st X509_POLICY_TREE; | |
160 | typedef struct X509_POLICY_CACHE_st X509_POLICY_CACHE; | |
161 | ||
edc54021 DSH |
162 | typedef struct AUTHORITY_KEYID_st AUTHORITY_KEYID; |
163 | typedef struct DIST_POINT_st DIST_POINT; | |
164 | typedef struct ISSUING_DIST_POINT_st ISSUING_DIST_POINT; | |
e9746e03 | 165 | typedef struct NAME_CONSTRAINTS_st NAME_CONSTRAINTS; |
edc54021 | 166 | |
210a21bc | 167 | typedef struct crypto_ex_data_st CRYPTO_EX_DATA; |
210a21bc | 168 | |
c1c6c0bf | 169 | typedef struct ocsp_req_ctx_st OCSP_REQ_CTX; |
67c8e7f4 DSH |
170 | typedef struct ocsp_response_st OCSP_RESPONSE; |
171 | typedef struct ocsp_responder_id_st OCSP_RESPID; | |
c1c6c0bf | 172 | |
a8d177ac | 173 | typedef struct sct_st SCT; |
8c6afbc5 RP |
174 | typedef struct sct_ctx_st SCT_CTX; |
175 | typedef struct ctlog_st CTLOG; | |
176 | typedef struct ctlog_store_st CTLOG_STORE; | |
7d054e5a | 177 | typedef struct ct_policy_eval_ctx_st CT_POLICY_EVAL_CTX; |
a8d177ac | 178 | |
71a5516d | 179 | typedef struct ossl_store_info_st OSSL_STORE_INFO; |
fac8673b | 180 | typedef struct ossl_store_search_st OSSL_STORE_SEARCH; |
71a5516d | 181 | |
d64b6299 RL |
182 | typedef struct openssl_ctx_st OPENSSL_CTX; |
183 | ||
d94a1a70 VD |
184 | #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && \ |
185 | defined(INTMAX_MAX) && defined(UINTMAX_MAX) | |
03f887ca VD |
186 | typedef intmax_t ossl_intmax_t; |
187 | typedef uintmax_t ossl_uintmax_t; | |
188 | #else | |
189 | /* | |
190 | * Not long long, because the C-library can only be expected to provide | |
191 | * strtoll(), strtoull() at the same time as intmax_t and strtoimax(), | |
192 | * strtoumax(). Since we use these for parsing arguments, we need the | |
193 | * conversion functions, not just the sizes. | |
194 | */ | |
195 | typedef long ossl_intmax_t; | |
196 | typedef unsigned long ossl_uintmax_t; | |
197 | #endif | |
198 | ||
17e80c6b RS |
199 | #ifdef __cplusplus |
200 | } | |
201 | #endif | |
0f113f3e | 202 | #endif /* def HEADER_OPENSSL_TYPES_H */ |