Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-15 09:18:00

0001 /*
0002  * Copyright 2001-2025 The OpenSSL Project Authors. All Rights Reserved.
0003  *
0004  * Licensed under the Apache License 2.0 (the "License").  You may not use
0005  * this file except in compliance with the License.  You can obtain a copy
0006  * in the file LICENSE in the source distribution or at
0007  * https://www.openssl.org/source/license.html
0008  */
0009 
0010 /*
0011  * Unfortunate workaround to avoid symbol conflict with wincrypt.h
0012  * See https://github.com/openssl/openssl/issues/9981
0013  */
0014 #ifdef _WIN32
0015 #define WINCRYPT_USE_SYMBOL_PREFIX
0016 #undef X509_NAME
0017 #undef X509_EXTENSIONS
0018 #undef PKCS7_SIGNER_INFO
0019 #undef OCSP_REQUEST
0020 #undef OCSP_RESPONSE
0021 #endif
0022 
0023 #ifndef OPENSSL_TYPES_H
0024 #define OPENSSL_TYPES_H
0025 
0026 #include <limits.h>
0027 
0028 #ifdef __cplusplus
0029 extern "C" {
0030 #endif
0031 
0032 #include <openssl/e_os2.h>
0033 #include <openssl/safestack.h>
0034 #include <openssl/macros.h>
0035 
0036 #if OPENSSL_VERSION_MAJOR >= 4
0037 #define OSSL_FUTURE_CONST const
0038 #else
0039 #define OSSL_FUTURE_CONST
0040 #endif
0041 
0042 typedef struct ossl_provider_st OSSL_PROVIDER; /* Provider Object */
0043 
0044 #ifdef NO_ASN1_TYPEDEFS
0045 #define ASN1_INTEGER ASN1_STRING
0046 #define ASN1_ENUMERATED ASN1_STRING
0047 #define ASN1_BIT_STRING ASN1_STRING
0048 #define ASN1_OCTET_STRING ASN1_STRING
0049 #define ASN1_PRINTABLESTRING ASN1_STRING
0050 #define ASN1_T61STRING ASN1_STRING
0051 #define ASN1_IA5STRING ASN1_STRING
0052 #define ASN1_UTCTIME ASN1_STRING
0053 #define ASN1_GENERALIZEDTIME ASN1_STRING
0054 #define ASN1_TIME ASN1_STRING
0055 #define ASN1_GENERALSTRING ASN1_STRING
0056 #define ASN1_UNIVERSALSTRING ASN1_STRING
0057 #define ASN1_BMPSTRING ASN1_STRING
0058 #define ASN1_VISIBLESTRING ASN1_STRING
0059 #define ASN1_UTF8STRING ASN1_STRING
0060 #define ASN1_BOOLEAN int
0061 #define ASN1_NULL int
0062 #else
0063 typedef struct asn1_string_st ASN1_INTEGER;
0064 typedef struct asn1_string_st ASN1_ENUMERATED;
0065 typedef struct asn1_string_st ASN1_BIT_STRING;
0066 typedef struct asn1_string_st ASN1_OCTET_STRING;
0067 typedef struct asn1_string_st ASN1_PRINTABLESTRING;
0068 typedef struct asn1_string_st ASN1_T61STRING;
0069 typedef struct asn1_string_st ASN1_IA5STRING;
0070 typedef struct asn1_string_st ASN1_GENERALSTRING;
0071 typedef struct asn1_string_st ASN1_UNIVERSALSTRING;
0072 typedef struct asn1_string_st ASN1_BMPSTRING;
0073 typedef struct asn1_string_st ASN1_UTCTIME;
0074 typedef struct asn1_string_st ASN1_TIME;
0075 typedef struct asn1_string_st ASN1_GENERALIZEDTIME;
0076 typedef struct asn1_string_st ASN1_VISIBLESTRING;
0077 typedef struct asn1_string_st ASN1_UTF8STRING;
0078 typedef struct asn1_string_st ASN1_STRING;
0079 typedef int ASN1_BOOLEAN;
0080 typedef int ASN1_NULL;
0081 #endif
0082 
0083 typedef struct asn1_type_st ASN1_TYPE;
0084 typedef struct asn1_object_st ASN1_OBJECT;
0085 typedef struct asn1_string_table_st ASN1_STRING_TABLE;
0086 
0087 typedef struct ASN1_ITEM_st ASN1_ITEM;
0088 typedef struct asn1_pctx_st ASN1_PCTX;
0089 typedef struct asn1_sctx_st ASN1_SCTX;
0090 
0091 #ifdef BIGNUM
0092 #undef BIGNUM
0093 #endif
0094 
0095 typedef struct bio_st BIO;
0096 typedef struct bignum_st BIGNUM;
0097 typedef struct bignum_ctx BN_CTX;
0098 typedef struct bn_blinding_st BN_BLINDING;
0099 typedef struct bn_mont_ctx_st BN_MONT_CTX;
0100 typedef struct bn_recp_ctx_st BN_RECP_CTX;
0101 typedef struct bn_gencb_st BN_GENCB;
0102 
0103 typedef struct buf_mem_st BUF_MEM;
0104 
0105 STACK_OF(BIGNUM);
0106 STACK_OF(BIGNUM_const);
0107 
0108 typedef struct err_state_st ERR_STATE;
0109 
0110 typedef struct evp_cipher_st EVP_CIPHER;
0111 typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;
0112 typedef struct evp_md_st EVP_MD;
0113 typedef struct evp_md_ctx_st EVP_MD_CTX;
0114 typedef struct evp_mac_st EVP_MAC;
0115 typedef struct evp_mac_ctx_st EVP_MAC_CTX;
0116 typedef struct evp_pkey_st EVP_PKEY;
0117 typedef struct evp_skey_st EVP_SKEY;
0118 
0119 typedef struct evp_pkey_asn1_method_st EVP_PKEY_ASN1_METHOD;
0120 
0121 typedef struct evp_pkey_method_st EVP_PKEY_METHOD;
0122 typedef struct evp_pkey_ctx_st EVP_PKEY_CTX;
0123 
0124 typedef struct evp_keymgmt_st EVP_KEYMGMT;
0125 
0126 typedef struct evp_kdf_st EVP_KDF;
0127 typedef struct evp_kdf_ctx_st EVP_KDF_CTX;
0128 
0129 typedef struct evp_rand_st EVP_RAND;
0130 typedef struct evp_rand_ctx_st EVP_RAND_CTX;
0131 
0132 typedef struct evp_keyexch_st EVP_KEYEXCH;
0133 
0134 typedef struct evp_signature_st EVP_SIGNATURE;
0135 
0136 typedef struct evp_skeymgmt_st EVP_SKEYMGMT;
0137 
0138 typedef struct evp_asym_cipher_st EVP_ASYM_CIPHER;
0139 
0140 typedef struct evp_kem_st EVP_KEM;
0141 
0142 typedef struct evp_Encode_Ctx_st EVP_ENCODE_CTX;
0143 
0144 typedef struct hmac_ctx_st HMAC_CTX;
0145 
0146 typedef struct dh_st DH;
0147 typedef struct dh_method DH_METHOD;
0148 
0149 #ifndef OPENSSL_NO_DEPRECATED_3_0
0150 typedef struct dsa_st DSA;
0151 typedef struct dsa_method DSA_METHOD;
0152 #endif
0153 
0154 #ifndef OPENSSL_NO_DEPRECATED_3_0
0155 typedef struct rsa_st RSA;
0156 typedef struct rsa_meth_st RSA_METHOD;
0157 #endif
0158 typedef struct rsa_pss_params_st RSA_PSS_PARAMS;
0159 
0160 #ifndef OPENSSL_NO_DEPRECATED_3_0
0161 typedef struct ec_key_st EC_KEY;
0162 typedef struct ec_key_method_st EC_KEY_METHOD;
0163 #endif
0164 
0165 typedef struct rand_meth_st RAND_METHOD;
0166 typedef struct rand_drbg_st RAND_DRBG;
0167 
0168 typedef struct ssl_dane_st SSL_DANE;
0169 typedef struct x509_st X509;
0170 typedef struct X509_algor_st X509_ALGOR;
0171 typedef struct X509_crl_st X509_CRL;
0172 typedef struct x509_crl_method_st X509_CRL_METHOD;
0173 typedef struct x509_revoked_st X509_REVOKED;
0174 typedef struct X509_name_st X509_NAME;
0175 typedef struct X509_pubkey_st X509_PUBKEY;
0176 typedef struct x509_store_st X509_STORE;
0177 typedef struct x509_store_ctx_st X509_STORE_CTX;
0178 
0179 typedef struct x509_object_st X509_OBJECT;
0180 typedef struct x509_lookup_st X509_LOOKUP;
0181 typedef struct x509_lookup_method_st X509_LOOKUP_METHOD;
0182 typedef struct X509_VERIFY_PARAM_st X509_VERIFY_PARAM;
0183 
0184 typedef struct x509_sig_info_st X509_SIG_INFO;
0185 
0186 typedef struct pkcs8_priv_key_info_st PKCS8_PRIV_KEY_INFO;
0187 
0188 typedef struct v3_ext_ctx X509V3_CTX;
0189 typedef struct conf_st CONF;
0190 typedef struct ossl_init_settings_st OPENSSL_INIT_SETTINGS;
0191 
0192 typedef struct ui_st UI;
0193 typedef struct ui_method_st UI_METHOD;
0194 
0195 typedef struct engine_st ENGINE;
0196 typedef struct ssl_st SSL;
0197 typedef struct ssl_ctx_st SSL_CTX;
0198 
0199 typedef struct comp_ctx_st COMP_CTX;
0200 typedef struct comp_method_st COMP_METHOD;
0201 
0202 typedef struct X509_POLICY_NODE_st X509_POLICY_NODE;
0203 typedef struct X509_POLICY_LEVEL_st X509_POLICY_LEVEL;
0204 typedef struct X509_POLICY_TREE_st X509_POLICY_TREE;
0205 typedef struct X509_POLICY_CACHE_st X509_POLICY_CACHE;
0206 
0207 typedef struct AUTHORITY_KEYID_st AUTHORITY_KEYID;
0208 typedef struct DIST_POINT_st DIST_POINT;
0209 typedef struct ISSUING_DIST_POINT_st ISSUING_DIST_POINT;
0210 typedef struct NAME_CONSTRAINTS_st NAME_CONSTRAINTS;
0211 
0212 typedef struct crypto_ex_data_st CRYPTO_EX_DATA;
0213 
0214 typedef struct ossl_http_req_ctx_st OSSL_HTTP_REQ_CTX;
0215 typedef struct ocsp_response_st OCSP_RESPONSE;
0216 typedef struct ocsp_responder_id_st OCSP_RESPID;
0217 
0218 typedef struct sct_st SCT;
0219 typedef struct sct_ctx_st SCT_CTX;
0220 typedef struct ctlog_st CTLOG;
0221 typedef struct ctlog_store_st CTLOG_STORE;
0222 typedef struct ct_policy_eval_ctx_st CT_POLICY_EVAL_CTX;
0223 
0224 typedef struct ossl_store_info_st OSSL_STORE_INFO;
0225 typedef struct ossl_store_search_st OSSL_STORE_SEARCH;
0226 
0227 typedef struct ossl_lib_ctx_st OSSL_LIB_CTX;
0228 
0229 typedef struct ossl_dispatch_st OSSL_DISPATCH;
0230 typedef struct ossl_item_st OSSL_ITEM;
0231 typedef struct ossl_algorithm_st OSSL_ALGORITHM;
0232 typedef struct ossl_param_st OSSL_PARAM;
0233 typedef struct ossl_param_bld_st OSSL_PARAM_BLD;
0234 
0235 typedef int pem_password_cb(char *buf, int size, int rwflag, void *userdata);
0236 
0237 typedef struct ossl_encoder_st OSSL_ENCODER;
0238 typedef struct ossl_encoder_ctx_st OSSL_ENCODER_CTX;
0239 typedef struct ossl_decoder_st OSSL_DECODER;
0240 typedef struct ossl_decoder_ctx_st OSSL_DECODER_CTX;
0241 
0242 typedef struct ossl_self_test_st OSSL_SELF_TEST;
0243 
0244 #ifdef __cplusplus
0245 }
0246 #endif
0247 
0248 #endif /* OPENSSL_TYPES_H */