ext_dat.h revision 160814
167754Smsmith/* ext_dat.h */
267754Smsmith/* Written by Dr Stephen N Henson (shenson@bigfoot.com) for the OpenSSL
377424Smsmith * project 1999.
499679Siwasaki */
567754Smsmith/* ====================================================================
667754Smsmith * Copyright (c) 1999-2004 The OpenSSL Project.  All rights reserved.
767754Smsmith *
867754Smsmith * Redistribution and use in source and binary forms, with or without
967754Smsmith * modification, are permitted provided that the following conditions
1067754Smsmith * are met:
1167754Smsmith *
1291116Smsmith * 1. Redistributions of source code must retain the above copyright
1370243Smsmith *    notice, this list of conditions and the following disclaimer.
1467754Smsmith *
1567754Smsmith * 2. Redistributions in binary form must reproduce the above copyright
1667754Smsmith *    notice, this list of conditions and the following disclaimer in
1767754Smsmith *    the documentation and/or other materials provided with the
1867754Smsmith *    distribution.
1967754Smsmith *
2067754Smsmith * 3. All advertising materials mentioning features or use of this
2167754Smsmith *    software must display the following acknowledgment:
2267754Smsmith *    "This product includes software developed by the OpenSSL Project
2367754Smsmith *    for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
2467754Smsmith *
2567754Smsmith * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
2667754Smsmith *    endorse or promote products derived from this software without
2767754Smsmith *    prior written permission. For written permission, please contact
2867754Smsmith *    licensing@OpenSSL.org.
2967754Smsmith *
3067754Smsmith * 5. Products derived from this software may not be called "OpenSSL"
3167754Smsmith *    nor may "OpenSSL" appear in their names without prior written
3267754Smsmith *    permission of the OpenSSL Project.
3367754Smsmith *
3467754Smsmith * 6. Redistributions of any form whatsoever must retain the following
3567754Smsmith *    acknowledgment:
3667754Smsmith *    "This product includes software developed by the OpenSSL Project
3767754Smsmith *    for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
3867754Smsmith *
3967754Smsmith * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
4067754Smsmith * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
4167754Smsmith * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
4267754Smsmith * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
4367754Smsmith * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
4467754Smsmith * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
4567754Smsmith * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
4667754Smsmith * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
4767754Smsmith * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
4867754Smsmith * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
4967754Smsmith * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
5067754Smsmith * OF THE POSSIBILITY OF SUCH DAMAGE.
5167754Smsmith * ====================================================================
5267754Smsmith *
5367754Smsmith * This product includes cryptographic software written by Eric Young
5467754Smsmith * (eay@cryptsoft.com).  This product includes software written by Tim
5567754Smsmith * Hudson (tjh@cryptsoft.com).
5667754Smsmith *
5767754Smsmith */
5867754Smsmith/* This file contains a table of "standard" extensions */
5967754Smsmith
6067754Smsmithextern X509V3_EXT_METHOD v3_bcons, v3_nscert, v3_key_usage, v3_ext_ku;
6167754Smsmithextern X509V3_EXT_METHOD v3_pkey_usage_period, v3_sxnet, v3_info, v3_sinfo;
6267754Smsmithextern X509V3_EXT_METHOD v3_ns_ia5_list[], v3_alt[], v3_skey_id, v3_akey_id;
6367754Smsmithextern X509V3_EXT_METHOD v3_crl_num, v3_crl_reason, v3_crl_invdate;
6467754Smsmithextern X509V3_EXT_METHOD v3_delta_crl, v3_cpols, v3_crld;
6567754Smsmithextern X509V3_EXT_METHOD v3_ocsp_nonce, v3_ocsp_accresp, v3_ocsp_acutoff;
6667754Smsmithextern X509V3_EXT_METHOD v3_ocsp_crlid, v3_ocsp_nocheck, v3_ocsp_serviceloc;
6767754Smsmithextern X509V3_EXT_METHOD v3_crl_hold, v3_pci;
6867754Smsmithextern X509V3_EXT_METHOD v3_policy_mappings, v3_policy_constraints;
6967754Smsmithextern X509V3_EXT_METHOD v3_name_constraints, v3_inhibit_anyp;
7067754Smsmith
7167754Smsmith/* This table will be searched using OBJ_bsearch so it *must* kept in
7267754Smsmith * order of the ext_nid values.
7367754Smsmith */
7467754Smsmith
7567754Smsmithstatic X509V3_EXT_METHOD *standard_exts[] = {
7667754Smsmith&v3_nscert,
7767754Smsmith&v3_ns_ia5_list[0],
7867754Smsmith&v3_ns_ia5_list[1],
7967754Smsmith&v3_ns_ia5_list[2],
8067754Smsmith&v3_ns_ia5_list[3],
8167754Smsmith&v3_ns_ia5_list[4],
8267754Smsmith&v3_ns_ia5_list[5],
8367754Smsmith&v3_ns_ia5_list[6],
8467754Smsmith&v3_skey_id,
8567754Smsmith&v3_key_usage,
8667754Smsmith&v3_pkey_usage_period,
8767754Smsmith&v3_alt[0],
8867754Smsmith&v3_alt[1],
8967754Smsmith&v3_bcons,
9067754Smsmith&v3_crl_num,
9167754Smsmith&v3_cpols,
9267754Smsmith&v3_akey_id,
9367754Smsmith&v3_crld,
9467754Smsmith&v3_ext_ku,
9567754Smsmith&v3_delta_crl,
9667754Smsmith&v3_crl_reason,
9767754Smsmith#ifndef OPENSSL_NO_OCSP
9867754Smsmith&v3_crl_invdate,
9967754Smsmith#endif
10067754Smsmith&v3_sxnet,
10167754Smsmith&v3_info,
10267754Smsmith#ifndef OPENSSL_NO_OCSP
10367754Smsmith&v3_ocsp_nonce,
10467754Smsmith&v3_ocsp_crlid,
10567754Smsmith&v3_ocsp_accresp,
10667754Smsmith&v3_ocsp_nocheck,
10767754Smsmith&v3_ocsp_acutoff,
10867754Smsmith&v3_ocsp_serviceloc,
10967754Smsmith#endif
11067754Smsmith&v3_sinfo,
11167754Smsmith&v3_policy_constraints,
11267754Smsmith#ifndef OPENSSL_NO_OCSP
11367754Smsmith&v3_crl_hold,
11467754Smsmith#endif
11567754Smsmith&v3_pci,
11667754Smsmith&v3_name_constraints,
11777424Smsmith&v3_policy_mappings,
11877424Smsmith&v3_inhibit_anyp
11967754Smsmith};
12067754Smsmith
12173561Smsmith/* Number of standard extensions */
12273561Smsmith
12373561Smsmith#define STANDARD_EXTENSION_COUNT (sizeof(standard_exts)/sizeof(X509V3_EXT_METHOD *))
12473561Smsmith
12573561Smsmith