| 
									
										
										
										
											2001-08-06 02:02:16 +08:00
										 |  |  | /* ====================================================================
 | 
					
						
							|  |  |  |  * Copyright (c) 1998-2001 The OpenSSL Project.  All rights reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Redistribution and use in source and binary forms, with or without | 
					
						
							|  |  |  |  * modification, are permitted provided that the following conditions | 
					
						
							|  |  |  |  * are met: | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * 1. Redistributions of source code must retain the above copyright | 
					
						
							| 
									
										
										
										
											2015-01-22 11:40:55 +08:00
										 |  |  |  *    notice, this list of conditions and the following disclaimer. | 
					
						
							| 
									
										
										
										
											2001-08-06 02:02:16 +08:00
										 |  |  |  * | 
					
						
							|  |  |  |  * 2. Redistributions in binary form must reproduce the above copyright | 
					
						
							|  |  |  |  *    notice, this list of conditions and the following disclaimer in | 
					
						
							|  |  |  |  *    the documentation and/or other materials provided with the | 
					
						
							|  |  |  |  *    distribution. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * 3. All advertising materials mentioning features or use of this | 
					
						
							|  |  |  |  *    software must display the following acknowledgment: | 
					
						
							|  |  |  |  *    "This product includes software developed by the OpenSSL Project | 
					
						
							|  |  |  |  *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
 | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | 
					
						
							|  |  |  |  *    endorse or promote products derived from this software without | 
					
						
							|  |  |  |  *    prior written permission. For written permission, please contact | 
					
						
							|  |  |  |  *    openssl-core@openssl.org. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * 5. Products derived from this software may not be called "OpenSSL" | 
					
						
							|  |  |  |  *    nor may "OpenSSL" appear in their names without prior written | 
					
						
							|  |  |  |  *    permission of the OpenSSL Project. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * 6. Redistributions of any form whatsoever must retain the following | 
					
						
							|  |  |  |  *    acknowledgment: | 
					
						
							|  |  |  |  *    "This product includes software developed by the OpenSSL Project | 
					
						
							|  |  |  |  *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
 | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | 
					
						
							|  |  |  |  * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 
					
						
							|  |  |  |  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 
					
						
							|  |  |  |  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR | 
					
						
							|  |  |  |  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 
					
						
							|  |  |  |  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | 
					
						
							|  |  |  |  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 
					
						
							|  |  |  |  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 
					
						
							|  |  |  |  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | 
					
						
							|  |  |  |  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 
					
						
							|  |  |  |  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 
					
						
							|  |  |  |  * OF THE POSSIBILITY OF SUCH DAMAGE. | 
					
						
							|  |  |  |  * ==================================================================== | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This product includes cryptographic software written by Eric Young | 
					
						
							|  |  |  |  * (eay@cryptsoft.com).  This product includes software written by Tim | 
					
						
							|  |  |  |  * Hudson (tjh@cryptsoft.com). | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef HEADER_OPENSSL_TYPES_H
 | 
					
						
							| 
									
										
										
										
											2015-01-22 11:40:55 +08:00
										 |  |  | # define HEADER_OPENSSL_TYPES_H
 | 
					
						
							| 
									
										
										
										
											2001-08-06 02:02:16 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-08-28 03:28:08 +08:00
										 |  |  | #ifdef  __cplusplus
 | 
					
						
							|  |  |  | extern "C" { | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-22 11:40:55 +08:00
										 |  |  | # include <openssl/e_os2.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # ifdef NO_ASN1_TYPEDEFS
 | 
					
						
							|  |  |  | #  define ASN1_INTEGER            ASN1_STRING
 | 
					
						
							|  |  |  | #  define ASN1_ENUMERATED         ASN1_STRING
 | 
					
						
							|  |  |  | #  define ASN1_BIT_STRING         ASN1_STRING
 | 
					
						
							|  |  |  | #  define ASN1_OCTET_STRING       ASN1_STRING
 | 
					
						
							|  |  |  | #  define ASN1_PRINTABLESTRING    ASN1_STRING
 | 
					
						
							|  |  |  | #  define ASN1_T61STRING          ASN1_STRING
 | 
					
						
							|  |  |  | #  define ASN1_IA5STRING          ASN1_STRING
 | 
					
						
							|  |  |  | #  define ASN1_UTCTIME            ASN1_STRING
 | 
					
						
							|  |  |  | #  define ASN1_GENERALIZEDTIME    ASN1_STRING
 | 
					
						
							|  |  |  | #  define ASN1_TIME               ASN1_STRING
 | 
					
						
							|  |  |  | #  define ASN1_GENERALSTRING      ASN1_STRING
 | 
					
						
							|  |  |  | #  define ASN1_UNIVERSALSTRING    ASN1_STRING
 | 
					
						
							|  |  |  | #  define ASN1_BMPSTRING          ASN1_STRING
 | 
					
						
							|  |  |  | #  define ASN1_VISIBLESTRING      ASN1_STRING
 | 
					
						
							|  |  |  | #  define ASN1_UTF8STRING         ASN1_STRING
 | 
					
						
							|  |  |  | #  define ASN1_BOOLEAN            int
 | 
					
						
							|  |  |  | #  define ASN1_NULL               int
 | 
					
						
							|  |  |  | # else
 | 
					
						
							| 
									
										
										
										
											2001-08-06 02:02:16 +08:00
										 |  |  | typedef struct asn1_string_st ASN1_INTEGER; | 
					
						
							|  |  |  | typedef struct asn1_string_st ASN1_ENUMERATED; | 
					
						
							|  |  |  | typedef struct asn1_string_st ASN1_BIT_STRING; | 
					
						
							|  |  |  | typedef struct asn1_string_st ASN1_OCTET_STRING; | 
					
						
							|  |  |  | typedef struct asn1_string_st ASN1_PRINTABLESTRING; | 
					
						
							|  |  |  | typedef struct asn1_string_st ASN1_T61STRING; | 
					
						
							|  |  |  | typedef struct asn1_string_st ASN1_IA5STRING; | 
					
						
							|  |  |  | typedef struct asn1_string_st ASN1_GENERALSTRING; | 
					
						
							|  |  |  | typedef struct asn1_string_st ASN1_UNIVERSALSTRING; | 
					
						
							|  |  |  | typedef struct asn1_string_st ASN1_BMPSTRING; | 
					
						
							|  |  |  | typedef struct asn1_string_st ASN1_UTCTIME; | 
					
						
							|  |  |  | typedef struct asn1_string_st ASN1_TIME; | 
					
						
							|  |  |  | typedef struct asn1_string_st ASN1_GENERALIZEDTIME; | 
					
						
							|  |  |  | typedef struct asn1_string_st ASN1_VISIBLESTRING; | 
					
						
							|  |  |  | typedef struct asn1_string_st ASN1_UTF8STRING; | 
					
						
							| 
									
										
										
										
											2010-03-07 02:05:05 +08:00
										 |  |  | typedef struct asn1_string_st ASN1_STRING; | 
					
						
							| 
									
										
										
										
											2001-08-06 02:02:16 +08:00
										 |  |  | typedef int ASN1_BOOLEAN; | 
					
						
							|  |  |  | typedef int ASN1_NULL; | 
					
						
							| 
									
										
										
										
											2015-01-22 11:40:55 +08:00
										 |  |  | # endif
 | 
					
						
							| 
									
										
										
										
											2001-08-06 02:02:16 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-31 01:05:08 +08:00
										 |  |  | typedef struct asn1_object_st ASN1_OBJECT; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-09 02:10:35 +08:00
										 |  |  | typedef struct ASN1_ITEM_st ASN1_ITEM; | 
					
						
							| 
									
										
										
										
											2005-09-01 21:59:16 +08:00
										 |  |  | typedef struct asn1_pctx_st ASN1_PCTX; | 
					
						
							| 
									
										
										
										
											2010-12-14 02:15:28 +08:00
										 |  |  | typedef struct asn1_sctx_st ASN1_SCTX; | 
					
						
							| 
									
										
										
										
											2005-09-01 21:59:16 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-22 11:40:55 +08:00
										 |  |  | # ifdef OPENSSL_SYS_WIN32
 | 
					
						
							|  |  |  | #  undef X509_NAME
 | 
					
						
							|  |  |  | #  undef X509_EXTENSIONS
 | 
					
						
							|  |  |  | #  undef X509_CERT_PAIR
 | 
					
						
							|  |  |  | #  undef PKCS7_ISSUER_AND_SERIAL
 | 
					
						
							|  |  |  | #  undef OCSP_REQUEST
 | 
					
						
							|  |  |  | #  undef OCSP_RESPONSE
 | 
					
						
							|  |  |  | # endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # ifdef BIGNUM
 | 
					
						
							|  |  |  | #  undef BIGNUM
 | 
					
						
							|  |  |  | # endif
 | 
					
						
							| 
									
										
										
										
											2004-05-16 02:32:08 +08:00
										 |  |  | typedef struct bignum_st BIGNUM; | 
					
						
							|  |  |  | typedef struct bignum_ctx BN_CTX; | 
					
						
							|  |  |  | typedef struct bn_blinding_st BN_BLINDING; | 
					
						
							|  |  |  | typedef struct bn_mont_ctx_st BN_MONT_CTX; | 
					
						
							|  |  |  | typedef struct bn_recp_ctx_st BN_RECP_CTX; | 
					
						
							|  |  |  | typedef struct bn_gencb_st BN_GENCB; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | typedef struct buf_mem_st BUF_MEM; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-08-06 02:02:16 +08:00
										 |  |  | typedef struct evp_cipher_st EVP_CIPHER; | 
					
						
							|  |  |  | typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX; | 
					
						
							|  |  |  | typedef struct env_md_st EVP_MD; | 
					
						
							| 
									
										
										
										
											2001-09-03 04:05:27 +08:00
										 |  |  | typedef struct env_md_ctx_st EVP_MD_CTX; | 
					
						
							| 
									
										
										
										
											2001-08-06 02:02:16 +08:00
										 |  |  | typedef struct evp_pkey_st EVP_PKEY; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-03-20 20:22:24 +08:00
										 |  |  | typedef struct evp_pkey_asn1_method_st EVP_PKEY_ASN1_METHOD; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-06 21:02:06 +08:00
										 |  |  | typedef struct evp_pkey_method_st EVP_PKEY_METHOD; | 
					
						
							|  |  |  | typedef struct evp_pkey_ctx_st EVP_PKEY_CTX; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-04-20 01:46:04 +08:00
										 |  |  | typedef struct dh_st DH; | 
					
						
							|  |  |  | typedef struct dh_method DH_METHOD; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | typedef struct dsa_st DSA; | 
					
						
							|  |  |  | typedef struct dsa_method DSA_METHOD; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | typedef struct rsa_st RSA; | 
					
						
							|  |  |  | typedef struct rsa_meth_st RSA_METHOD; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | typedef struct rand_meth_st RAND_METHOD; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | typedef struct ecdh_method ECDH_METHOD; | 
					
						
							|  |  |  | typedef struct ecdsa_method ECDSA_METHOD; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-08-06 02:02:16 +08:00
										 |  |  | typedef struct x509_st X509; | 
					
						
							|  |  |  | typedef struct X509_algor_st X509_ALGOR; | 
					
						
							|  |  |  | typedef struct X509_crl_st X509_CRL; | 
					
						
							| 
									
										
										
										
											2006-09-21 20:42:15 +08:00
										 |  |  | typedef struct x509_crl_method_st X509_CRL_METHOD; | 
					
						
							|  |  |  | typedef struct x509_revoked_st X509_REVOKED; | 
					
						
							| 
									
										
										
										
											2001-08-06 02:02:16 +08:00
										 |  |  | typedef struct X509_name_st X509_NAME; | 
					
						
							| 
									
										
										
										
											2006-03-20 20:22:24 +08:00
										 |  |  | typedef struct X509_pubkey_st X509_PUBKEY; | 
					
						
							| 
									
										
										
										
											2001-08-06 02:02:16 +08:00
										 |  |  | typedef struct x509_store_st X509_STORE; | 
					
						
							|  |  |  | typedef struct x509_store_ctx_st X509_STORE_CTX; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-03-20 20:22:24 +08:00
										 |  |  | typedef struct pkcs8_priv_key_info_st PKCS8_PRIV_KEY_INFO; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-11-12 21:34:51 +08:00
										 |  |  | typedef struct v3_ext_ctx X509V3_CTX; | 
					
						
							|  |  |  | typedef struct conf_st CONF; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-04-20 01:46:04 +08:00
										 |  |  | typedef struct store_st STORE; | 
					
						
							|  |  |  | typedef struct store_method_st STORE_METHOD; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | typedef struct ui_st UI; | 
					
						
							|  |  |  | typedef struct ui_method_st UI_METHOD; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | typedef struct st_ERR_FNS ERR_FNS; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-12 10:34:20 +08:00
										 |  |  | typedef struct engine_st ENGINE; | 
					
						
							| 
									
										
										
										
											2008-06-02 05:10:30 +08:00
										 |  |  | typedef struct ssl_st SSL; | 
					
						
							|  |  |  | typedef struct ssl_ctx_st SSL_CTX; | 
					
						
							| 
									
										
										
										
											2001-09-12 10:34:20 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-03-23 22:14:35 +08:00
										 |  |  | typedef struct X509_POLICY_NODE_st X509_POLICY_NODE; | 
					
						
							|  |  |  | typedef struct X509_POLICY_LEVEL_st X509_POLICY_LEVEL; | 
					
						
							|  |  |  | typedef struct X509_POLICY_TREE_st X509_POLICY_TREE; | 
					
						
							|  |  |  | typedef struct X509_POLICY_CACHE_st X509_POLICY_CACHE; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-07-24 20:39:22 +08:00
										 |  |  | typedef struct AUTHORITY_KEYID_st AUTHORITY_KEYID; | 
					
						
							|  |  |  | typedef struct DIST_POINT_st DIST_POINT; | 
					
						
							|  |  |  | typedef struct ISSUING_DIST_POINT_st ISSUING_DIST_POINT; | 
					
						
							| 
									
										
										
										
											2008-08-08 23:35:29 +08:00
										 |  |  | typedef struct NAME_CONSTRAINTS_st NAME_CONSTRAINTS; | 
					
						
							| 
									
										
										
										
											2006-07-24 20:39:22 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-08-06 02:02:16 +08:00
										 |  |  |   /* If placed in pkcs12.h, we end up with a circular depency with pkcs7.h */ | 
					
						
							| 
									
										
										
										
											2015-01-22 11:40:55 +08:00
										 |  |  | # define DECLARE_PKCS12_STACK_OF(type)/* Nothing */
 | 
					
						
							|  |  |  | # define IMPLEMENT_PKCS12_STACK_OF(type)/* Nothing */
 | 
					
						
							| 
									
										
										
										
											2001-08-06 02:02:16 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-05-18 02:39:00 +08:00
										 |  |  | typedef struct crypto_ex_data_st CRYPTO_EX_DATA; | 
					
						
							|  |  |  | /* Callback types for crypto.h */ | 
					
						
							| 
									
										
										
										
											2015-01-22 11:40:55 +08:00
										 |  |  | typedef int CRYPTO_EX_new (void *parent, void *ptr, CRYPTO_EX_DATA *ad, | 
					
						
							|  |  |  |                            int idx, long argl, void *argp); | 
					
						
							|  |  |  | typedef void CRYPTO_EX_free (void *parent, void *ptr, CRYPTO_EX_DATA *ad, | 
					
						
							|  |  |  |                              int idx, long argl, void *argp); | 
					
						
							|  |  |  | typedef int CRYPTO_EX_dup (CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, | 
					
						
							|  |  |  |                            void *from_d, int idx, long argl, void *argp); | 
					
						
							| 
									
										
										
										
											2004-05-18 02:39:00 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-07-17 20:18:28 +08:00
										 |  |  | typedef struct ocsp_req_ctx_st OCSP_REQ_CTX; | 
					
						
							| 
									
										
										
										
											2007-09-27 05:56:59 +08:00
										 |  |  | typedef struct ocsp_response_st OCSP_RESPONSE; | 
					
						
							|  |  |  | typedef struct ocsp_responder_id_st OCSP_RESPID; | 
					
						
							| 
									
										
										
										
											2006-07-17 20:18:28 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-08-28 03:28:08 +08:00
										 |  |  | #ifdef  __cplusplus
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2015-01-22 11:40:55 +08:00
										 |  |  | #endif                          /* def HEADER_OPENSSL_TYPES_H */
 |