chromium/third_party/boringssl/src/include/openssl/asn1.h

/* Copyright (C) 1995-1998 Eric Young ([email protected])
 * All rights reserved.
 *
 * This package is an SSL implementation written
 * by Eric Young ([email protected]).
 * The implementation was written so as to conform with Netscapes SSL.
 *
 * This library is free for commercial and non-commercial use as long as
 * the following conditions are aheared to.  The following conditions
 * apply to all code found in this distribution, be it the RC4, RSA,
 * lhash, DES, etc., code; not just the SSL code.  The SSL documentation
 * included with this distribution is covered by the same copyright terms
 * except that the holder is Tim Hudson ([email protected]).
 *
 * Copyright remains Eric Young's, and as such any Copyright notices in
 * the code are not to be removed.
 * If this package is used in a product, Eric Young should be given attribution
 * as the author of the parts of the library used.
 * This can be in the form of a textual message at program startup or
 * in documentation (online or textual) provided with the package.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *    "This product includes cryptographic software written by
 *     Eric Young ([email protected])"
 *    The word 'cryptographic' can be left out if the rouines from the library
 *    being used are not cryptographic related :-).
 * 4. If you include any Windows specific code (or a derivative thereof) from
 *    the apps directory (application code) you must include an acknowledgement:
 *    "This product includes software written by Tim Hudson ([email protected])"
 *
 * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 * The licence and distribution terms for any publically available version or
 * derivative of this code cannot be changed.  i.e. this code cannot simply be
 * copied and put under another distribution licence
 * [including the GNU Public Licence.]
 */

#ifndef OPENSSL_HEADER_ASN1_H
#define OPENSSL_HEADER_ASN1_H

#include <openssl/base.h>

#include <time.h>

#include <openssl/bio.h>
#include <openssl/bn.h>
#include <openssl/stack.h>

#if defined(__cplusplus)
extern  // extern C

extern "C++" {

BSSL_NAMESPACE_BEGIN

BORINGSSL_MAKE_DELETER()
BORINGSSL_MAKE_DELETER()
BORINGSSL_MAKE_DELETER()

BSSL_NAMESPACE_END

}  // extern C++

#endif

#define ASN1_R_ASN1_LENGTH_MISMATCH
#define ASN1_R_AUX_ERROR
#define ASN1_R_BAD_GET_ASN1_OBJECT_CALL
#define ASN1_R_BAD_OBJECT_HEADER
#define ASN1_R_BMPSTRING_IS_WRONG_LENGTH
#define ASN1_R_BN_LIB
#define ASN1_R_BOOLEAN_IS_WRONG_LENGTH
#define ASN1_R_BUFFER_TOO_SMALL
#define ASN1_R_CONTEXT_NOT_INITIALISED
#define ASN1_R_DECODE_ERROR
#define ASN1_R_DEPTH_EXCEEDED
#define ASN1_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED
#define ASN1_R_ENCODE_ERROR
#define ASN1_R_ERROR_GETTING_TIME
#define ASN1_R_EXPECTING_AN_ASN1_SEQUENCE
#define ASN1_R_EXPECTING_AN_INTEGER
#define ASN1_R_EXPECTING_AN_OBJECT
#define ASN1_R_EXPECTING_A_BOOLEAN
#define ASN1_R_EXPECTING_A_TIME
#define ASN1_R_EXPLICIT_LENGTH_MISMATCH
#define ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED
#define ASN1_R_FIELD_MISSING
#define ASN1_R_FIRST_NUM_TOO_LARGE
#define ASN1_R_HEADER_TOO_LONG
#define ASN1_R_ILLEGAL_BITSTRING_FORMAT
#define ASN1_R_ILLEGAL_BOOLEAN
#define ASN1_R_ILLEGAL_CHARACTERS
#define ASN1_R_ILLEGAL_FORMAT
#define ASN1_R_ILLEGAL_HEX
#define ASN1_R_ILLEGAL_IMPLICIT_TAG
#define ASN1_R_ILLEGAL_INTEGER
#define ASN1_R_ILLEGAL_NESTED_TAGGING
#define ASN1_R_ILLEGAL_NULL
#define ASN1_R_ILLEGAL_NULL_VALUE
#define ASN1_R_ILLEGAL_OBJECT
#define ASN1_R_ILLEGAL_OPTIONAL_ANY
#define ASN1_R_ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE
#define ASN1_R_ILLEGAL_TAGGED_ANY
#define ASN1_R_ILLEGAL_TIME_VALUE
#define ASN1_R_INTEGER_NOT_ASCII_FORMAT
#define ASN1_R_INTEGER_TOO_LARGE_FOR_LONG
#define ASN1_R_INVALID_BIT_STRING_BITS_LEFT
#define ASN1_R_INVALID_BMPSTRING
#define ASN1_R_INVALID_DIGIT
#define ASN1_R_INVALID_MODIFIER
#define ASN1_R_INVALID_NUMBER
#define ASN1_R_INVALID_OBJECT_ENCODING
#define ASN1_R_INVALID_SEPARATOR
#define ASN1_R_INVALID_TIME_FORMAT
#define ASN1_R_INVALID_UNIVERSALSTRING
#define ASN1_R_INVALID_UTF8STRING
#define ASN1_R_LIST_ERROR
#define ASN1_R_MISSING_ASN1_EOS
#define ASN1_R_MISSING_EOC
#define ASN1_R_MISSING_SECOND_NUMBER
#define ASN1_R_MISSING_VALUE
#define ASN1_R_MSTRING_NOT_UNIVERSAL
#define ASN1_R_MSTRING_WRONG_TAG
#define ASN1_R_NESTED_ASN1_ERROR
#define ASN1_R_NESTED_ASN1_STRING
#define ASN1_R_NON_HEX_CHARACTERS
#define ASN1_R_NOT_ASCII_FORMAT
#define ASN1_R_NOT_ENOUGH_DATA
#define ASN1_R_NO_MATCHING_CHOICE_TYPE
#define ASN1_R_NULL_IS_WRONG_LENGTH
#define ASN1_R_OBJECT_NOT_ASCII_FORMAT
#define ASN1_R_ODD_NUMBER_OF_CHARS
#define ASN1_R_SECOND_NUMBER_TOO_LARGE
#define ASN1_R_SEQUENCE_LENGTH_MISMATCH
#define ASN1_R_SEQUENCE_NOT_CONSTRUCTED
#define ASN1_R_SEQUENCE_OR_SET_NEEDS_CONFIG
#define ASN1_R_SHORT_LINE
#define ASN1_R_STREAMING_NOT_SUPPORTED
#define ASN1_R_STRING_TOO_LONG
#define ASN1_R_STRING_TOO_SHORT
#define ASN1_R_TAG_VALUE_TOO_HIGH
#define ASN1_R_TIME_NOT_ASCII_FORMAT
#define ASN1_R_TOO_LONG
#define ASN1_R_TYPE_NOT_CONSTRUCTED
#define ASN1_R_TYPE_NOT_PRIMITIVE
#define ASN1_R_UNEXPECTED_EOC
#define ASN1_R_UNIVERSALSTRING_IS_WRONG_LENGTH
#define ASN1_R_UNKNOWN_FORMAT
#define ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM
#define ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM
#define ASN1_R_UNKNOWN_TAG
#define ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE
#define ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE
#define ASN1_R_UNSUPPORTED_TYPE
#define ASN1_R_WRONG_PUBLIC_KEY_TYPE
#define ASN1_R_WRONG_TAG
#define ASN1_R_WRONG_TYPE
#define ASN1_R_NESTED_TOO_DEEP
#define ASN1_R_BAD_TEMPLATE
#define ASN1_R_INVALID_BIT_STRING_PADDING
#define ASN1_R_WRONG_INTEGER_TYPE
#define ASN1_R_INVALID_INTEGER

#endif  // OPENSSL_HEADER_ASN1_H