Upstream sync.
[shishi.git] / asn1 / lib / errors_int.h
blob6d2706f088559fb0b45f0dacd6b5689f73991625
1 /* libasn1 error codes. The mapping to a TLS alert is also shown in
2 * comments.
3 */
5 #define ASN1_SUCCESS 0
6 #define ASN1_FILE_NOT_FOUND 1
7 #define ASN1_ELEMENT_NOT_FOUND 2
8 #define ASN1_IDENTIFIER_NOT_FOUND 3
9 #define ASN1_DER_ERROR 4
10 #define ASN1_VALUE_NOT_FOUND 5
11 #define ASN1_GENERIC_ERROR 6
12 #define ASN1_VALUE_NOT_VALID 7
13 #define ASN1_TAG_ERROR 8
14 #define ASN1_TAG_IMPLICIT 9
15 #define ASN1_ERROR_TYPE_ANY 10
16 #define ASN1_SYNTAX_ERROR 11
17 #define ASN1_MEM_ERROR 12
18 #define ASN1_MEM_ALLOC_ERROR 13
19 #define ASN1_DER_OVERFLOW 14
20 #define ASN1_NAME_TOO_LONG 15
21 #define ASN1_ARRAY_ERROR 16
22 #define ASN1_ELEMENT_NOT_EMPTY 17