4272N/A/*
4272N/A * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
4272N/A * Use is subject to license terms.
4272N/A *
4272N/A * This library is free software; you can redistribute it and/or
4272N/A * modify it under the terms of the GNU Lesser General Public
4272N/A * License as published by the Free Software Foundation; either
4272N/A * version 2.1 of the License, or (at your option) any later version.
1674N/A *
4272N/A * This library is distributed in the hope that it will be useful,
4272N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of
4272N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4272N/A * Lesser General Public License for more details.
1674N/A *
4272N/A * You should have received a copy of the GNU Lesser General Public License
4272N/A * along with this library; if not, write to the Free Software Foundation,
4272N/A * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1674N/A *
4272N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4272N/A * or visit www.oracle.com if you need additional information or have any
4272N/A * questions.
4272N/A */
4272N/A
4272N/A/* *********************************************************************
1674N/A *
1674N/A * The Original Code is the Netscape security libraries.
1674N/A *
1674N/A * The Initial Developer of the Original Code is
1674N/A * Netscape Communications Corporation.
1674N/A * Portions created by the Initial Developer are Copyright (C) 1994-2000
1674N/A * the Initial Developer. All Rights Reserved.
1674N/A *
1674N/A * Contributor(s):
1674N/A * Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
1674N/A *
1674N/A *********************************************************************** */
1674N/A
1674N/A#ifndef _SECOIDT_H_
1674N/A#define _SECOIDT_H_
1674N/A
1674N/A/*
1674N/A * secoidt.h - public data structures for ASN.1 OID functions
1674N/A *
1674N/A * $Id: secoidt.h,v 1.23 2007/05/05 22:45:16 nelson%bolyard.com Exp $
1674N/A */
1674N/A
1674N/Atypedef struct SECOidDataStr SECOidData;
1674N/Atypedef struct SECAlgorithmIDStr SECAlgorithmID;
1674N/A
1674N/A/*
1674N/A** An X.500 algorithm identifier
1674N/A*/
1674N/Astruct SECAlgorithmIDStr {
1674N/A SECItem algorithm;
1674N/A SECItem parameters;
1674N/A};
1674N/A
1674N/A#define SEC_OID_SECG_EC_SECP192R1 SEC_OID_ANSIX962_EC_PRIME192V1
1674N/A#define SEC_OID_SECG_EC_SECP256R1 SEC_OID_ANSIX962_EC_PRIME256V1
1674N/A#define SEC_OID_PKCS12_KEY_USAGE SEC_OID_X509_KEY_USAGE
1674N/A
1674N/A/* fake OID for DSS sign/verify */
1674N/A#define SEC_OID_SHA SEC_OID_MISS_DSS
1674N/A
1674N/Atypedef enum {
1674N/A INVALID_CERT_EXTENSION = 0,
1674N/A UNSUPPORTED_CERT_EXTENSION = 1,
1674N/A SUPPORTED_CERT_EXTENSION = 2
1674N/A} SECSupportExtenTag;
1674N/A
1674N/Astruct SECOidDataStr {
1674N/A SECItem oid;
1674N/A ECCurveName offset;
1674N/A const char * desc;
1674N/A unsigned long mechanism;
1674N/A SECSupportExtenTag supportedExtension;
1674N/A /* only used for x.509 v3 extensions, so
1674N/A that we can print the names of those
1674N/A extensions that we don't even support */
1674N/A};
1674N/A
1674N/A#endif /* _SECOIDT_H_ */