LTKCPP-- LLRP Toolkit C Plus Plus Library
|
00001 /* ==================================================================== 00002 * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. 00003 * 00004 * Redistribution and use in source and binary forms, with or without 00005 * modification, are permitted provided that the following conditions 00006 * are met: 00007 * 00008 * 1. Redistributions of source code must retain the above copyright 00009 * notice, this list of conditions and the following disclaimer. 00010 * 00011 * 2. Redistributions in binary form must reproduce the above copyright 00012 * notice, this list of conditions and the following disclaimer in 00013 * the documentation and/or other materials provided with the 00014 * distribution. 00015 * 00016 * 3. All advertising materials mentioning features or use of this 00017 * software must display the following acknowledgment: 00018 * "This product includes software developed by the OpenSSL Project 00019 * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 00020 * 00021 * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 00022 * endorse or promote products derived from this software without 00023 * prior written permission. For written permission, please contact 00024 * openssl-core@openssl.org. 00025 * 00026 * 5. Products derived from this software may not be called "OpenSSL" 00027 * nor may "OpenSSL" appear in their names without prior written 00028 * permission of the OpenSSL Project. 00029 * 00030 * 6. Redistributions of any form whatsoever must retain the following 00031 * acknowledgment: 00032 * "This product includes software developed by the OpenSSL Project 00033 * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 00034 * 00035 * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 00036 * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00037 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00038 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 00039 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00040 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 00041 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00042 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00043 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 00044 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00045 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 00046 * OF THE POSSIBILITY OF SUCH DAMAGE. 00047 * ==================================================================== 00048 * 00049 * This product includes cryptographic software written by Eric Young 00050 * (eay@cryptsoft.com). This product includes software written by Tim 00051 * Hudson (tjh@cryptsoft.com). 00052 * 00053 */ 00054 00055 #ifndef HEADER_OPENSSL_TYPES_H 00056 # define HEADER_OPENSSL_TYPES_H 00057 00058 #ifdef __cplusplus 00059 extern "C" { 00060 #endif 00061 00062 # include <openssl/e_os2.h> 00063 00064 # ifdef NO_ASN1_TYPEDEFS 00065 # define ASN1_INTEGER ASN1_STRING 00066 # define ASN1_ENUMERATED ASN1_STRING 00067 # define ASN1_BIT_STRING ASN1_STRING 00068 # define ASN1_OCTET_STRING ASN1_STRING 00069 # define ASN1_PRINTABLESTRING ASN1_STRING 00070 # define ASN1_T61STRING ASN1_STRING 00071 # define ASN1_IA5STRING ASN1_STRING 00072 # define ASN1_UTCTIME ASN1_STRING 00073 # define ASN1_GENERALIZEDTIME ASN1_STRING 00074 # define ASN1_TIME ASN1_STRING 00075 # define ASN1_GENERALSTRING ASN1_STRING 00076 # define ASN1_UNIVERSALSTRING ASN1_STRING 00077 # define ASN1_BMPSTRING ASN1_STRING 00078 # define ASN1_VISIBLESTRING ASN1_STRING 00079 # define ASN1_UTF8STRING ASN1_STRING 00080 # define ASN1_BOOLEAN int 00081 # define ASN1_NULL int 00082 # else 00083 typedef struct asn1_string_st ASN1_INTEGER; 00084 typedef struct asn1_string_st ASN1_ENUMERATED; 00085 typedef struct asn1_string_st ASN1_BIT_STRING; 00086 typedef struct asn1_string_st ASN1_OCTET_STRING; 00087 typedef struct asn1_string_st ASN1_PRINTABLESTRING; 00088 typedef struct asn1_string_st ASN1_T61STRING; 00089 typedef struct asn1_string_st ASN1_IA5STRING; 00090 typedef struct asn1_string_st ASN1_GENERALSTRING; 00091 typedef struct asn1_string_st ASN1_UNIVERSALSTRING; 00092 typedef struct asn1_string_st ASN1_BMPSTRING; 00093 typedef struct asn1_string_st ASN1_UTCTIME; 00094 typedef struct asn1_string_st ASN1_TIME; 00095 typedef struct asn1_string_st ASN1_GENERALIZEDTIME; 00096 typedef struct asn1_string_st ASN1_VISIBLESTRING; 00097 typedef struct asn1_string_st ASN1_UTF8STRING; 00098 typedef struct asn1_string_st ASN1_STRING; 00099 typedef int ASN1_BOOLEAN; 00100 typedef int ASN1_NULL; 00101 # endif 00102 00103 typedef struct asn1_object_st ASN1_OBJECT; 00104 00105 typedef struct ASN1_ITEM_st ASN1_ITEM; 00106 typedef struct asn1_pctx_st ASN1_PCTX; 00107 00108 # ifdef OPENSSL_SYS_WIN32 00109 # undef X509_NAME 00110 # undef X509_EXTENSIONS 00111 # undef X509_CERT_PAIR 00112 # undef PKCS7_ISSUER_AND_SERIAL 00113 # undef OCSP_REQUEST 00114 # undef OCSP_RESPONSE 00115 # endif 00116 00117 # ifdef BIGNUM 00118 # undef BIGNUM 00119 # endif 00120 typedef struct bignum_st BIGNUM; 00121 typedef struct bignum_ctx BN_CTX; 00122 typedef struct bn_blinding_st BN_BLINDING; 00123 typedef struct bn_mont_ctx_st BN_MONT_CTX; 00124 typedef struct bn_recp_ctx_st BN_RECP_CTX; 00125 typedef struct bn_gencb_st BN_GENCB; 00126 00127 typedef struct buf_mem_st BUF_MEM; 00128 00129 typedef struct evp_cipher_st EVP_CIPHER; 00130 typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX; 00131 typedef struct env_md_st EVP_MD; 00132 typedef struct env_md_ctx_st EVP_MD_CTX; 00133 typedef struct evp_pkey_st EVP_PKEY; 00134 00135 typedef struct evp_pkey_asn1_method_st EVP_PKEY_ASN1_METHOD; 00136 00137 typedef struct evp_pkey_method_st EVP_PKEY_METHOD; 00138 typedef struct evp_pkey_ctx_st EVP_PKEY_CTX; 00139 00140 typedef struct dh_st DH; 00141 typedef struct dh_method DH_METHOD; 00142 00143 typedef struct dsa_st DSA; 00144 typedef struct dsa_method DSA_METHOD; 00145 00146 typedef struct rsa_st RSA; 00147 typedef struct rsa_meth_st RSA_METHOD; 00148 00149 typedef struct rand_meth_st RAND_METHOD; 00150 00151 typedef struct ecdh_method ECDH_METHOD; 00152 typedef struct ecdsa_method ECDSA_METHOD; 00153 00154 typedef struct x509_st X509; 00155 typedef struct X509_algor_st X509_ALGOR; 00156 typedef struct X509_crl_st X509_CRL; 00157 typedef struct x509_crl_method_st X509_CRL_METHOD; 00158 typedef struct x509_revoked_st X509_REVOKED; 00159 typedef struct X509_name_st X509_NAME; 00160 typedef struct X509_pubkey_st X509_PUBKEY; 00161 typedef struct x509_store_st X509_STORE; 00162 typedef struct x509_store_ctx_st X509_STORE_CTX; 00163 00164 typedef struct pkcs8_priv_key_info_st PKCS8_PRIV_KEY_INFO; 00165 00166 typedef struct v3_ext_ctx X509V3_CTX; 00167 typedef struct conf_st CONF; 00168 00169 typedef struct store_st STORE; 00170 typedef struct store_method_st STORE_METHOD; 00171 00172 typedef struct ui_st UI; 00173 typedef struct ui_method_st UI_METHOD; 00174 00175 typedef struct st_ERR_FNS ERR_FNS; 00176 00177 typedef struct engine_st ENGINE; 00178 typedef struct ssl_st SSL; 00179 typedef struct ssl_ctx_st SSL_CTX; 00180 00181 typedef struct X509_POLICY_NODE_st X509_POLICY_NODE; 00182 typedef struct X509_POLICY_LEVEL_st X509_POLICY_LEVEL; 00183 typedef struct X509_POLICY_TREE_st X509_POLICY_TREE; 00184 typedef struct X509_POLICY_CACHE_st X509_POLICY_CACHE; 00185 00186 typedef struct AUTHORITY_KEYID_st AUTHORITY_KEYID; 00187 typedef struct DIST_POINT_st DIST_POINT; 00188 typedef struct ISSUING_DIST_POINT_st ISSUING_DIST_POINT; 00189 typedef struct NAME_CONSTRAINTS_st NAME_CONSTRAINTS; 00190 00191 /* If placed in pkcs12.h, we end up with a circular depency with pkcs7.h */ 00192 # define DECLARE_PKCS12_STACK_OF(type)/* Nothing */ 00193 # define IMPLEMENT_PKCS12_STACK_OF(type)/* Nothing */ 00194 00195 typedef struct crypto_ex_data_st CRYPTO_EX_DATA; 00196 /* Callback types for crypto.h */ 00197 typedef int CRYPTO_EX_new (void *parent, void *ptr, CRYPTO_EX_DATA *ad, 00198 int idx, long argl, void *argp); 00199 typedef void CRYPTO_EX_free (void *parent, void *ptr, CRYPTO_EX_DATA *ad, 00200 int idx, long argl, void *argp); 00201 typedef int CRYPTO_EX_dup (CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, 00202 void *from_d, int idx, long argl, void *argp); 00203 00204 typedef struct ocsp_req_ctx_st OCSP_REQ_CTX; 00205 typedef struct ocsp_response_st OCSP_RESPONSE; 00206 typedef struct ocsp_responder_id_st OCSP_RESPID; 00207 00208 #ifdef __cplusplus 00209 } 00210 #endif 00211 #endif /* def HEADER_OPENSSL_TYPES_H */