1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate * Copyright 1998-2002 Sun Microsystems, Inc. All rights reserved.
3*0Sstevel@tonic-gate * Use is subject to license terms.
4*0Sstevel@tonic-gate */
5*0Sstevel@tonic-gate
6*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI"
7*0Sstevel@tonic-gate
8*0Sstevel@tonic-gate #include <locale.h>
9*0Sstevel@tonic-gate const char *
asn1_error_table(long errorno)10*0Sstevel@tonic-gate asn1_error_table(long errorno) {
11*0Sstevel@tonic-gate
12*0Sstevel@tonic-gate switch (errorno) {
13*0Sstevel@tonic-gate case 0:
14*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
15*0Sstevel@tonic-gate "ASN.1 failed call to system time library"));
16*0Sstevel@tonic-gate case 1:
17*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
18*0Sstevel@tonic-gate "ASN.1 structure is missing a required field"));
19*0Sstevel@tonic-gate case 2:
20*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
21*0Sstevel@tonic-gate "ASN.1 unexpected field number"));
22*0Sstevel@tonic-gate case 3:
23*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
24*0Sstevel@tonic-gate "ASN.1 type numbers are inconsistent"));
25*0Sstevel@tonic-gate case 4:
26*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
27*0Sstevel@tonic-gate "ASN.1 value too large"));
28*0Sstevel@tonic-gate case 5:
29*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
30*0Sstevel@tonic-gate "ASN.1 encoding ended unexpectedly"));
31*0Sstevel@tonic-gate case 6:
32*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
33*0Sstevel@tonic-gate "ASN.1 identifier doesn't match expected value"));
34*0Sstevel@tonic-gate case 7:
35*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
36*0Sstevel@tonic-gate "ASN.1 length doesn't match expected value"));
37*0Sstevel@tonic-gate case 8:
38*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
39*0Sstevel@tonic-gate "ASN.1 badly-formatted encoding"));
40*0Sstevel@tonic-gate case 9:
41*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
42*0Sstevel@tonic-gate "ASN.1 parse error"));
43*0Sstevel@tonic-gate case 10:
44*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
45*0Sstevel@tonic-gate "ASN.1 bad return from gmtime"));
46*0Sstevel@tonic-gate case 11:
47*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
48*0Sstevel@tonic-gate "ASN.1 non-constructed indefinite encoding"));
49*0Sstevel@tonic-gate case 12:
50*0Sstevel@tonic-gate return(dgettext(TEXT_DOMAIN,
51*0Sstevel@tonic-gate "ASN.1 missing expected EOC"));
52*0Sstevel@tonic-gate default:
53*0Sstevel@tonic-gate return("unknown error");
54*0Sstevel@tonic-gate }
55*0Sstevel@tonic-gate }
56