os/ossrv/ssl/libcrypto/src/crypto/asn1/asn1_err.c
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /* crypto/asn1/asn1_err.c */
     2 /* ====================================================================
     3  * Copyright (c) 1999-2005 The OpenSSL Project.  All rights reserved.
     4  *
     5  * Redistribution and use in source and binary forms, with or without
     6  * modification, are permitted provided that the following conditions
     7  * are met:
     8  *
     9  * 1. Redistributions of source code must retain the above copyright
    10  *    notice, this list of conditions and the following disclaimer. 
    11  *
    12  * 2. Redistributions in binary form must reproduce the above copyright
    13  *    notice, this list of conditions and the following disclaimer in
    14  *    the documentation and/or other materials provided with the
    15  *    distribution.
    16  *
    17  * 3. All advertising materials mentioning features or use of this
    18  *    software must display the following acknowledgment:
    19  *    "This product includes software developed by the OpenSSL Project
    20  *    for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
    21  *
    22  * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
    23  *    endorse or promote products derived from this software without
    24  *    prior written permission. For written permission, please contact
    25  *    openssl-core@OpenSSL.org.
    26  *
    27  * 5. Products derived from this software may not be called "OpenSSL"
    28  *    nor may "OpenSSL" appear in their names without prior written
    29  *    permission of the OpenSSL Project.
    30  *
    31  * 6. Redistributions of any form whatsoever must retain the following
    32  *    acknowledgment:
    33  *    "This product includes software developed by the OpenSSL Project
    34  *    for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
    35  *
    36  * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
    37  * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    38  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    39  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
    40  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    41  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
    42  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    43  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    44  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
    45  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    46  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
    47  * OF THE POSSIBILITY OF SUCH DAMAGE.
    48  * ====================================================================
    49  *
    50  * This product includes cryptographic software written by Eric Young
    51  * (eay@cryptsoft.com).  This product includes software written by Tim
    52  * Hudson (tjh@cryptsoft.com).
    53  *
    54  */
    55  /*
    56  © Portions copyright (c) 2006 Nokia Corporation.  All rights reserved.
    57  */
    58 
    59 
    60 /* NOTE: this file was auto generated by the mkerr.pl script: any changes
    61  * made to it will be overwritten when the script next updates this file,
    62  * only reason strings will be preserved.
    63  */
    64 
    65 #include <stdio.h>
    66 #include <openssl/err.h>
    67 #include <openssl/asn1.h>
    68 #if (defined(SYMBIAN) && (defined(__WINSCW__) || defined(__WINS__)))
    69 #include "libcrypto_wsd_macros.h"
    70 #include "libcrypto_wsd.h"
    71 #endif
    72 
    73 /* BEGIN ERROR CODES */
    74 #ifndef OPENSSL_NO_ERR
    75 
    76 #define ERR_FUNC(func) ERR_PACK(ERR_LIB_ASN1,func,0)
    77 #define ERR_REASON(reason) ERR_PACK(ERR_LIB_ASN1,0,reason)
    78 
    79 #ifndef EMULATOR
    80 static ERR_STRING_DATA ASN1_str_functs[]=
    81 	{
    82 {ERR_FUNC(ASN1_F_A2D_ASN1_OBJECT),	"a2d_ASN1_OBJECT"},
    83 {ERR_FUNC(ASN1_F_A2I_ASN1_ENUMERATED),	"a2i_ASN1_ENUMERATED"},
    84 {ERR_FUNC(ASN1_F_A2I_ASN1_INTEGER),	"a2i_ASN1_INTEGER"},
    85 {ERR_FUNC(ASN1_F_A2I_ASN1_STRING),	"a2i_ASN1_STRING"},
    86 {ERR_FUNC(ASN1_F_APPEND_EXP),	"APPEND_EXP"},
    87 {ERR_FUNC(ASN1_F_ASN1_BIT_STRING_SET_BIT),	"ASN1_BIT_STRING_set_bit"},
    88 {ERR_FUNC(ASN1_F_ASN1_CB),	"ASN1_CB"},
    89 {ERR_FUNC(ASN1_F_ASN1_CHECK_TLEN),	"ASN1_CHECK_TLEN"},
    90 {ERR_FUNC(ASN1_F_ASN1_COLLATE_PRIMITIVE),	"ASN1_COLLATE_PRIMITIVE"},
    91 {ERR_FUNC(ASN1_F_ASN1_COLLECT),	"ASN1_COLLECT"},
    92 {ERR_FUNC(ASN1_F_ASN1_D2I_EX_PRIMITIVE),	"ASN1_D2I_EX_PRIMITIVE"},
    93 {ERR_FUNC(ASN1_F_ASN1_D2I_FP),	"ASN1_d2i_fp"},
    94 {ERR_FUNC(ASN1_F_ASN1_D2I_READ_BIO),	"ASN1_D2I_READ_BIO"},
    95 {ERR_FUNC(ASN1_F_ASN1_DIGEST),	"ASN1_digest"},
    96 {ERR_FUNC(ASN1_F_ASN1_DO_ADB),	"ASN1_DO_ADB"},
    97 {ERR_FUNC(ASN1_F_ASN1_DUP),	"ASN1_dup"},
    98 {ERR_FUNC(ASN1_F_ASN1_ENUMERATED_SET),	"ASN1_ENUMERATED_set"},
    99 {ERR_FUNC(ASN1_F_ASN1_ENUMERATED_TO_BN),	"ASN1_ENUMERATED_to_BN"},
   100 {ERR_FUNC(ASN1_F_ASN1_EX_C2I),	"ASN1_EX_C2I"},
   101 {ERR_FUNC(ASN1_F_ASN1_FIND_END),	"ASN1_FIND_END"},
   102 {ERR_FUNC(ASN1_F_ASN1_GENERALIZEDTIME_SET),	"ASN1_GENERALIZEDTIME_set"},
   103 {ERR_FUNC(ASN1_F_ASN1_GENERATE_V3),	"ASN1_generate_v3"},
   104 {ERR_FUNC(ASN1_F_ASN1_GET_OBJECT),	"ASN1_get_object"},
   105 {ERR_FUNC(ASN1_F_ASN1_HEADER_NEW),	"ASN1_HEADER_new"},
   106 {ERR_FUNC(ASN1_F_ASN1_I2D_BIO),	"ASN1_i2d_bio"},
   107 {ERR_FUNC(ASN1_F_ASN1_I2D_FP),	"ASN1_i2d_fp"},
   108 {ERR_FUNC(ASN1_F_ASN1_INTEGER_SET),	"ASN1_INTEGER_set"},
   109 {ERR_FUNC(ASN1_F_ASN1_INTEGER_TO_BN),	"ASN1_INTEGER_to_BN"},
   110 {ERR_FUNC(ASN1_F_ASN1_ITEM_D2I_FP),	"ASN1_item_d2i_fp"},
   111 {ERR_FUNC(ASN1_F_ASN1_ITEM_DUP),	"ASN1_item_dup"},
   112 {ERR_FUNC(ASN1_F_ASN1_ITEM_EX_COMBINE_NEW),	"ASN1_ITEM_EX_COMBINE_NEW"},
   113 {ERR_FUNC(ASN1_F_ASN1_ITEM_EX_D2I),	"ASN1_ITEM_EX_D2I"},
   114 {ERR_FUNC(ASN1_F_ASN1_ITEM_I2D_BIO),	"ASN1_item_i2d_bio"},
   115 {ERR_FUNC(ASN1_F_ASN1_ITEM_I2D_FP),	"ASN1_item_i2d_fp"},
   116 {ERR_FUNC(ASN1_F_ASN1_ITEM_PACK),	"ASN1_item_pack"},
   117 {ERR_FUNC(ASN1_F_ASN1_ITEM_SIGN),	"ASN1_item_sign"},
   118 {ERR_FUNC(ASN1_F_ASN1_ITEM_UNPACK),	"ASN1_item_unpack"},
   119 {ERR_FUNC(ASN1_F_ASN1_ITEM_VERIFY),	"ASN1_item_verify"},
   120 {ERR_FUNC(ASN1_F_ASN1_MBSTRING_NCOPY),	"ASN1_mbstring_ncopy"},
   121 {ERR_FUNC(ASN1_F_ASN1_OBJECT_NEW),	"ASN1_OBJECT_new"},
   122 {ERR_FUNC(ASN1_F_ASN1_PACK_STRING),	"ASN1_pack_string"},
   123 {ERR_FUNC(ASN1_F_ASN1_PCTX_NEW),	"ASN1_PCTX_NEW"},
   124 {ERR_FUNC(ASN1_F_ASN1_PKCS5_PBE_SET),	"ASN1_PKCS5_PBE_SET"},
   125 {ERR_FUNC(ASN1_F_ASN1_SEQ_PACK),	"ASN1_seq_pack"},
   126 {ERR_FUNC(ASN1_F_ASN1_SEQ_UNPACK),	"ASN1_seq_unpack"},
   127 {ERR_FUNC(ASN1_F_ASN1_SIGN),	"ASN1_sign"},
   128 {ERR_FUNC(ASN1_F_ASN1_STR2TYPE),	"ASN1_STR2TYPE"},
   129 {ERR_FUNC(ASN1_F_ASN1_STRING_SET),	"ASN1_STRING_set"},
   130 {ERR_FUNC(ASN1_F_ASN1_STRING_TABLE_ADD),	"ASN1_STRING_TABLE_add"},
   131 {ERR_FUNC(ASN1_F_ASN1_STRING_TYPE_NEW),	"ASN1_STRING_type_new"},
   132 {ERR_FUNC(ASN1_F_ASN1_TEMPLATE_EX_D2I),	"ASN1_TEMPLATE_EX_D2I"},
   133 {ERR_FUNC(ASN1_F_ASN1_TEMPLATE_NEW),	"ASN1_TEMPLATE_NEW"},
   134 {ERR_FUNC(ASN1_F_ASN1_TEMPLATE_NOEXP_D2I),	"ASN1_TEMPLATE_NOEXP_D2I"},
   135 {ERR_FUNC(ASN1_F_ASN1_TIME_SET),	"ASN1_TIME_set"},
   136 {ERR_FUNC(ASN1_F_ASN1_TYPE_GET_INT_OCTETSTRING),	"ASN1_TYPE_get_int_octetstring"},
   137 {ERR_FUNC(ASN1_F_ASN1_TYPE_GET_OCTETSTRING),	"ASN1_TYPE_get_octetstring"},
   138 {ERR_FUNC(ASN1_F_ASN1_UNPACK_STRING),	"ASN1_unpack_string"},
   139 {ERR_FUNC(ASN1_F_ASN1_UTCTIME_SET),	"ASN1_UTCTIME_set"},
   140 {ERR_FUNC(ASN1_F_ASN1_VERIFY),	"ASN1_verify"},
   141 {ERR_FUNC(ASN1_F_BITSTR_CB),	"BITSTR_CB"},
   142 {ERR_FUNC(ASN1_F_BN_TO_ASN1_ENUMERATED),	"BN_to_ASN1_ENUMERATED"},
   143 {ERR_FUNC(ASN1_F_BN_TO_ASN1_INTEGER),	"BN_to_ASN1_INTEGER"},
   144 {ERR_FUNC(ASN1_F_C2I_ASN1_BIT_STRING),	"c2i_ASN1_BIT_STRING"},
   145 {ERR_FUNC(ASN1_F_C2I_ASN1_INTEGER),	"c2i_ASN1_INTEGER"},
   146 {ERR_FUNC(ASN1_F_C2I_ASN1_OBJECT),	"c2i_ASN1_OBJECT"},
   147 {ERR_FUNC(ASN1_F_COLLECT_DATA),	"COLLECT_DATA"},
   148 {ERR_FUNC(ASN1_F_D2I_ASN1_BIT_STRING),	"D2I_ASN1_BIT_STRING"},
   149 {ERR_FUNC(ASN1_F_D2I_ASN1_BOOLEAN),	"d2i_ASN1_BOOLEAN"},
   150 {ERR_FUNC(ASN1_F_D2I_ASN1_BYTES),	"d2i_ASN1_bytes"},
   151 {ERR_FUNC(ASN1_F_D2I_ASN1_GENERALIZEDTIME),	"D2I_ASN1_GENERALIZEDTIME"},
   152 {ERR_FUNC(ASN1_F_D2I_ASN1_HEADER),	"d2i_ASN1_HEADER"},
   153 {ERR_FUNC(ASN1_F_D2I_ASN1_INTEGER),	"D2I_ASN1_INTEGER"},
   154 {ERR_FUNC(ASN1_F_D2I_ASN1_OBJECT),	"d2i_ASN1_OBJECT"},
   155 {ERR_FUNC(ASN1_F_D2I_ASN1_SET),	"d2i_ASN1_SET"},
   156 {ERR_FUNC(ASN1_F_D2I_ASN1_TYPE_BYTES),	"d2i_ASN1_type_bytes"},
   157 {ERR_FUNC(ASN1_F_D2I_ASN1_UINTEGER),	"d2i_ASN1_UINTEGER"},
   158 {ERR_FUNC(ASN1_F_D2I_ASN1_UTCTIME),	"D2I_ASN1_UTCTIME"},
   159 {ERR_FUNC(ASN1_F_D2I_NETSCAPE_RSA),	"d2i_Netscape_RSA"},
   160 {ERR_FUNC(ASN1_F_D2I_NETSCAPE_RSA_2),	"D2I_NETSCAPE_RSA_2"},
   161 {ERR_FUNC(ASN1_F_D2I_PRIVATEKEY),	"d2i_PrivateKey"},
   162 {ERR_FUNC(ASN1_F_D2I_PUBLICKEY),	"d2i_PublicKey"},
   163 {ERR_FUNC(ASN1_F_D2I_RSA_NET),	"d2i_RSA_NET"},
   164 {ERR_FUNC(ASN1_F_D2I_RSA_NET_2),	"D2I_RSA_NET_2"},
   165 {ERR_FUNC(ASN1_F_D2I_X509),	"D2I_X509"},
   166 {ERR_FUNC(ASN1_F_D2I_X509_CINF),	"D2I_X509_CINF"},
   167 {ERR_FUNC(ASN1_F_D2I_X509_PKEY),	"d2i_X509_PKEY"},
   168 {ERR_FUNC(ASN1_F_I2D_ASN1_SET),	"i2d_ASN1_SET"},
   169 {ERR_FUNC(ASN1_F_I2D_ASN1_TIME),	"I2D_ASN1_TIME"},
   170 {ERR_FUNC(ASN1_F_I2D_DSA_PUBKEY),	"i2d_DSA_PUBKEY"},
   171 {ERR_FUNC(ASN1_F_I2D_EC_PUBKEY),	"i2d_EC_PUBKEY"},
   172 {ERR_FUNC(ASN1_F_I2D_PRIVATEKEY),	"i2d_PrivateKey"},
   173 {ERR_FUNC(ASN1_F_I2D_PUBLICKEY),	"i2d_PublicKey"},
   174 {ERR_FUNC(ASN1_F_I2D_RSA_NET),	"i2d_RSA_NET"},
   175 {ERR_FUNC(ASN1_F_I2D_RSA_PUBKEY),	"i2d_RSA_PUBKEY"},
   176 {ERR_FUNC(ASN1_F_LONG_C2I),	"LONG_C2I"},
   177 {ERR_FUNC(ASN1_F_OID_MODULE_INIT),	"OID_MODULE_INIT"},
   178 {ERR_FUNC(ASN1_F_PARSE_TAGGING),	"PARSE_TAGGING"},
   179 {ERR_FUNC(ASN1_F_PKCS5_PBE2_SET),	"PKCS5_pbe2_set"},
   180 {ERR_FUNC(ASN1_F_PKCS5_PBE_SET),	"PKCS5_pbe_set"},
   181 {ERR_FUNC(ASN1_F_X509_CINF_NEW),	"X509_CINF_NEW"},
   182 {ERR_FUNC(ASN1_F_X509_CRL_ADD0_REVOKED),	"X509_CRL_add0_revoked"},
   183 {ERR_FUNC(ASN1_F_X509_INFO_NEW),	"X509_INFO_new"},
   184 {ERR_FUNC(ASN1_F_X509_NAME_ENCODE),	"X509_NAME_ENCODE"},
   185 {ERR_FUNC(ASN1_F_X509_NAME_EX_D2I),	"X509_NAME_EX_D2I"},
   186 {ERR_FUNC(ASN1_F_X509_NAME_EX_NEW),	"X509_NAME_EX_NEW"},
   187 {ERR_FUNC(ASN1_F_X509_NEW),	"X509_NEW"},
   188 {ERR_FUNC(ASN1_F_X509_PKEY_NEW),	"X509_PKEY_new"},
   189 {0,NULL}
   190 	};
   191 
   192 static ERR_STRING_DATA ASN1_str_reasons[]=
   193 
   194 	{
   195 {ERR_REASON(ASN1_R_ADDING_OBJECT)        ,"adding object"},
   196 {ERR_REASON(ASN1_R_AUX_ERROR)            ,"aux error"},
   197 {ERR_REASON(ASN1_R_BAD_CLASS)            ,"bad class"},
   198 {ERR_REASON(ASN1_R_BAD_OBJECT_HEADER)    ,"bad object header"},
   199 {ERR_REASON(ASN1_R_BAD_PASSWORD_READ)    ,"bad password read"},
   200 {ERR_REASON(ASN1_R_BAD_TAG)              ,"bad tag"},
   201 {ERR_REASON(ASN1_R_BN_LIB)               ,"bn lib"},
   202 {ERR_REASON(ASN1_R_BOOLEAN_IS_WRONG_LENGTH),"boolean is wrong length"},
   203 {ERR_REASON(ASN1_R_BUFFER_TOO_SMALL)     ,"buffer too small"},
   204 {ERR_REASON(ASN1_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER),"cipher has no object identifier"},
   205 {ERR_REASON(ASN1_R_DATA_IS_WRONG)        ,"data is wrong"},
   206 {ERR_REASON(ASN1_R_DECODE_ERROR)         ,"decode error"},
   207 {ERR_REASON(ASN1_R_DECODING_ERROR)       ,"decoding error"},
   208 {ERR_REASON(ASN1_R_DEPTH_EXCEEDED)       ,"depth exceeded"},
   209 {ERR_REASON(ASN1_R_ENCODE_ERROR)         ,"encode error"},
   210 {ERR_REASON(ASN1_R_ERROR_GETTING_TIME)   ,"error getting time"},
   211 {ERR_REASON(ASN1_R_ERROR_LOADING_SECTION),"error loading section"},
   212 {ERR_REASON(ASN1_R_ERROR_PARSING_SET_ELEMENT),"error parsing set element"},
   213 {ERR_REASON(ASN1_R_ERROR_SETTING_CIPHER_PARAMS),"error setting cipher params"},
   214 {ERR_REASON(ASN1_R_EXPECTING_AN_INTEGER) ,"expecting an integer"},
   215 {ERR_REASON(ASN1_R_EXPECTING_AN_OBJECT)  ,"expecting an object"},
   216 {ERR_REASON(ASN1_R_EXPECTING_A_BOOLEAN)  ,"expecting a boolean"},
   217 {ERR_REASON(ASN1_R_EXPECTING_A_TIME)     ,"expecting a time"},
   218 {ERR_REASON(ASN1_R_EXPLICIT_LENGTH_MISMATCH),"explicit length mismatch"},
   219 {ERR_REASON(ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED),"explicit tag not constructed"},
   220 {ERR_REASON(ASN1_R_FIELD_MISSING)        ,"field missing"},
   221 {ERR_REASON(ASN1_R_FIRST_NUM_TOO_LARGE)  ,"first num too large"},
   222 {ERR_REASON(ASN1_R_HEADER_TOO_LONG)      ,"header too long"},
   223 {ERR_REASON(ASN1_R_ILLEGAL_BITSTRING_FORMAT),"illegal bitstring format"},
   224 {ERR_REASON(ASN1_R_ILLEGAL_BOOLEAN)      ,"illegal boolean"},
   225 {ERR_REASON(ASN1_R_ILLEGAL_CHARACTERS)   ,"illegal characters"},
   226 {ERR_REASON(ASN1_R_ILLEGAL_FORMAT)       ,"illegal format"},
   227 {ERR_REASON(ASN1_R_ILLEGAL_HEX)          ,"illegal hex"},
   228 {ERR_REASON(ASN1_R_ILLEGAL_IMPLICIT_TAG) ,"illegal implicit tag"},
   229 {ERR_REASON(ASN1_R_ILLEGAL_INTEGER)      ,"illegal integer"},
   230 {ERR_REASON(ASN1_R_ILLEGAL_NESTED_TAGGING),"illegal nested tagging"},
   231 {ERR_REASON(ASN1_R_ILLEGAL_NULL)         ,"illegal null"},
   232 {ERR_REASON(ASN1_R_ILLEGAL_NULL_VALUE)   ,"illegal null value"},
   233 {ERR_REASON(ASN1_R_ILLEGAL_OBJECT)       ,"illegal object"},
   234 {ERR_REASON(ASN1_R_ILLEGAL_OPTIONAL_ANY) ,"illegal optional any"},
   235 {ERR_REASON(ASN1_R_ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE),"illegal options on item template"},
   236 {ERR_REASON(ASN1_R_ILLEGAL_TAGGED_ANY)   ,"illegal tagged any"},
   237 {ERR_REASON(ASN1_R_ILLEGAL_TIME_VALUE)   ,"illegal time value"},
   238 {ERR_REASON(ASN1_R_INTEGER_NOT_ASCII_FORMAT),"integer not ascii format"},
   239 {ERR_REASON(ASN1_R_INTEGER_TOO_LARGE_FOR_LONG),"integer too large for long"},
   240 {ERR_REASON(ASN1_R_INVALID_BMPSTRING_LENGTH),"invalid bmpstring length"},
   241 {ERR_REASON(ASN1_R_INVALID_DIGIT)        ,"invalid digit"},
   242 {ERR_REASON(ASN1_R_INVALID_MODIFIER)     ,"invalid modifier"},
   243 {ERR_REASON(ASN1_R_INVALID_NUMBER)       ,"invalid number"},
   244 {ERR_REASON(ASN1_R_INVALID_SEPARATOR)    ,"invalid separator"},
   245 {ERR_REASON(ASN1_R_INVALID_TIME_FORMAT)  ,"invalid time format"},
   246 {ERR_REASON(ASN1_R_INVALID_UNIVERSALSTRING_LENGTH),"invalid universalstring length"},
   247 {ERR_REASON(ASN1_R_INVALID_UTF8STRING)   ,"invalid utf8string"},
   248 {ERR_REASON(ASN1_R_IV_TOO_LARGE)         ,"iv too large"},
   249 {ERR_REASON(ASN1_R_LENGTH_ERROR)         ,"length error"},
   250 {ERR_REASON(ASN1_R_LIST_ERROR)           ,"list error"},
   251 {ERR_REASON(ASN1_R_MISSING_EOC)          ,"missing eoc"},
   252 {ERR_REASON(ASN1_R_MISSING_SECOND_NUMBER),"missing second number"},
   253 {ERR_REASON(ASN1_R_MISSING_VALUE)        ,"missing value"},
   254 {ERR_REASON(ASN1_R_MSTRING_NOT_UNIVERSAL),"mstring not universal"},
   255 {ERR_REASON(ASN1_R_MSTRING_WRONG_TAG)    ,"mstring wrong tag"},
   256 {ERR_REASON(ASN1_R_NESTED_ASN1_STRING)   ,"nested asn1 string"},
   257 {ERR_REASON(ASN1_R_NON_HEX_CHARACTERS)   ,"non hex characters"},
   258 {ERR_REASON(ASN1_R_NOT_ASCII_FORMAT)     ,"not ascii format"},
   259 {ERR_REASON(ASN1_R_NOT_ENOUGH_DATA)      ,"not enough data"},
   260 {ERR_REASON(ASN1_R_NO_MATCHING_CHOICE_TYPE),"no matching choice type"},
   261 {ERR_REASON(ASN1_R_NULL_IS_WRONG_LENGTH) ,"null is wrong length"},
   262 {ERR_REASON(ASN1_R_OBJECT_NOT_ASCII_FORMAT),"object not ascii format"},
   263 {ERR_REASON(ASN1_R_ODD_NUMBER_OF_CHARS)  ,"odd number of chars"},
   264 {ERR_REASON(ASN1_R_PRIVATE_KEY_HEADER_MISSING),"private key header missing"},
   265 {ERR_REASON(ASN1_R_SECOND_NUMBER_TOO_LARGE),"second number too large"},
   266 {ERR_REASON(ASN1_R_SEQUENCE_LENGTH_MISMATCH),"sequence length mismatch"},
   267 {ERR_REASON(ASN1_R_SEQUENCE_NOT_CONSTRUCTED),"sequence not constructed"},
   268 {ERR_REASON(ASN1_R_SEQUENCE_OR_SET_NEEDS_CONFIG),"sequence or set needs config"},
   269 {ERR_REASON(ASN1_R_SHORT_LINE)           ,"short line"},
   270 {ERR_REASON(ASN1_R_STRING_TOO_LONG)      ,"string too long"},
   271 {ERR_REASON(ASN1_R_STRING_TOO_SHORT)     ,"string too short"},
   272 {ERR_REASON(ASN1_R_TAG_VALUE_TOO_HIGH)   ,"tag value too high"},
   273 {ERR_REASON(ASN1_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD),"the asn1 object identifier is not known for this md"},
   274 {ERR_REASON(ASN1_R_TIME_NOT_ASCII_FORMAT),"time not ascii format"},
   275 {ERR_REASON(ASN1_R_TOO_LONG)             ,"too long"},
   276 {ERR_REASON(ASN1_R_TYPE_NOT_CONSTRUCTED) ,"type not constructed"},
   277 {ERR_REASON(ASN1_R_UNABLE_TO_DECODE_RSA_KEY),"unable to decode rsa key"},
   278 {ERR_REASON(ASN1_R_UNABLE_TO_DECODE_RSA_PRIVATE_KEY),"unable to decode rsa private key"},
   279 {ERR_REASON(ASN1_R_UNEXPECTED_EOC)       ,"unexpected eoc"},
   280 {ERR_REASON(ASN1_R_UNKNOWN_FORMAT)       ,"unknown format"},
   281 {ERR_REASON(ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM),"unknown message digest algorithm"},
   282 {ERR_REASON(ASN1_R_UNKNOWN_OBJECT_TYPE)  ,"unknown object type"},
   283 {ERR_REASON(ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE),"unknown public key type"},
   284 {ERR_REASON(ASN1_R_UNKNOWN_TAG)          ,"unknown tag"},
   285 {ERR_REASON(ASN1_R_UNKOWN_FORMAT)        ,"unkown format"},
   286 {ERR_REASON(ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE),"unsupported any defined by type"},
   287 {ERR_REASON(ASN1_R_UNSUPPORTED_CIPHER)   ,"unsupported cipher"},
   288 {ERR_REASON(ASN1_R_UNSUPPORTED_ENCRYPTION_ALGORITHM),"unsupported encryption algorithm"},
   289 {ERR_REASON(ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE),"unsupported public key type"},
   290 {ERR_REASON(ASN1_R_UNSUPPORTED_TYPE)     ,"unsupported type"},
   291 {ERR_REASON(ASN1_R_WRONG_TAG)            ,"wrong tag"},
   292 {ERR_REASON(ASN1_R_WRONG_TYPE)           ,"wrong type"},
   293 {0,NULL}
   294 	};
   295 #else //EMULATOR
   296 const ERR_STRING_DATA temp_ASN1_str_functs[]=
   297 	{
   298 {ERR_FUNC(ASN1_F_A2D_ASN1_OBJECT),	"a2d_ASN1_OBJECT"},
   299 {ERR_FUNC(ASN1_F_A2I_ASN1_ENUMERATED),	"a2i_ASN1_ENUMERATED"},
   300 {ERR_FUNC(ASN1_F_A2I_ASN1_INTEGER),	"a2i_ASN1_INTEGER"},
   301 {ERR_FUNC(ASN1_F_A2I_ASN1_STRING),	"a2i_ASN1_STRING"},
   302 {ERR_FUNC(ASN1_F_APPEND_EXP),	"APPEND_EXP"},
   303 {ERR_FUNC(ASN1_F_ASN1_BIT_STRING_SET_BIT),	"ASN1_BIT_STRING_set_bit"},
   304 {ERR_FUNC(ASN1_F_ASN1_CB),	"ASN1_CB"},
   305 {ERR_FUNC(ASN1_F_ASN1_CHECK_TLEN),	"ASN1_CHECK_TLEN"},
   306 {ERR_FUNC(ASN1_F_ASN1_COLLATE_PRIMITIVE),	"ASN1_COLLATE_PRIMITIVE"},
   307 {ERR_FUNC(ASN1_F_ASN1_COLLECT),	"ASN1_COLLECT"},
   308 {ERR_FUNC(ASN1_F_ASN1_D2I_EX_PRIMITIVE),	"ASN1_D2I_EX_PRIMITIVE"},
   309 {ERR_FUNC(ASN1_F_ASN1_D2I_FP),	"ASN1_d2i_fp"},
   310 {ERR_FUNC(ASN1_F_ASN1_D2I_READ_BIO),	"ASN1_D2I_READ_BIO"},
   311 {ERR_FUNC(ASN1_F_ASN1_DIGEST),	"ASN1_digest"},
   312 {ERR_FUNC(ASN1_F_ASN1_DO_ADB),	"ASN1_DO_ADB"},
   313 {ERR_FUNC(ASN1_F_ASN1_DUP),	"ASN1_dup"},
   314 {ERR_FUNC(ASN1_F_ASN1_ENUMERATED_SET),	"ASN1_ENUMERATED_set"},
   315 {ERR_FUNC(ASN1_F_ASN1_ENUMERATED_TO_BN),	"ASN1_ENUMERATED_to_BN"},
   316 {ERR_FUNC(ASN1_F_ASN1_EX_C2I),	"ASN1_EX_C2I"},
   317 {ERR_FUNC(ASN1_F_ASN1_FIND_END),	"ASN1_FIND_END"},
   318 {ERR_FUNC(ASN1_F_ASN1_GENERALIZEDTIME_SET),	"ASN1_GENERALIZEDTIME_set"},
   319 {ERR_FUNC(ASN1_F_ASN1_GENERATE_V3),	"ASN1_generate_v3"},
   320 {ERR_FUNC(ASN1_F_ASN1_GET_OBJECT),	"ASN1_get_object"},
   321 {ERR_FUNC(ASN1_F_ASN1_HEADER_NEW),	"ASN1_HEADER_new"},
   322 {ERR_FUNC(ASN1_F_ASN1_I2D_BIO),	"ASN1_i2d_bio"},
   323 {ERR_FUNC(ASN1_F_ASN1_I2D_FP),	"ASN1_i2d_fp"},
   324 {ERR_FUNC(ASN1_F_ASN1_INTEGER_SET),	"ASN1_INTEGER_set"},
   325 {ERR_FUNC(ASN1_F_ASN1_INTEGER_TO_BN),	"ASN1_INTEGER_to_BN"},
   326 {ERR_FUNC(ASN1_F_ASN1_ITEM_D2I_FP),	"ASN1_item_d2i_fp"},
   327 {ERR_FUNC(ASN1_F_ASN1_ITEM_DUP),	"ASN1_item_dup"},
   328 {ERR_FUNC(ASN1_F_ASN1_ITEM_EX_COMBINE_NEW),	"ASN1_ITEM_EX_COMBINE_NEW"},
   329 {ERR_FUNC(ASN1_F_ASN1_ITEM_EX_D2I),	"ASN1_ITEM_EX_D2I"},
   330 {ERR_FUNC(ASN1_F_ASN1_ITEM_I2D_BIO),	"ASN1_item_i2d_bio"},
   331 {ERR_FUNC(ASN1_F_ASN1_ITEM_I2D_FP),	"ASN1_item_i2d_fp"},
   332 {ERR_FUNC(ASN1_F_ASN1_ITEM_PACK),	"ASN1_item_pack"},
   333 {ERR_FUNC(ASN1_F_ASN1_ITEM_SIGN),	"ASN1_item_sign"},
   334 {ERR_FUNC(ASN1_F_ASN1_ITEM_UNPACK),	"ASN1_item_unpack"},
   335 {ERR_FUNC(ASN1_F_ASN1_ITEM_VERIFY),	"ASN1_item_verify"},
   336 {ERR_FUNC(ASN1_F_ASN1_MBSTRING_NCOPY),	"ASN1_mbstring_ncopy"},
   337 {ERR_FUNC(ASN1_F_ASN1_OBJECT_NEW),	"ASN1_OBJECT_new"},
   338 {ERR_FUNC(ASN1_F_ASN1_PACK_STRING),	"ASN1_pack_string"},
   339 {ERR_FUNC(ASN1_F_ASN1_PCTX_NEW),	"ASN1_PCTX_NEW"},
   340 {ERR_FUNC(ASN1_F_ASN1_PKCS5_PBE_SET),	"ASN1_PKCS5_PBE_SET"},
   341 {ERR_FUNC(ASN1_F_ASN1_SEQ_PACK),	"ASN1_seq_pack"},
   342 {ERR_FUNC(ASN1_F_ASN1_SEQ_UNPACK),	"ASN1_seq_unpack"},
   343 {ERR_FUNC(ASN1_F_ASN1_SIGN),	"ASN1_sign"},
   344 {ERR_FUNC(ASN1_F_ASN1_STR2TYPE),	"ASN1_STR2TYPE"},
   345 {ERR_FUNC(ASN1_F_ASN1_STRING_SET),	"ASN1_STRING_set"},
   346 {ERR_FUNC(ASN1_F_ASN1_STRING_TABLE_ADD),	"ASN1_STRING_TABLE_add"},
   347 {ERR_FUNC(ASN1_F_ASN1_STRING_TYPE_NEW),	"ASN1_STRING_type_new"},
   348 {ERR_FUNC(ASN1_F_ASN1_TEMPLATE_EX_D2I),	"ASN1_TEMPLATE_EX_D2I"},
   349 {ERR_FUNC(ASN1_F_ASN1_TEMPLATE_NEW),	"ASN1_TEMPLATE_NEW"},
   350 {ERR_FUNC(ASN1_F_ASN1_TEMPLATE_NOEXP_D2I),	"ASN1_TEMPLATE_NOEXP_D2I"},
   351 {ERR_FUNC(ASN1_F_ASN1_TIME_SET),	"ASN1_TIME_set"},
   352 {ERR_FUNC(ASN1_F_ASN1_TYPE_GET_INT_OCTETSTRING),	"ASN1_TYPE_get_int_octetstring"},
   353 {ERR_FUNC(ASN1_F_ASN1_TYPE_GET_OCTETSTRING),	"ASN1_TYPE_get_octetstring"},
   354 {ERR_FUNC(ASN1_F_ASN1_UNPACK_STRING),	"ASN1_unpack_string"},
   355 {ERR_FUNC(ASN1_F_ASN1_UTCTIME_SET),	"ASN1_UTCTIME_set"},
   356 {ERR_FUNC(ASN1_F_ASN1_VERIFY),	"ASN1_verify"},
   357 {ERR_FUNC(ASN1_F_BITSTR_CB),	"BITSTR_CB"},
   358 {ERR_FUNC(ASN1_F_BN_TO_ASN1_ENUMERATED),	"BN_to_ASN1_ENUMERATED"},
   359 {ERR_FUNC(ASN1_F_BN_TO_ASN1_INTEGER),	"BN_to_ASN1_INTEGER"},
   360 {ERR_FUNC(ASN1_F_C2I_ASN1_BIT_STRING),	"c2i_ASN1_BIT_STRING"},
   361 {ERR_FUNC(ASN1_F_C2I_ASN1_INTEGER),	"c2i_ASN1_INTEGER"},
   362 {ERR_FUNC(ASN1_F_C2I_ASN1_OBJECT),	"c2i_ASN1_OBJECT"},
   363 {ERR_FUNC(ASN1_F_COLLECT_DATA),	"COLLECT_DATA"},
   364 {ERR_FUNC(ASN1_F_D2I_ASN1_BIT_STRING),	"D2I_ASN1_BIT_STRING"},
   365 {ERR_FUNC(ASN1_F_D2I_ASN1_BOOLEAN),	"d2i_ASN1_BOOLEAN"},
   366 {ERR_FUNC(ASN1_F_D2I_ASN1_BYTES),	"d2i_ASN1_bytes"},
   367 {ERR_FUNC(ASN1_F_D2I_ASN1_GENERALIZEDTIME),	"D2I_ASN1_GENERALIZEDTIME"},
   368 {ERR_FUNC(ASN1_F_D2I_ASN1_HEADER),	"d2i_ASN1_HEADER"},
   369 {ERR_FUNC(ASN1_F_D2I_ASN1_INTEGER),	"D2I_ASN1_INTEGER"},
   370 {ERR_FUNC(ASN1_F_D2I_ASN1_OBJECT),	"d2i_ASN1_OBJECT"},
   371 {ERR_FUNC(ASN1_F_D2I_ASN1_SET),	"d2i_ASN1_SET"},
   372 {ERR_FUNC(ASN1_F_D2I_ASN1_TYPE_BYTES),	"d2i_ASN1_type_bytes"},
   373 {ERR_FUNC(ASN1_F_D2I_ASN1_UINTEGER),	"d2i_ASN1_UINTEGER"},
   374 {ERR_FUNC(ASN1_F_D2I_ASN1_UTCTIME),	"D2I_ASN1_UTCTIME"},
   375 {ERR_FUNC(ASN1_F_D2I_NETSCAPE_RSA),	"d2i_Netscape_RSA"},
   376 {ERR_FUNC(ASN1_F_D2I_NETSCAPE_RSA_2),	"D2I_NETSCAPE_RSA_2"},
   377 {ERR_FUNC(ASN1_F_D2I_PRIVATEKEY),	"d2i_PrivateKey"},
   378 {ERR_FUNC(ASN1_F_D2I_PUBLICKEY),	"d2i_PublicKey"},
   379 {ERR_FUNC(ASN1_F_D2I_RSA_NET),	"d2i_RSA_NET"},
   380 {ERR_FUNC(ASN1_F_D2I_RSA_NET_2),	"D2I_RSA_NET_2"},
   381 {ERR_FUNC(ASN1_F_D2I_X509),	"D2I_X509"},
   382 {ERR_FUNC(ASN1_F_D2I_X509_CINF),	"D2I_X509_CINF"},
   383 {ERR_FUNC(ASN1_F_D2I_X509_PKEY),	"d2i_X509_PKEY"},
   384 {ERR_FUNC(ASN1_F_I2D_ASN1_SET),	"i2d_ASN1_SET"},
   385 {ERR_FUNC(ASN1_F_I2D_ASN1_TIME),	"I2D_ASN1_TIME"},
   386 {ERR_FUNC(ASN1_F_I2D_DSA_PUBKEY),	"i2d_DSA_PUBKEY"},
   387 {ERR_FUNC(ASN1_F_I2D_EC_PUBKEY),	"i2d_EC_PUBKEY"},
   388 {ERR_FUNC(ASN1_F_I2D_PRIVATEKEY),	"i2d_PrivateKey"},
   389 {ERR_FUNC(ASN1_F_I2D_PUBLICKEY),	"i2d_PublicKey"},
   390 {ERR_FUNC(ASN1_F_I2D_RSA_NET),	"i2d_RSA_NET"},
   391 {ERR_FUNC(ASN1_F_I2D_RSA_PUBKEY),	"i2d_RSA_PUBKEY"},
   392 {ERR_FUNC(ASN1_F_LONG_C2I),	"LONG_C2I"},
   393 {ERR_FUNC(ASN1_F_OID_MODULE_INIT),	"OID_MODULE_INIT"},
   394 {ERR_FUNC(ASN1_F_PARSE_TAGGING),	"PARSE_TAGGING"},
   395 {ERR_FUNC(ASN1_F_PKCS5_PBE2_SET),	"PKCS5_pbe2_set"},
   396 {ERR_FUNC(ASN1_F_PKCS5_PBE_SET),	"PKCS5_pbe_set"},
   397 {ERR_FUNC(ASN1_F_X509_CINF_NEW),	"X509_CINF_NEW"},
   398 {ERR_FUNC(ASN1_F_X509_CRL_ADD0_REVOKED),	"X509_CRL_add0_revoked"},
   399 {ERR_FUNC(ASN1_F_X509_INFO_NEW),	"X509_INFO_new"},
   400 {ERR_FUNC(ASN1_F_X509_NAME_ENCODE),	"X509_NAME_ENCODE"},
   401 {ERR_FUNC(ASN1_F_X509_NAME_EX_D2I),	"X509_NAME_EX_D2I"},
   402 {ERR_FUNC(ASN1_F_X509_NAME_EX_NEW),	"X509_NAME_EX_NEW"},
   403 {ERR_FUNC(ASN1_F_X509_NEW),	"X509_NEW"},
   404 {ERR_FUNC(ASN1_F_X509_PKEY_NEW),	"X509_PKEY_new"},
   405 {0,NULL}
   406 	};
   407 
   408 const ERR_STRING_DATA temp_ASN1_str_reasons[]=
   409 	{
   410 {ERR_REASON(ASN1_R_ADDING_OBJECT)        ,"adding object"},
   411 {ERR_REASON(ASN1_R_AUX_ERROR)            ,"aux error"},
   412 {ERR_REASON(ASN1_R_BAD_CLASS)            ,"bad class"},
   413 {ERR_REASON(ASN1_R_BAD_OBJECT_HEADER)    ,"bad object header"},
   414 {ERR_REASON(ASN1_R_BAD_PASSWORD_READ)    ,"bad password read"},
   415 {ERR_REASON(ASN1_R_BAD_TAG)              ,"bad tag"},
   416 {ERR_REASON(ASN1_R_BN_LIB)               ,"bn lib"},
   417 {ERR_REASON(ASN1_R_BOOLEAN_IS_WRONG_LENGTH),"boolean is wrong length"},
   418 {ERR_REASON(ASN1_R_BUFFER_TOO_SMALL)     ,"buffer too small"},
   419 {ERR_REASON(ASN1_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER),"cipher has no object identifier"},
   420 {ERR_REASON(ASN1_R_DATA_IS_WRONG)        ,"data is wrong"},
   421 {ERR_REASON(ASN1_R_DECODE_ERROR)         ,"decode error"},
   422 {ERR_REASON(ASN1_R_DECODING_ERROR)       ,"decoding error"},
   423 {ERR_REASON(ASN1_R_DEPTH_EXCEEDED)       ,"depth exceeded"},
   424 {ERR_REASON(ASN1_R_ENCODE_ERROR)         ,"encode error"},
   425 {ERR_REASON(ASN1_R_ERROR_GETTING_TIME)   ,"error getting time"},
   426 {ERR_REASON(ASN1_R_ERROR_LOADING_SECTION),"error loading section"},
   427 {ERR_REASON(ASN1_R_ERROR_PARSING_SET_ELEMENT),"error parsing set element"},
   428 {ERR_REASON(ASN1_R_ERROR_SETTING_CIPHER_PARAMS),"error setting cipher params"},
   429 {ERR_REASON(ASN1_R_EXPECTING_AN_INTEGER) ,"expecting an integer"},
   430 {ERR_REASON(ASN1_R_EXPECTING_AN_OBJECT)  ,"expecting an object"},
   431 {ERR_REASON(ASN1_R_EXPECTING_A_BOOLEAN)  ,"expecting a boolean"},
   432 {ERR_REASON(ASN1_R_EXPECTING_A_TIME)     ,"expecting a time"},
   433 {ERR_REASON(ASN1_R_EXPLICIT_LENGTH_MISMATCH),"explicit length mismatch"},
   434 {ERR_REASON(ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED),"explicit tag not constructed"},
   435 {ERR_REASON(ASN1_R_FIELD_MISSING)        ,"field missing"},
   436 {ERR_REASON(ASN1_R_FIRST_NUM_TOO_LARGE)  ,"first num too large"},
   437 {ERR_REASON(ASN1_R_HEADER_TOO_LONG)      ,"header too long"},
   438 {ERR_REASON(ASN1_R_ILLEGAL_BITSTRING_FORMAT),"illegal bitstring format"},
   439 {ERR_REASON(ASN1_R_ILLEGAL_BOOLEAN)      ,"illegal boolean"},
   440 {ERR_REASON(ASN1_R_ILLEGAL_CHARACTERS)   ,"illegal characters"},
   441 {ERR_REASON(ASN1_R_ILLEGAL_FORMAT)       ,"illegal format"},
   442 {ERR_REASON(ASN1_R_ILLEGAL_HEX)          ,"illegal hex"},
   443 {ERR_REASON(ASN1_R_ILLEGAL_IMPLICIT_TAG) ,"illegal implicit tag"},
   444 {ERR_REASON(ASN1_R_ILLEGAL_INTEGER)      ,"illegal integer"},
   445 {ERR_REASON(ASN1_R_ILLEGAL_NESTED_TAGGING),"illegal nested tagging"},
   446 {ERR_REASON(ASN1_R_ILLEGAL_NULL)         ,"illegal null"},
   447 {ERR_REASON(ASN1_R_ILLEGAL_NULL_VALUE)   ,"illegal null value"},
   448 {ERR_REASON(ASN1_R_ILLEGAL_OBJECT)       ,"illegal object"},
   449 {ERR_REASON(ASN1_R_ILLEGAL_OPTIONAL_ANY) ,"illegal optional any"},
   450 {ERR_REASON(ASN1_R_ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE),"illegal options on item template"},
   451 {ERR_REASON(ASN1_R_ILLEGAL_TAGGED_ANY)   ,"illegal tagged any"},
   452 {ERR_REASON(ASN1_R_ILLEGAL_TIME_VALUE)   ,"illegal time value"},
   453 {ERR_REASON(ASN1_R_INTEGER_NOT_ASCII_FORMAT),"integer not ascii format"},
   454 {ERR_REASON(ASN1_R_INTEGER_TOO_LARGE_FOR_LONG),"integer too large for long"},
   455 {ERR_REASON(ASN1_R_INVALID_BMPSTRING_LENGTH),"invalid bmpstring length"},
   456 {ERR_REASON(ASN1_R_INVALID_DIGIT)        ,"invalid digit"},
   457 {ERR_REASON(ASN1_R_INVALID_MODIFIER)     ,"invalid modifier"},
   458 {ERR_REASON(ASN1_R_INVALID_NUMBER)       ,"invalid number"},
   459 {ERR_REASON(ASN1_R_INVALID_SEPARATOR)    ,"invalid separator"},
   460 {ERR_REASON(ASN1_R_INVALID_TIME_FORMAT)  ,"invalid time format"},
   461 {ERR_REASON(ASN1_R_INVALID_UNIVERSALSTRING_LENGTH),"invalid universalstring length"},
   462 {ERR_REASON(ASN1_R_INVALID_UTF8STRING)   ,"invalid utf8string"},
   463 {ERR_REASON(ASN1_R_IV_TOO_LARGE)         ,"iv too large"},
   464 {ERR_REASON(ASN1_R_LENGTH_ERROR)         ,"length error"},
   465 {ERR_REASON(ASN1_R_LIST_ERROR)           ,"list error"},
   466 {ERR_REASON(ASN1_R_MISSING_EOC)          ,"missing eoc"},
   467 {ERR_REASON(ASN1_R_MISSING_SECOND_NUMBER),"missing second number"},
   468 {ERR_REASON(ASN1_R_MISSING_VALUE)        ,"missing value"},
   469 {ERR_REASON(ASN1_R_MSTRING_NOT_UNIVERSAL),"mstring not universal"},
   470 {ERR_REASON(ASN1_R_MSTRING_WRONG_TAG)    ,"mstring wrong tag"},
   471 {ERR_REASON(ASN1_R_NESTED_ASN1_STRING)   ,"nested asn1 string"},
   472 {ERR_REASON(ASN1_R_NON_HEX_CHARACTERS)   ,"non hex characters"},
   473 {ERR_REASON(ASN1_R_NOT_ASCII_FORMAT)     ,"not ascii format"},
   474 {ERR_REASON(ASN1_R_NOT_ENOUGH_DATA)      ,"not enough data"},
   475 {ERR_REASON(ASN1_R_NO_MATCHING_CHOICE_TYPE),"no matching choice type"},
   476 {ERR_REASON(ASN1_R_NULL_IS_WRONG_LENGTH) ,"null is wrong length"},
   477 {ERR_REASON(ASN1_R_OBJECT_NOT_ASCII_FORMAT),"object not ascii format"},
   478 {ERR_REASON(ASN1_R_ODD_NUMBER_OF_CHARS)  ,"odd number of chars"},
   479 {ERR_REASON(ASN1_R_PRIVATE_KEY_HEADER_MISSING),"private key header missing"},
   480 {ERR_REASON(ASN1_R_SECOND_NUMBER_TOO_LARGE),"second number too large"},
   481 {ERR_REASON(ASN1_R_SEQUENCE_LENGTH_MISMATCH),"sequence length mismatch"},
   482 {ERR_REASON(ASN1_R_SEQUENCE_NOT_CONSTRUCTED),"sequence not constructed"},
   483 {ERR_REASON(ASN1_R_SEQUENCE_OR_SET_NEEDS_CONFIG),"sequence or set needs config"},
   484 {ERR_REASON(ASN1_R_SHORT_LINE)           ,"short line"},
   485 {ERR_REASON(ASN1_R_STRING_TOO_LONG)      ,"string too long"},
   486 {ERR_REASON(ASN1_R_STRING_TOO_SHORT)     ,"string too short"},
   487 {ERR_REASON(ASN1_R_TAG_VALUE_TOO_HIGH)   ,"tag value too high"},
   488 {ERR_REASON(ASN1_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD),"the asn1 object identifier is not known for this md"},
   489 {ERR_REASON(ASN1_R_TIME_NOT_ASCII_FORMAT),"time not ascii format"},
   490 {ERR_REASON(ASN1_R_TOO_LONG)             ,"too long"},
   491 {ERR_REASON(ASN1_R_TYPE_NOT_CONSTRUCTED) ,"type not constructed"},
   492 {ERR_REASON(ASN1_R_UNABLE_TO_DECODE_RSA_KEY),"unable to decode rsa key"},
   493 {ERR_REASON(ASN1_R_UNABLE_TO_DECODE_RSA_PRIVATE_KEY),"unable to decode rsa private key"},
   494 {ERR_REASON(ASN1_R_UNEXPECTED_EOC)       ,"unexpected eoc"},
   495 {ERR_REASON(ASN1_R_UNKNOWN_FORMAT)       ,"unknown format"},
   496 {ERR_REASON(ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM),"unknown message digest algorithm"},
   497 {ERR_REASON(ASN1_R_UNKNOWN_OBJECT_TYPE)  ,"unknown object type"},
   498 {ERR_REASON(ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE),"unknown public key type"},
   499 {ERR_REASON(ASN1_R_UNKNOWN_TAG)          ,"unknown tag"},
   500 {ERR_REASON(ASN1_R_UNKOWN_FORMAT)        ,"unkown format"},
   501 {ERR_REASON(ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE),"unsupported any defined by type"},
   502 {ERR_REASON(ASN1_R_UNSUPPORTED_CIPHER)   ,"unsupported cipher"},
   503 {ERR_REASON(ASN1_R_UNSUPPORTED_ENCRYPTION_ALGORITHM),"unsupported encryption algorithm"},
   504 {ERR_REASON(ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE),"unsupported public key type"},
   505 {ERR_REASON(ASN1_R_UNSUPPORTED_TYPE)     ,"unsupported type"},
   506 {ERR_REASON(ASN1_R_WRONG_TAG)            ,"wrong tag"},
   507 {ERR_REASON(ASN1_R_WRONG_TYPE)           ,"wrong type"},
   508 {0,NULL}
   509 	};
   510  GET_STATIC_ARRAY_FROM_TLS(ASN1_str_functs,asn1_err,ERR_STRING_DATA)
   511  GET_STATIC_ARRAY_FROM_TLS(ASN1_str_reasons,asn1_err,ERR_STRING_DATA)
   512  #define ASN1_str_functs (GET_WSD_VAR_NAME(ASN1_str_functs,asn1_err, s)())
   513  #define ASN1_str_reasons (GET_WSD_VAR_NAME(ASN1_str_reasons,asn1_err, s)())
   514 #endif //EMULATOR
   515 #endif
   516 
   517 
   518 EXPORT_C void ERR_load_ASN1_strings(void)
   519 	{
   520 #ifndef OPENSSL_NO_ERR
   521 
   522 	if (ERR_func_error_string(ASN1_str_functs[0].error) == NULL)
   523 		{
   524 		ERR_load_strings(0,ASN1_str_functs);
   525 		ERR_load_strings(0,ASN1_str_reasons);
   526 		}
   527 #endif
   528 	}