--- /dev/null
+/* ====================================================================\r
+ * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved.\r
+ *\r
+ * Redistribution and use in source and binary forms, with or without\r
+ * modification, are permitted provided that the following conditions\r
+ * are met:\r
+ *\r
+ * 1. Redistributions of source code must retain the above copyright\r
+ * notice, this list of conditions and the following disclaimer. \r
+ *\r
+ * 2. Redistributions in binary form must reproduce the above copyright\r
+ * notice, this list of conditions and the following disclaimer in\r
+ * the documentation and/or other materials provided with the\r
+ * distribution.\r
+ *\r
+ * 3. All advertising materials mentioning features or use of this\r
+ * software must display the following acknowledgment:\r
+ * "This product includes software developed by the OpenSSL Project\r
+ * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"\r
+ *\r
+ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to\r
+ * endorse or promote products derived from this software without\r
+ * prior written permission. For written permission, please contact\r
+ * openssl-core@openssl.org.\r
+ *\r
+ * 5. Products derived from this software may not be called "OpenSSL"\r
+ * nor may "OpenSSL" appear in their names without prior written\r
+ * permission of the OpenSSL Project.\r
+ *\r
+ * 6. Redistributions of any form whatsoever must retain the following\r
+ * acknowledgment:\r
+ * "This product includes software developed by the OpenSSL Project\r
+ * for use in the OpenSSL Toolkit (http://www.openssl.org/)"\r
+ *\r
+ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY\r
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR\r
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\r
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\r
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\r
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\r
+ * OF THE POSSIBILITY OF SUCH DAMAGE.\r
+ * ====================================================================\r
+ *\r
+ * This product includes cryptographic software written by Eric Young\r
+ * (eay@cryptsoft.com). This product includes software written by Tim\r
+ * Hudson (tjh@cryptsoft.com).\r
+ *\r
+ */\r
+\r
+#ifndef HEADER_OPENSSL_TYPES_H\r
+#define HEADER_OPENSSL_TYPES_H\r
+\r
+#include <openssl/e_os2.h>\r
+\r
+#ifdef NO_ASN1_TYPEDEFS\r
+#define ASN1_INTEGER ASN1_STRING\r
+#define ASN1_ENUMERATED ASN1_STRING\r
+#define ASN1_BIT_STRING ASN1_STRING\r
+#define ASN1_OCTET_STRING ASN1_STRING\r
+#define ASN1_PRINTABLESTRING ASN1_STRING\r
+#define ASN1_T61STRING ASN1_STRING\r
+#define ASN1_IA5STRING ASN1_STRING\r
+#define ASN1_UTCTIME ASN1_STRING\r
+#define ASN1_GENERALIZEDTIME ASN1_STRING\r
+#define ASN1_TIME ASN1_STRING\r
+#define ASN1_GENERALSTRING ASN1_STRING\r
+#define ASN1_UNIVERSALSTRING ASN1_STRING\r
+#define ASN1_BMPSTRING ASN1_STRING\r
+#define ASN1_VISIBLESTRING ASN1_STRING\r
+#define ASN1_UTF8STRING ASN1_STRING\r
+#define ASN1_BOOLEAN int\r
+#define ASN1_NULL int\r
+#else\r
+typedef struct asn1_string_st ASN1_INTEGER;\r
+typedef struct asn1_string_st ASN1_ENUMERATED;\r
+typedef struct asn1_string_st ASN1_BIT_STRING;\r
+typedef struct asn1_string_st ASN1_OCTET_STRING;\r
+typedef struct asn1_string_st ASN1_PRINTABLESTRING;\r
+typedef struct asn1_string_st ASN1_T61STRING;\r
+typedef struct asn1_string_st ASN1_IA5STRING;\r
+typedef struct asn1_string_st ASN1_GENERALSTRING;\r
+typedef struct asn1_string_st ASN1_UNIVERSALSTRING;\r
+typedef struct asn1_string_st ASN1_BMPSTRING;\r
+typedef struct asn1_string_st ASN1_UTCTIME;\r
+typedef struct asn1_string_st ASN1_TIME;\r
+typedef struct asn1_string_st ASN1_GENERALIZEDTIME;\r
+typedef struct asn1_string_st ASN1_VISIBLESTRING;\r
+typedef struct asn1_string_st ASN1_UTF8STRING;\r
+typedef int ASN1_BOOLEAN;\r
+typedef int ASN1_NULL;\r
+#endif\r
+\r
+#ifdef OPENSSL_SYS_WIN32\r
+#undef X509_NAME\r
+#undef X509_CERT_PAIR\r
+#undef PKCS7_ISSUER_AND_SERIAL\r
+#endif\r
+\r
+#ifdef BIGNUM\r
+#undef BIGNUM\r
+#endif\r
+typedef struct bignum_st BIGNUM;\r
+typedef struct bignum_ctx BN_CTX;\r
+typedef struct bn_blinding_st BN_BLINDING;\r
+typedef struct bn_mont_ctx_st BN_MONT_CTX;\r
+typedef struct bn_recp_ctx_st BN_RECP_CTX;\r
+typedef struct bn_gencb_st BN_GENCB;\r
+\r
+typedef struct buf_mem_st BUF_MEM;\r
+\r
+typedef struct evp_cipher_st EVP_CIPHER;\r
+typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;\r
+typedef struct env_md_st EVP_MD;\r
+typedef struct env_md_ctx_st EVP_MD_CTX;\r
+typedef struct evp_pkey_st EVP_PKEY;\r
+\r
+typedef struct dh_st DH;\r
+typedef struct dh_method DH_METHOD;\r
+\r
+typedef struct dsa_st DSA;\r
+typedef struct dsa_method DSA_METHOD;\r
+\r
+typedef struct rsa_st RSA;\r
+typedef struct rsa_meth_st RSA_METHOD;\r
+\r
+typedef struct rand_meth_st RAND_METHOD;\r
+\r
+typedef struct ecdh_method ECDH_METHOD;\r
+typedef struct ecdsa_method ECDSA_METHOD;\r
+\r
+typedef struct x509_st X509;\r
+typedef struct X509_algor_st X509_ALGOR;\r
+typedef struct X509_crl_st X509_CRL;\r
+typedef struct X509_name_st X509_NAME;\r
+typedef struct x509_store_st X509_STORE;\r
+typedef struct x509_store_ctx_st X509_STORE_CTX;\r
+\r
+typedef struct v3_ext_ctx X509V3_CTX;\r
+typedef struct conf_st CONF;\r
+\r
+typedef struct store_st STORE;\r
+typedef struct store_method_st STORE_METHOD;\r
+\r
+typedef struct ui_st UI;\r
+typedef struct ui_method_st UI_METHOD;\r
+\r
+typedef struct st_ERR_FNS ERR_FNS;\r
+\r
+typedef struct engine_st ENGINE;\r
+\r
+typedef struct X509_POLICY_NODE_st X509_POLICY_NODE;\r
+typedef struct X509_POLICY_LEVEL_st X509_POLICY_LEVEL;\r
+typedef struct X509_POLICY_TREE_st X509_POLICY_TREE;\r
+typedef struct X509_POLICY_CACHE_st X509_POLICY_CACHE;\r
+\r
+ /* If placed in pkcs12.h, we end up with a circular depency with pkcs7.h */\r
+#define DECLARE_PKCS12_STACK_OF(type) /* Nothing */\r
+#define IMPLEMENT_PKCS12_STACK_OF(type) /* Nothing */\r
+\r
+typedef struct crypto_ex_data_st CRYPTO_EX_DATA;\r
+/* Callback types for crypto.h */\r
+typedef int CRYPTO_EX_new(void *parent, void *ptr, CRYPTO_EX_DATA *ad,\r
+ int idx, long argl, void *argp);\r
+typedef void CRYPTO_EX_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad,\r
+ int idx, long argl, void *argp);\r
+typedef int CRYPTO_EX_dup(CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, void *from_d, \r
+ int idx, long argl, void *argp);\r
+\r
+#endif /* def HEADER_OPENSSL_TYPES_H */\r