1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ssl/libcrypto/src/crypto/x509v3/ext_dat.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,189 @@
1.4 +/* ext_dat.h */
1.5 +/* Written by Dr Stephen N Henson (shenson@bigfoot.com) for the OpenSSL
1.6 + * project 1999.
1.7 + */
1.8 +/* ====================================================================
1.9 + * Copyright (c) 1999-2004 The OpenSSL Project. All rights reserved.
1.10 + *
1.11 + * Redistribution and use in source and binary forms, with or without
1.12 + * modification, are permitted provided that the following conditions
1.13 + * are met:
1.14 + *
1.15 + * 1. Redistributions of source code must retain the above copyright
1.16 + * notice, this list of conditions and the following disclaimer.
1.17 + *
1.18 + * 2. Redistributions in binary form must reproduce the above copyright
1.19 + * notice, this list of conditions and the following disclaimer in
1.20 + * the documentation and/or other materials provided with the
1.21 + * distribution.
1.22 + *
1.23 + * 3. All advertising materials mentioning features or use of this
1.24 + * software must display the following acknowledgment:
1.25 + * "This product includes software developed by the OpenSSL Project
1.26 + * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
1.27 + *
1.28 + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
1.29 + * endorse or promote products derived from this software without
1.30 + * prior written permission. For written permission, please contact
1.31 + * licensing@OpenSSL.org.
1.32 + *
1.33 + * 5. Products derived from this software may not be called "OpenSSL"
1.34 + * nor may "OpenSSL" appear in their names without prior written
1.35 + * permission of the OpenSSL Project.
1.36 + *
1.37 + * 6. Redistributions of any form whatsoever must retain the following
1.38 + * acknowledgment:
1.39 + * "This product includes software developed by the OpenSSL Project
1.40 + * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
1.41 + *
1.42 + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
1.43 + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1.44 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1.45 + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
1.46 + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1.47 + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
1.48 + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
1.49 + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1.50 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
1.51 + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1.52 + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
1.53 + * OF THE POSSIBILITY OF SUCH DAMAGE.
1.54 + * ====================================================================
1.55 + *
1.56 + * This product includes cryptographic software written by Eric Young
1.57 + * (eay@cryptsoft.com). This product includes software written by Tim
1.58 + * Hudson (tjh@cryptsoft.com).
1.59 + *
1.60 + */
1.61 +
1.62 +/*
1.63 + © Portions copyright (c) 2006, 2010 Nokia Corporation. All rights reserved.
1.64 + */
1.65 +
1.66 +/* This file contains a table of "standard" extensions */
1.67 +#if (defined(SYMBIAN) && (defined(__WINSCW__) || defined(__WINS__)))
1.68 +#include "libcrypto_wsd_macros.h"
1.69 +#include "libcrypto_wsd.h"
1.70 +#endif
1.71 +
1.72 +/* Extra declerations are added only to satisfy the RVCT2.2.
1.73 + RVCT4.0 is perfectly fine with out the extra declerations
1.74 + (the first 2 lines below)*/
1.75 +extern X509V3_EXT_METHOD v3_ext_ku;
1.76 +extern X509V3_EXT_METHOD v3_ocsp_accresp;
1.77 +IMPORT_C extern X509V3_EXT_METHOD v3_ext_ku;
1.78 +IMPORT_C extern X509V3_EXT_METHOD v3_ocsp_accresp;
1.79 +
1.80 +extern X509V3_EXT_METHOD v3_bcons, v3_nscert, v3_key_usage;
1.81 +extern X509V3_EXT_METHOD v3_pkey_usage_period, v3_sxnet, v3_info, v3_sinfo;
1.82 +extern X509V3_EXT_METHOD v3_ns_ia5_list[], v3_alt[], v3_skey_id, v3_akey_id;
1.83 +extern X509V3_EXT_METHOD v3_crl_num, v3_crl_reason, v3_crl_invdate;
1.84 +extern X509V3_EXT_METHOD v3_delta_crl, v3_cpols, v3_crld;
1.85 +extern X509V3_EXT_METHOD v3_ocsp_nonce, v3_ocsp_acutoff;
1.86 +extern X509V3_EXT_METHOD v3_ocsp_crlid, v3_ocsp_nocheck, v3_ocsp_serviceloc;
1.87 +extern X509V3_EXT_METHOD v3_crl_hold, v3_pci;
1.88 +extern X509V3_EXT_METHOD v3_policy_mappings, v3_policy_constraints;
1.89 +extern X509V3_EXT_METHOD v3_name_constraints, v3_inhibit_anyp;
1.90 +
1.91 +/* This table will be searched using OBJ_bsearch so it *must* kept in
1.92 + * order of the ext_nid values.
1.93 + */
1.94 +#ifndef EMULATOR
1.95 +static X509V3_EXT_METHOD *standard_exts[] = {
1.96 +&v3_nscert,
1.97 +&v3_ns_ia5_list[0],
1.98 +&v3_ns_ia5_list[1],
1.99 +&v3_ns_ia5_list[2],
1.100 +&v3_ns_ia5_list[3],
1.101 +&v3_ns_ia5_list[4],
1.102 +&v3_ns_ia5_list[5],
1.103 +&v3_ns_ia5_list[6],
1.104 +&v3_skey_id,
1.105 +&v3_key_usage,
1.106 +&v3_pkey_usage_period,
1.107 +&v3_alt[0],
1.108 +&v3_alt[1],
1.109 +&v3_bcons,
1.110 +&v3_crl_num,
1.111 +&v3_cpols,
1.112 +&v3_akey_id,
1.113 +&v3_crld,
1.114 +&v3_ext_ku,
1.115 +&v3_delta_crl,
1.116 +&v3_crl_reason,
1.117 +#ifndef OPENSSL_NO_OCSP
1.118 +&v3_crl_invdate,
1.119 +#endif
1.120 +&v3_sxnet,
1.121 +&v3_info,
1.122 +#ifndef OPENSSL_NO_OCSP
1.123 +&v3_ocsp_nonce,
1.124 +&v3_ocsp_crlid,
1.125 +&v3_ocsp_accresp,
1.126 +&v3_ocsp_nocheck,
1.127 +&v3_ocsp_acutoff,
1.128 +&v3_ocsp_serviceloc,
1.129 +#endif
1.130 +&v3_sinfo,
1.131 +&v3_policy_constraints,
1.132 +#ifndef OPENSSL_NO_OCSP
1.133 +&v3_crl_hold,
1.134 +#endif
1.135 +&v3_pci,
1.136 +&v3_name_constraints,
1.137 +&v3_policy_mappings,
1.138 +&v3_inhibit_anyp
1.139 +};
1.140 +#else
1.141 +const X509V3_EXT_METHOD *standard_exts[] = {
1.142 +&v3_nscert,
1.143 +&v3_ns_ia5_list[0],
1.144 +&v3_ns_ia5_list[1],
1.145 +&v3_ns_ia5_list[2],
1.146 +&v3_ns_ia5_list[3],
1.147 +&v3_ns_ia5_list[4],
1.148 +&v3_ns_ia5_list[5],
1.149 +&v3_ns_ia5_list[6],
1.150 +&v3_skey_id,
1.151 +&v3_key_usage,
1.152 +&v3_pkey_usage_period,
1.153 +&v3_alt[0],
1.154 +&v3_alt[1],
1.155 +&v3_bcons,
1.156 +&v3_crl_num,
1.157 +&v3_cpols,
1.158 +&v3_akey_id,
1.159 +&v3_crld,
1.160 +&v3_ext_ku,
1.161 +&v3_delta_crl,
1.162 +&v3_crl_reason,
1.163 +#ifndef OPENSSL_NO_OCSP
1.164 +&v3_crl_invdate,
1.165 +#endif
1.166 +&v3_sxnet,
1.167 +&v3_info,
1.168 +
1.169 +#ifndef OPENSSL_NO_OCSP
1.170 +&v3_ocsp_nonce,
1.171 +&v3_ocsp_crlid,
1.172 +&v3_ocsp_accresp,
1.173 +&v3_ocsp_nocheck,
1.174 +&v3_ocsp_acutoff,
1.175 +&v3_ocsp_serviceloc,
1.176 +#endif
1.177 +&v3_sinfo,
1.178 +&v3_policy_constraints,
1.179 +#ifndef OPENSSL_NO_OCSP
1.180 +&v3_crl_hold,
1.181 +#endif
1.182 +&v3_pci,
1.183 +&v3_name_constraints,
1.184 +&v3_policy_mappings,
1.185 +&v3_inhibit_anyp
1.186 +};
1.187 +#endif
1.188 +
1.189 +/* Number of standard extensions */
1.190 +
1.191 +#define STANDARD_EXTENSION_COUNT (sizeof(standard_exts)/sizeof(X509V3_EXT_METHOD *))
1.192 +