1.1 --- a/epoc32/include/stdapis/openssl/ossl_typ.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/stdapis/openssl/ossl_typ.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,178 @@
1.4 -ossl_typ.h
1.5 +/* ====================================================================
1.6 + * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved.
1.7 + *
1.8 + * Redistribution and use in source and binary forms, with or without
1.9 + * modification, are permitted provided that the following conditions
1.10 + * are met:
1.11 + *
1.12 + * 1. Redistributions of source code must retain the above copyright
1.13 + * notice, this list of conditions and the following disclaimer.
1.14 + *
1.15 + * 2. Redistributions in binary form must reproduce the above copyright
1.16 + * notice, this list of conditions and the following disclaimer in
1.17 + * the documentation and/or other materials provided with the
1.18 + * distribution.
1.19 + *
1.20 + * 3. All advertising materials mentioning features or use of this
1.21 + * software must display the following acknowledgment:
1.22 + * "This product includes software developed by the OpenSSL Project
1.23 + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
1.24 + *
1.25 + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
1.26 + * endorse or promote products derived from this software without
1.27 + * prior written permission. For written permission, please contact
1.28 + * openssl-core@openssl.org.
1.29 + *
1.30 + * 5. Products derived from this software may not be called "OpenSSL"
1.31 + * nor may "OpenSSL" appear in their names without prior written
1.32 + * permission of the OpenSSL Project.
1.33 + *
1.34 + * 6. Redistributions of any form whatsoever must retain the following
1.35 + * acknowledgment:
1.36 + * "This product includes software developed by the OpenSSL Project
1.37 + * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
1.38 + *
1.39 + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
1.40 + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1.41 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1.42 + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
1.43 + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1.44 + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
1.45 + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
1.46 + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1.47 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
1.48 + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1.49 + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
1.50 + * OF THE POSSIBILITY OF SUCH DAMAGE.
1.51 + * ====================================================================
1.52 + *
1.53 + * This product includes cryptographic software written by Eric Young
1.54 + * (eay@cryptsoft.com). This product includes software written by Tim
1.55 + * Hudson (tjh@cryptsoft.com).
1.56 + *
1.57 + */
1.58 +
1.59 +#ifndef HEADER_OPENSSL_TYPES_H
1.60 +#define HEADER_OPENSSL_TYPES_H
1.61 +
1.62 +#if (defined(__SYMBIAN32__) && !defined(SYMBIAN))
1.63 +#define SYMBIAN
1.64 +#endif
1.65 +
1.66 +#include <openssl/e_os2.h>
1.67 +
1.68 +#ifdef NO_ASN1_TYPEDEFS
1.69 +#define ASN1_INTEGER ASN1_STRING
1.70 +#define ASN1_ENUMERATED ASN1_STRING
1.71 +#define ASN1_BIT_STRING ASN1_STRING
1.72 +#define ASN1_OCTET_STRING ASN1_STRING
1.73 +#define ASN1_PRINTABLESTRING ASN1_STRING
1.74 +#define ASN1_T61STRING ASN1_STRING
1.75 +#define ASN1_IA5STRING ASN1_STRING
1.76 +#define ASN1_UTCTIME ASN1_STRING
1.77 +#define ASN1_GENERALIZEDTIME ASN1_STRING
1.78 +#define ASN1_TIME ASN1_STRING
1.79 +#define ASN1_GENERALSTRING ASN1_STRING
1.80 +#define ASN1_UNIVERSALSTRING ASN1_STRING
1.81 +#define ASN1_BMPSTRING ASN1_STRING
1.82 +#define ASN1_VISIBLESTRING ASN1_STRING
1.83 +#define ASN1_UTF8STRING ASN1_STRING
1.84 +#define ASN1_BOOLEAN int
1.85 +#define ASN1_NULL int
1.86 +#else
1.87 +typedef struct asn1_string_st ASN1_INTEGER;
1.88 +typedef struct asn1_string_st ASN1_ENUMERATED;
1.89 +typedef struct asn1_string_st ASN1_BIT_STRING;
1.90 +typedef struct asn1_string_st ASN1_OCTET_STRING;
1.91 +typedef struct asn1_string_st ASN1_PRINTABLESTRING;
1.92 +typedef struct asn1_string_st ASN1_T61STRING;
1.93 +typedef struct asn1_string_st ASN1_IA5STRING;
1.94 +typedef struct asn1_string_st ASN1_GENERALSTRING;
1.95 +typedef struct asn1_string_st ASN1_UNIVERSALSTRING;
1.96 +typedef struct asn1_string_st ASN1_BMPSTRING;
1.97 +typedef struct asn1_string_st ASN1_UTCTIME;
1.98 +typedef struct asn1_string_st ASN1_TIME;
1.99 +typedef struct asn1_string_st ASN1_GENERALIZEDTIME;
1.100 +typedef struct asn1_string_st ASN1_VISIBLESTRING;
1.101 +typedef struct asn1_string_st ASN1_UTF8STRING;
1.102 +typedef int ASN1_BOOLEAN;
1.103 +typedef int ASN1_NULL;
1.104 +#endif
1.105 +
1.106 +#ifdef OPENSSL_SYS_WIN32
1.107 +#undef X509_NAME
1.108 +#undef X509_CERT_PAIR
1.109 +#undef PKCS7_ISSUER_AND_SERIAL
1.110 +#endif
1.111 +
1.112 +#ifdef BIGNUM
1.113 +#undef BIGNUM
1.114 +#endif
1.115 +typedef struct bignum_st BIGNUM;
1.116 +typedef struct bignum_ctx BN_CTX;
1.117 +typedef struct bn_blinding_st BN_BLINDING;
1.118 +typedef struct bn_mont_ctx_st BN_MONT_CTX;
1.119 +typedef struct bn_recp_ctx_st BN_RECP_CTX;
1.120 +typedef struct bn_gencb_st BN_GENCB;
1.121 +
1.122 +typedef struct buf_mem_st BUF_MEM;
1.123 +
1.124 +typedef struct evp_cipher_st EVP_CIPHER;
1.125 +typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;
1.126 +typedef struct env_md_st EVP_MD;
1.127 +typedef struct env_md_ctx_st EVP_MD_CTX;
1.128 +typedef struct evp_pkey_st EVP_PKEY;
1.129 +
1.130 +typedef struct dh_st DH;
1.131 +typedef struct dh_method DH_METHOD;
1.132 +
1.133 +typedef struct dsa_st DSA;
1.134 +typedef struct dsa_method DSA_METHOD;
1.135 +
1.136 +typedef struct rsa_st RSA;
1.137 +typedef struct rsa_meth_st RSA_METHOD;
1.138 +
1.139 +typedef struct rand_meth_st RAND_METHOD;
1.140 +
1.141 +typedef struct ecdh_method ECDH_METHOD;
1.142 +typedef struct ecdsa_method ECDSA_METHOD;
1.143 +
1.144 +typedef struct x509_st X509;
1.145 +typedef struct X509_algor_st X509_ALGOR;
1.146 +typedef struct X509_crl_st X509_CRL;
1.147 +typedef struct X509_name_st X509_NAME;
1.148 +typedef struct x509_store_st X509_STORE;
1.149 +typedef struct x509_store_ctx_st X509_STORE_CTX;
1.150 +
1.151 +typedef struct v3_ext_ctx X509V3_CTX;
1.152 +typedef struct conf_st CONF;
1.153 +
1.154 +typedef struct store_st STORE;
1.155 +typedef struct store_method_st STORE_METHOD;
1.156 +
1.157 +typedef struct ui_st UI;
1.158 +typedef struct ui_method_st UI_METHOD;
1.159 +
1.160 +typedef struct st_ERR_FNS ERR_FNS;
1.161 +
1.162 +typedef struct engine_st ENGINE;
1.163 +
1.164 +typedef struct X509_POLICY_NODE_st X509_POLICY_NODE;
1.165 +typedef struct X509_POLICY_LEVEL_st X509_POLICY_LEVEL;
1.166 +typedef struct X509_POLICY_TREE_st X509_POLICY_TREE;
1.167 +typedef struct X509_POLICY_CACHE_st X509_POLICY_CACHE;
1.168 +
1.169 + /* If placed in pkcs12.h, we end up with a circular depency with pkcs7.h */
1.170 +#define DECLARE_PKCS12_STACK_OF(type) /* Nothing */
1.171 +#define IMPLEMENT_PKCS12_STACK_OF(type) /* Nothing */
1.172 +
1.173 +typedef struct crypto_ex_data_st CRYPTO_EX_DATA;
1.174 +/* Callback types for crypto.h */
1.175 +typedef int CRYPTO_EX_new(void *parent, void *ptr, CRYPTO_EX_DATA *ad,
1.176 + int idx, long argl, void *argp);
1.177 +typedef void CRYPTO_EX_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad,
1.178 + int idx, long argl, void *argp);
1.179 +typedef int CRYPTO_EX_dup(CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, void *from_d,
1.180 + int idx, long argl, void *argp);
1.181 +
1.182 +#endif /* def HEADER_OPENSSL_TYPES_H */