]>
Commit | Line | Data |
---|---|---|
b6cff313 | 1 | /* |
0cd0a820 | 2 | * Generated by util/mkerr.pl DO NOT EDIT |
b6cff313 | 3 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. |
6d311938 | 4 | * |
b6cff313 RS |
5 | * Licensed under the OpenSSL license (the "License"). You may not use |
6 | * this file except in compliance with the License. You can obtain a copy | |
7 | * in the file LICENSE in the source distribution or at | |
8 | * https://www.openssl.org/source/license.html | |
d02b48c6 | 9 | */ |
6d311938 | 10 | |
d02b48c6 | 11 | #include <stdio.h> |
ec577822 BM |
12 | #include <openssl/err.h> |
13 | #include <openssl/asn1.h> | |
d02b48c6 RE |
14 | |
15 | /* BEGIN ERROR CODES */ | |
cf1b7d96 | 16 | #ifndef OPENSSL_NO_ERR |
29dc3508 | 17 | |
0f113f3e MC |
18 | # define ERR_FUNC(func) ERR_PACK(ERR_LIB_ASN1,func,0) |
19 | # define ERR_REASON(reason) ERR_PACK(ERR_LIB_ASN1,0,reason) | |
29dc3508 | 20 | |
0f113f3e MC |
21 | static ERR_STRING_DATA ASN1_str_functs[] = { |
22 | {ERR_FUNC(ASN1_F_A2D_ASN1_OBJECT), "a2d_ASN1_OBJECT"}, | |
0f113f3e MC |
23 | {ERR_FUNC(ASN1_F_A2I_ASN1_INTEGER), "a2i_ASN1_INTEGER"}, |
24 | {ERR_FUNC(ASN1_F_A2I_ASN1_STRING), "a2i_ASN1_STRING"}, | |
b8fb5989 | 25 | {ERR_FUNC(ASN1_F_APPEND_EXP), "append_exp"}, |
0f113f3e | 26 | {ERR_FUNC(ASN1_F_ASN1_BIT_STRING_SET_BIT), "ASN1_BIT_STRING_set_bit"}, |
b8fb5989 DSH |
27 | {ERR_FUNC(ASN1_F_ASN1_CB), "asn1_cb"}, |
28 | {ERR_FUNC(ASN1_F_ASN1_CHECK_TLEN), "asn1_check_tlen"}, | |
b8fb5989 DSH |
29 | {ERR_FUNC(ASN1_F_ASN1_COLLECT), "asn1_collect"}, |
30 | {ERR_FUNC(ASN1_F_ASN1_D2I_EX_PRIMITIVE), "asn1_d2i_ex_primitive"}, | |
0f113f3e | 31 | {ERR_FUNC(ASN1_F_ASN1_D2I_FP), "ASN1_d2i_fp"}, |
b8fb5989 | 32 | {ERR_FUNC(ASN1_F_ASN1_D2I_READ_BIO), "asn1_d2i_read_bio"}, |
0f113f3e | 33 | {ERR_FUNC(ASN1_F_ASN1_DIGEST), "ASN1_digest"}, |
b8fb5989 | 34 | {ERR_FUNC(ASN1_F_ASN1_DO_ADB), "asn1_do_adb"}, |
0f113f3e | 35 | {ERR_FUNC(ASN1_F_ASN1_DUP), "ASN1_dup"}, |
b8fb5989 DSH |
36 | {ERR_FUNC(ASN1_F_ASN1_EX_C2I), "asn1_ex_c2i"}, |
37 | {ERR_FUNC(ASN1_F_ASN1_FIND_END), "asn1_find_end"}, | |
0f113f3e | 38 | {ERR_FUNC(ASN1_F_ASN1_GENERALIZEDTIME_ADJ), "ASN1_GENERALIZEDTIME_adj"}, |
0f113f3e | 39 | {ERR_FUNC(ASN1_F_ASN1_GENERATE_V3), "ASN1_generate_v3"}, |
b8fb5989 | 40 | {ERR_FUNC(ASN1_F_ASN1_GET_INT64), "asn1_get_int64"}, |
0f113f3e | 41 | {ERR_FUNC(ASN1_F_ASN1_GET_OBJECT), "ASN1_get_object"}, |
b8fb5989 | 42 | {ERR_FUNC(ASN1_F_ASN1_GET_UINT64), "asn1_get_uint64"}, |
0f113f3e MC |
43 | {ERR_FUNC(ASN1_F_ASN1_I2D_BIO), "ASN1_i2d_bio"}, |
44 | {ERR_FUNC(ASN1_F_ASN1_I2D_FP), "ASN1_i2d_fp"}, | |
0f113f3e MC |
45 | {ERR_FUNC(ASN1_F_ASN1_ITEM_D2I_FP), "ASN1_item_d2i_fp"}, |
46 | {ERR_FUNC(ASN1_F_ASN1_ITEM_DUP), "ASN1_item_dup"}, | |
f93ad22f | 47 | {ERR_FUNC(ASN1_F_ASN1_ITEM_EMBED_D2I), "asn1_item_embed_d2i"}, |
b8fb5989 | 48 | {ERR_FUNC(ASN1_F_ASN1_ITEM_EMBED_NEW), "asn1_item_embed_new"}, |
0f113f3e MC |
49 | {ERR_FUNC(ASN1_F_ASN1_ITEM_I2D_BIO), "ASN1_item_i2d_bio"}, |
50 | {ERR_FUNC(ASN1_F_ASN1_ITEM_I2D_FP), "ASN1_item_i2d_fp"}, | |
51 | {ERR_FUNC(ASN1_F_ASN1_ITEM_PACK), "ASN1_item_pack"}, | |
52 | {ERR_FUNC(ASN1_F_ASN1_ITEM_SIGN), "ASN1_item_sign"}, | |
53 | {ERR_FUNC(ASN1_F_ASN1_ITEM_SIGN_CTX), "ASN1_item_sign_ctx"}, | |
54 | {ERR_FUNC(ASN1_F_ASN1_ITEM_UNPACK), "ASN1_item_unpack"}, | |
55 | {ERR_FUNC(ASN1_F_ASN1_ITEM_VERIFY), "ASN1_item_verify"}, | |
56 | {ERR_FUNC(ASN1_F_ASN1_MBSTRING_NCOPY), "ASN1_mbstring_ncopy"}, | |
57 | {ERR_FUNC(ASN1_F_ASN1_OBJECT_NEW), "ASN1_OBJECT_new"}, | |
b8fb5989 | 58 | {ERR_FUNC(ASN1_F_ASN1_OUTPUT_DATA), "asn1_output_data"}, |
0f113f3e | 59 | {ERR_FUNC(ASN1_F_ASN1_PCTX_NEW), "ASN1_PCTX_new"}, |
0f113f3e | 60 | {ERR_FUNC(ASN1_F_ASN1_SCTX_NEW), "ASN1_SCTX_new"}, |
0f113f3e | 61 | {ERR_FUNC(ASN1_F_ASN1_SIGN), "ASN1_sign"}, |
b8fb5989 DSH |
62 | {ERR_FUNC(ASN1_F_ASN1_STR2TYPE), "asn1_str2type"}, |
63 | {ERR_FUNC(ASN1_F_ASN1_STRING_GET_INT64), "asn1_string_get_int64"}, | |
64 | {ERR_FUNC(ASN1_F_ASN1_STRING_GET_UINT64), "asn1_string_get_uint64"}, | |
0f113f3e MC |
65 | {ERR_FUNC(ASN1_F_ASN1_STRING_SET), "ASN1_STRING_set"}, |
66 | {ERR_FUNC(ASN1_F_ASN1_STRING_TABLE_ADD), "ASN1_STRING_TABLE_add"}, | |
b8fb5989 | 67 | {ERR_FUNC(ASN1_F_ASN1_STRING_TO_BN), "asn1_string_to_bn"}, |
0f113f3e | 68 | {ERR_FUNC(ASN1_F_ASN1_STRING_TYPE_NEW), "ASN1_STRING_type_new"}, |
b8fb5989 DSH |
69 | {ERR_FUNC(ASN1_F_ASN1_TEMPLATE_EX_D2I), "asn1_template_ex_d2i"}, |
70 | {ERR_FUNC(ASN1_F_ASN1_TEMPLATE_NEW), "asn1_template_new"}, | |
71 | {ERR_FUNC(ASN1_F_ASN1_TEMPLATE_NOEXP_D2I), "asn1_template_noexp_d2i"}, | |
0f113f3e | 72 | {ERR_FUNC(ASN1_F_ASN1_TIME_ADJ), "ASN1_TIME_adj"}, |
0f113f3e MC |
73 | {ERR_FUNC(ASN1_F_ASN1_TYPE_GET_INT_OCTETSTRING), |
74 | "ASN1_TYPE_get_int_octetstring"}, | |
75 | {ERR_FUNC(ASN1_F_ASN1_TYPE_GET_OCTETSTRING), "ASN1_TYPE_get_octetstring"}, | |
0f113f3e | 76 | {ERR_FUNC(ASN1_F_ASN1_UTCTIME_ADJ), "ASN1_UTCTIME_adj"}, |
0f113f3e | 77 | {ERR_FUNC(ASN1_F_ASN1_VERIFY), "ASN1_verify"}, |
b8fb5989 DSH |
78 | {ERR_FUNC(ASN1_F_B64_READ_ASN1), "b64_read_asn1"}, |
79 | {ERR_FUNC(ASN1_F_B64_WRITE_ASN1), "B64_write_ASN1"}, | |
0f113f3e | 80 | {ERR_FUNC(ASN1_F_BIO_NEW_NDEF), "BIO_new_NDEF"}, |
b8fb5989 | 81 | {ERR_FUNC(ASN1_F_BITSTR_CB), "bitstr_cb"}, |
b8fb5989 | 82 | {ERR_FUNC(ASN1_F_BN_TO_ASN1_STRING), "bn_to_asn1_string"}, |
0f113f3e MC |
83 | {ERR_FUNC(ASN1_F_C2I_ASN1_BIT_STRING), "c2i_ASN1_BIT_STRING"}, |
84 | {ERR_FUNC(ASN1_F_C2I_ASN1_INTEGER), "c2i_ASN1_INTEGER"}, | |
85 | {ERR_FUNC(ASN1_F_C2I_ASN1_OBJECT), "c2i_ASN1_OBJECT"}, | |
b8fb5989 DSH |
86 | {ERR_FUNC(ASN1_F_C2I_IBUF), "c2i_ibuf"}, |
87 | {ERR_FUNC(ASN1_F_COLLECT_DATA), "collect_data"}, | |
0f113f3e | 88 | {ERR_FUNC(ASN1_F_D2I_ASN1_OBJECT), "d2i_ASN1_OBJECT"}, |
0f113f3e | 89 | {ERR_FUNC(ASN1_F_D2I_ASN1_UINTEGER), "d2i_ASN1_UINTEGER"}, |
0f113f3e | 90 | {ERR_FUNC(ASN1_F_D2I_AUTOPRIVATEKEY), "d2i_AutoPrivateKey"}, |
0f113f3e MC |
91 | {ERR_FUNC(ASN1_F_D2I_PRIVATEKEY), "d2i_PrivateKey"}, |
92 | {ERR_FUNC(ASN1_F_D2I_PUBLICKEY), "d2i_PublicKey"}, | |
b8fb5989 | 93 | {ERR_FUNC(ASN1_F_DO_TCREATE), "do_tcreate"}, |
0f113f3e | 94 | {ERR_FUNC(ASN1_F_I2D_ASN1_BIO_STREAM), "i2d_ASN1_bio_stream"}, |
0f113f3e MC |
95 | {ERR_FUNC(ASN1_F_I2D_DSA_PUBKEY), "i2d_DSA_PUBKEY"}, |
96 | {ERR_FUNC(ASN1_F_I2D_EC_PUBKEY), "i2d_EC_PUBKEY"}, | |
97 | {ERR_FUNC(ASN1_F_I2D_PRIVATEKEY), "i2d_PrivateKey"}, | |
98 | {ERR_FUNC(ASN1_F_I2D_PUBLICKEY), "i2d_PublicKey"}, | |
0f113f3e | 99 | {ERR_FUNC(ASN1_F_I2D_RSA_PUBKEY), "i2d_RSA_PUBKEY"}, |
b8fb5989 DSH |
100 | {ERR_FUNC(ASN1_F_LONG_C2I), "long_c2i"}, |
101 | {ERR_FUNC(ASN1_F_OID_MODULE_INIT), "oid_module_init"}, | |
102 | {ERR_FUNC(ASN1_F_PARSE_TAGGING), "parse_tagging"}, | |
0f113f3e | 103 | {ERR_FUNC(ASN1_F_PKCS5_PBE2_SET_IV), "PKCS5_pbe2_set_iv"}, |
e98aa30d | 104 | {ERR_FUNC(ASN1_F_PKCS5_PBE2_SET_SCRYPT), "PKCS5_pbe2_set_scrypt"}, |
0f113f3e MC |
105 | {ERR_FUNC(ASN1_F_PKCS5_PBE_SET), "PKCS5_pbe_set"}, |
106 | {ERR_FUNC(ASN1_F_PKCS5_PBE_SET0_ALGOR), "PKCS5_pbe_set0_algor"}, | |
107 | {ERR_FUNC(ASN1_F_PKCS5_PBKDF2_SET), "PKCS5_pbkdf2_set"}, | |
b8fb5989 | 108 | {ERR_FUNC(ASN1_F_PKCS5_SCRYPT_SET), "pkcs5_scrypt_set"}, |
0f113f3e MC |
109 | {ERR_FUNC(ASN1_F_SMIME_READ_ASN1), "SMIME_read_ASN1"}, |
110 | {ERR_FUNC(ASN1_F_SMIME_TEXT), "SMIME_text"}, | |
b8fb5989 | 111 | {ERR_FUNC(ASN1_F_STBL_MODULE_INIT), "stbl_module_init"}, |
0f113f3e MC |
112 | {ERR_FUNC(ASN1_F_X509_CRL_ADD0_REVOKED), "X509_CRL_add0_revoked"}, |
113 | {ERR_FUNC(ASN1_F_X509_INFO_NEW), "X509_INFO_new"}, | |
b8fb5989 DSH |
114 | {ERR_FUNC(ASN1_F_X509_NAME_ENCODE), "x509_name_encode"}, |
115 | {ERR_FUNC(ASN1_F_X509_NAME_EX_D2I), "x509_name_ex_d2i"}, | |
116 | {ERR_FUNC(ASN1_F_X509_NAME_EX_NEW), "x509_name_ex_new"}, | |
0f113f3e MC |
117 | {ERR_FUNC(ASN1_F_X509_PKEY_NEW), "X509_PKEY_new"}, |
118 | {0, NULL} | |
119 | }; | |
d02b48c6 | 120 | |
0f113f3e MC |
121 | static ERR_STRING_DATA ASN1_str_reasons[] = { |
122 | {ERR_REASON(ASN1_R_ADDING_OBJECT), "adding object"}, | |
123 | {ERR_REASON(ASN1_R_ASN1_PARSE_ERROR), "asn1 parse error"}, | |
124 | {ERR_REASON(ASN1_R_ASN1_SIG_PARSE_ERROR), "asn1 sig parse error"}, | |
125 | {ERR_REASON(ASN1_R_AUX_ERROR), "aux error"}, | |
0f113f3e | 126 | {ERR_REASON(ASN1_R_BAD_OBJECT_HEADER), "bad object header"}, |
0f113f3e MC |
127 | {ERR_REASON(ASN1_R_BMPSTRING_IS_WRONG_LENGTH), |
128 | "bmpstring is wrong length"}, | |
129 | {ERR_REASON(ASN1_R_BN_LIB), "bn lib"}, | |
130 | {ERR_REASON(ASN1_R_BOOLEAN_IS_WRONG_LENGTH), "boolean is wrong length"}, | |
131 | {ERR_REASON(ASN1_R_BUFFER_TOO_SMALL), "buffer too small"}, | |
132 | {ERR_REASON(ASN1_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER), | |
133 | "cipher has no object identifier"}, | |
134 | {ERR_REASON(ASN1_R_CONTEXT_NOT_INITIALISED), "context not initialised"}, | |
135 | {ERR_REASON(ASN1_R_DATA_IS_WRONG), "data is wrong"}, | |
136 | {ERR_REASON(ASN1_R_DECODE_ERROR), "decode error"}, | |
0f113f3e MC |
137 | {ERR_REASON(ASN1_R_DEPTH_EXCEEDED), "depth exceeded"}, |
138 | {ERR_REASON(ASN1_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED), | |
139 | "digest and key type not supported"}, | |
140 | {ERR_REASON(ASN1_R_ENCODE_ERROR), "encode error"}, | |
141 | {ERR_REASON(ASN1_R_ERROR_GETTING_TIME), "error getting time"}, | |
142 | {ERR_REASON(ASN1_R_ERROR_LOADING_SECTION), "error loading section"}, | |
0f113f3e MC |
143 | {ERR_REASON(ASN1_R_ERROR_SETTING_CIPHER_PARAMS), |
144 | "error setting cipher params"}, | |
145 | {ERR_REASON(ASN1_R_EXPECTING_AN_INTEGER), "expecting an integer"}, | |
146 | {ERR_REASON(ASN1_R_EXPECTING_AN_OBJECT), "expecting an object"}, | |
0f113f3e MC |
147 | {ERR_REASON(ASN1_R_EXPLICIT_LENGTH_MISMATCH), "explicit length mismatch"}, |
148 | {ERR_REASON(ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED), | |
149 | "explicit tag not constructed"}, | |
150 | {ERR_REASON(ASN1_R_FIELD_MISSING), "field missing"}, | |
151 | {ERR_REASON(ASN1_R_FIRST_NUM_TOO_LARGE), "first num too large"}, | |
152 | {ERR_REASON(ASN1_R_HEADER_TOO_LONG), "header too long"}, | |
153 | {ERR_REASON(ASN1_R_ILLEGAL_BITSTRING_FORMAT), "illegal bitstring format"}, | |
154 | {ERR_REASON(ASN1_R_ILLEGAL_BOOLEAN), "illegal boolean"}, | |
155 | {ERR_REASON(ASN1_R_ILLEGAL_CHARACTERS), "illegal characters"}, | |
156 | {ERR_REASON(ASN1_R_ILLEGAL_FORMAT), "illegal format"}, | |
157 | {ERR_REASON(ASN1_R_ILLEGAL_HEX), "illegal hex"}, | |
158 | {ERR_REASON(ASN1_R_ILLEGAL_IMPLICIT_TAG), "illegal implicit tag"}, | |
159 | {ERR_REASON(ASN1_R_ILLEGAL_INTEGER), "illegal integer"}, | |
c5f28105 | 160 | {ERR_REASON(ASN1_R_ILLEGAL_NEGATIVE_VALUE), "illegal negative value"}, |
0f113f3e MC |
161 | {ERR_REASON(ASN1_R_ILLEGAL_NESTED_TAGGING), "illegal nested tagging"}, |
162 | {ERR_REASON(ASN1_R_ILLEGAL_NULL), "illegal null"}, | |
163 | {ERR_REASON(ASN1_R_ILLEGAL_NULL_VALUE), "illegal null value"}, | |
164 | {ERR_REASON(ASN1_R_ILLEGAL_OBJECT), "illegal object"}, | |
165 | {ERR_REASON(ASN1_R_ILLEGAL_OPTIONAL_ANY), "illegal optional any"}, | |
166 | {ERR_REASON(ASN1_R_ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE), | |
167 | "illegal options on item template"}, | |
6c5b6cb0 | 168 | {ERR_REASON(ASN1_R_ILLEGAL_PADDING), "illegal padding"}, |
0f113f3e MC |
169 | {ERR_REASON(ASN1_R_ILLEGAL_TAGGED_ANY), "illegal tagged any"}, |
170 | {ERR_REASON(ASN1_R_ILLEGAL_TIME_VALUE), "illegal time value"}, | |
6c5b6cb0 | 171 | {ERR_REASON(ASN1_R_ILLEGAL_ZERO_CONTENT), "illegal zero content"}, |
0f113f3e MC |
172 | {ERR_REASON(ASN1_R_INTEGER_NOT_ASCII_FORMAT), "integer not ascii format"}, |
173 | {ERR_REASON(ASN1_R_INTEGER_TOO_LARGE_FOR_LONG), | |
174 | "integer too large for long"}, | |
175 | {ERR_REASON(ASN1_R_INVALID_BIT_STRING_BITS_LEFT), | |
176 | "invalid bit string bits left"}, | |
177 | {ERR_REASON(ASN1_R_INVALID_BMPSTRING_LENGTH), "invalid bmpstring length"}, | |
178 | {ERR_REASON(ASN1_R_INVALID_DIGIT), "invalid digit"}, | |
179 | {ERR_REASON(ASN1_R_INVALID_MIME_TYPE), "invalid mime type"}, | |
180 | {ERR_REASON(ASN1_R_INVALID_MODIFIER), "invalid modifier"}, | |
181 | {ERR_REASON(ASN1_R_INVALID_NUMBER), "invalid number"}, | |
182 | {ERR_REASON(ASN1_R_INVALID_OBJECT_ENCODING), "invalid object encoding"}, | |
e98aa30d DSH |
183 | {ERR_REASON(ASN1_R_INVALID_SCRYPT_PARAMETERS), |
184 | "invalid scrypt parameters"}, | |
0f113f3e MC |
185 | {ERR_REASON(ASN1_R_INVALID_SEPARATOR), "invalid separator"}, |
186 | {ERR_REASON(ASN1_R_INVALID_STRING_TABLE_VALUE), | |
187 | "invalid string table value"}, | |
0f113f3e MC |
188 | {ERR_REASON(ASN1_R_INVALID_UNIVERSALSTRING_LENGTH), |
189 | "invalid universalstring length"}, | |
190 | {ERR_REASON(ASN1_R_INVALID_UTF8STRING), "invalid utf8string"}, | |
191 | {ERR_REASON(ASN1_R_INVALID_VALUE), "invalid value"}, | |
0f113f3e MC |
192 | {ERR_REASON(ASN1_R_LIST_ERROR), "list error"}, |
193 | {ERR_REASON(ASN1_R_MIME_NO_CONTENT_TYPE), "mime no content type"}, | |
194 | {ERR_REASON(ASN1_R_MIME_PARSE_ERROR), "mime parse error"}, | |
195 | {ERR_REASON(ASN1_R_MIME_SIG_PARSE_ERROR), "mime sig parse error"}, | |
196 | {ERR_REASON(ASN1_R_MISSING_EOC), "missing eoc"}, | |
197 | {ERR_REASON(ASN1_R_MISSING_SECOND_NUMBER), "missing second number"}, | |
198 | {ERR_REASON(ASN1_R_MISSING_VALUE), "missing value"}, | |
199 | {ERR_REASON(ASN1_R_MSTRING_NOT_UNIVERSAL), "mstring not universal"}, | |
200 | {ERR_REASON(ASN1_R_MSTRING_WRONG_TAG), "mstring wrong tag"}, | |
201 | {ERR_REASON(ASN1_R_NESTED_ASN1_STRING), "nested asn1 string"}, | |
202 | {ERR_REASON(ASN1_R_NON_HEX_CHARACTERS), "non hex characters"}, | |
203 | {ERR_REASON(ASN1_R_NOT_ASCII_FORMAT), "not ascii format"}, | |
204 | {ERR_REASON(ASN1_R_NOT_ENOUGH_DATA), "not enough data"}, | |
205 | {ERR_REASON(ASN1_R_NO_CONTENT_TYPE), "no content type"}, | |
0f113f3e MC |
206 | {ERR_REASON(ASN1_R_NO_MATCHING_CHOICE_TYPE), "no matching choice type"}, |
207 | {ERR_REASON(ASN1_R_NO_MULTIPART_BODY_FAILURE), | |
208 | "no multipart body failure"}, | |
209 | {ERR_REASON(ASN1_R_NO_MULTIPART_BOUNDARY), "no multipart boundary"}, | |
210 | {ERR_REASON(ASN1_R_NO_SIG_CONTENT_TYPE), "no sig content type"}, | |
211 | {ERR_REASON(ASN1_R_NULL_IS_WRONG_LENGTH), "null is wrong length"}, | |
212 | {ERR_REASON(ASN1_R_OBJECT_NOT_ASCII_FORMAT), "object not ascii format"}, | |
213 | {ERR_REASON(ASN1_R_ODD_NUMBER_OF_CHARS), "odd number of chars"}, | |
0f113f3e MC |
214 | {ERR_REASON(ASN1_R_SECOND_NUMBER_TOO_LARGE), "second number too large"}, |
215 | {ERR_REASON(ASN1_R_SEQUENCE_LENGTH_MISMATCH), "sequence length mismatch"}, | |
216 | {ERR_REASON(ASN1_R_SEQUENCE_NOT_CONSTRUCTED), "sequence not constructed"}, | |
217 | {ERR_REASON(ASN1_R_SEQUENCE_OR_SET_NEEDS_CONFIG), | |
218 | "sequence or set needs config"}, | |
219 | {ERR_REASON(ASN1_R_SHORT_LINE), "short line"}, | |
220 | {ERR_REASON(ASN1_R_SIG_INVALID_MIME_TYPE), "sig invalid mime type"}, | |
221 | {ERR_REASON(ASN1_R_STREAMING_NOT_SUPPORTED), "streaming not supported"}, | |
222 | {ERR_REASON(ASN1_R_STRING_TOO_LONG), "string too long"}, | |
223 | {ERR_REASON(ASN1_R_STRING_TOO_SHORT), "string too short"}, | |
0f113f3e MC |
224 | {ERR_REASON(ASN1_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD), |
225 | "the asn1 object identifier is not known for this md"}, | |
226 | {ERR_REASON(ASN1_R_TIME_NOT_ASCII_FORMAT), "time not ascii format"}, | |
6c5b6cb0 | 227 | {ERR_REASON(ASN1_R_TOO_LARGE), "too large"}, |
0f113f3e | 228 | {ERR_REASON(ASN1_R_TOO_LONG), "too long"}, |
6c5b6cb0 | 229 | {ERR_REASON(ASN1_R_TOO_SMALL), "too small"}, |
0f113f3e MC |
230 | {ERR_REASON(ASN1_R_TYPE_NOT_CONSTRUCTED), "type not constructed"}, |
231 | {ERR_REASON(ASN1_R_TYPE_NOT_PRIMITIVE), "type not primitive"}, | |
0f113f3e MC |
232 | {ERR_REASON(ASN1_R_UNEXPECTED_EOC), "unexpected eoc"}, |
233 | {ERR_REASON(ASN1_R_UNIVERSALSTRING_IS_WRONG_LENGTH), | |
234 | "universalstring is wrong length"}, | |
235 | {ERR_REASON(ASN1_R_UNKNOWN_FORMAT), "unknown format"}, | |
236 | {ERR_REASON(ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM), | |
237 | "unknown message digest algorithm"}, | |
238 | {ERR_REASON(ASN1_R_UNKNOWN_OBJECT_TYPE), "unknown object type"}, | |
239 | {ERR_REASON(ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE), "unknown public key type"}, | |
240 | {ERR_REASON(ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM), | |
241 | "unknown signature algorithm"}, | |
242 | {ERR_REASON(ASN1_R_UNKNOWN_TAG), "unknown tag"}, | |
243 | {ERR_REASON(ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE), | |
244 | "unsupported any defined by type"}, | |
0f113f3e MC |
245 | {ERR_REASON(ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE), |
246 | "unsupported public key type"}, | |
247 | {ERR_REASON(ASN1_R_UNSUPPORTED_TYPE), "unsupported type"}, | |
6c5b6cb0 | 248 | {ERR_REASON(ASN1_R_WRONG_INTEGER_TYPE), "wrong integer type"}, |
0f113f3e MC |
249 | {ERR_REASON(ASN1_R_WRONG_PUBLIC_KEY_TYPE), "wrong public key type"}, |
250 | {ERR_REASON(ASN1_R_WRONG_TAG), "wrong tag"}, | |
0f113f3e MC |
251 | {0, NULL} |
252 | }; | |
d02b48c6 | 253 | |
58964a49 RE |
254 | #endif |
255 | ||
6b691a5c | 256 | void ERR_load_ASN1_strings(void) |
0f113f3e | 257 | { |
47a9d527 | 258 | #ifndef OPENSSL_NO_ERR |
d02b48c6 | 259 | |
0f113f3e MC |
260 | if (ERR_func_error_string(ASN1_str_functs[0].error) == NULL) { |
261 | ERR_load_strings(0, ASN1_str_functs); | |
262 | ERR_load_strings(0, ASN1_str_reasons); | |
263 | } | |
47a9d527 | 264 | #endif |
0f113f3e | 265 | } |