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