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