chiark / gitweb /
Import gnupg2_2.1.17.orig.tar.bz2
[gnupg2.git] / common / status-codes.h
1 /* Output of mkstrtable.awk.  DO NOT EDIT.  */
2
3 /* status.h - Status codes
4  *      Copyright (C) 2007 Free Software Foundation, Inc.
5  *
6  * This file is part of GnuPG.
7  *
8  * This file is free software; you can redistribute it and/or modify
9  * it under the terms of either
10  *
11  *   - the GNU Lesser General Public License as published by the Free
12  *     Software Foundation; either version 3 of the License, or (at
13  *     your option) any later version.
14  *
15  * or
16  *
17  *   - the GNU General Public License as published by the Free
18  *     Software Foundation; either version 2 of the License, or (at
19  *     your option) any later version.
20  *
21  * or both in parallel, as here.
22  *
23  * This file is distributed in the hope that it will be useful,
24  * but WITHOUT ANY WARRANTY; without even the implied warranty of
25  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26  * GNU General Public License for more details.
27  *
28  * You should have received a copy of the GNU General Public License
29  * along with this program; if not, see <https://www.gnu.org/licenses/>.
30  */
31
32 /* The purpose of this complex string table is to produce
33    optimal code with a minimum of relocations.  */
34
35 static const char statusstr_msgstr[] = 
36   "ENTER" "\0"
37   "LEAVE" "\0"
38   "ABORT" "\0"
39   "GOODSIG" "\0"
40   "BADSIG" "\0"
41   "ERRSIG" "\0"
42   "BADARMOR" "\0"
43   "TRUST_UNDEFINED" "\0"
44   "TRUST_NEVER" "\0"
45   "TRUST_MARGINAL" "\0"
46   "TRUST_FULLY" "\0"
47   "TRUST_ULTIMATE" "\0"
48   "NEED_PASSPHRASE" "\0"
49   "VALIDSIG" "\0"
50   "SIG_ID" "\0"
51   "ENC_TO" "\0"
52   "NODATA" "\0"
53   "BAD_PASSPHRASE" "\0"
54   "NO_PUBKEY" "\0"
55   "NO_SECKEY" "\0"
56   "NEED_PASSPHRASE_SYM" "\0"
57   "DECRYPTION_INFO" "\0"
58   "DECRYPTION_FAILED" "\0"
59   "DECRYPTION_OKAY" "\0"
60   "MISSING_PASSPHRASE" "\0"
61   "GOOD_PASSPHRASE" "\0"
62   "GOODMDC" "\0"
63   "BADMDC" "\0"
64   "ERRMDC" "\0"
65   "IMPORTED" "\0"
66   "IMPORT_OK" "\0"
67   "IMPORT_PROBLEM" "\0"
68   "IMPORT_RES" "\0"
69   "IMPORT_CHECK" "\0"
70   "EXPORTED" "\0"
71   "EXPORT_RES" "\0"
72   "FILE_START" "\0"
73   "FILE_DONE" "\0"
74   "FILE_ERROR" "\0"
75   "BEGIN_DECRYPTION" "\0"
76   "END_DECRYPTION" "\0"
77   "BEGIN_ENCRYPTION" "\0"
78   "END_ENCRYPTION" "\0"
79   "BEGIN_SIGNING" "\0"
80   "DELETE_PROBLEM" "\0"
81   "GET_BOOL" "\0"
82   "GET_LINE" "\0"
83   "GET_HIDDEN" "\0"
84   "GOT_IT" "\0"
85   "PROGRESS" "\0"
86   "SIG_CREATED" "\0"
87   "SESSION_KEY" "\0"
88   "NOTATION_NAME" "\0"
89   "NOTATION_FLAGS" "\0"
90   "NOTATION_DATA" "\0"
91   "POLICY_URL" "\0"
92   "KEY_CREATED" "\0"
93   "USERID_HINT" "\0"
94   "UNEXPECTED" "\0"
95   "INV_RECP" "\0"
96   "INV_SGNR" "\0"
97   "NO_RECP" "\0"
98   "NO_SGNR" "\0"
99   "KEY_CONSIDERED" "\0"
100   "ALREADY_SIGNED" "\0"
101   "KEYEXPIRED" "\0"
102   "KEYREVOKED" "\0"
103   "EXPSIG" "\0"
104   "EXPKEYSIG" "\0"
105   "ATTRIBUTE" "\0"
106   "REVKEYSIG" "\0"
107   "NEWSIG" "\0"
108   "SIG_SUBPACKET" "\0"
109   "PLAINTEXT" "\0"
110   "PLAINTEXT_LENGTH" "\0"
111   "KEY_NOT_CREATED" "\0"
112   "NEED_PASSPHRASE_PIN" "\0"
113   "CARDCTRL" "\0"
114   "SC_OP_FAILURE" "\0"
115   "SC_OP_SUCCESS" "\0"
116   "BACKUP_KEY_CREATED" "\0"
117   "PKA_TRUST_BAD" "\0"
118   "PKA_TRUST_GOOD" "\0"
119   "TOFU_USER" "\0"
120   "TOFU_STATS" "\0"
121   "TOFU_STATS_SHORT" "\0"
122   "TOFU_STATS_LONG" "\0"
123   "TRUNCATED" "\0"
124   "MOUNTPOINT" "\0"
125   "BLOCKDEV" "\0"
126   "PINENTRY_LAUNCHED" "\0"
127   "PLAINTEXT_FOLLOWS" "\0"
128   "ERROR" "\0"
129   "WARNING" "\0"
130   "SUCCESS" "\0"
131   "FAILURE" "\0"
132   "INQUIRE_MAXLEN";
133
134 static const int statusstr_msgidx[] =
135   {
136     0,
137     6,
138     12,
139     18,
140     26,
141     33,
142     40,
143     49,
144     65,
145     77,
146     92,
147     104,
148     119,
149     135,
150     144,
151     151,
152     158,
153     165,
154     180,
155     190,
156     200,
157     220,
158     236,
159     254,
160     270,
161     289,
162     305,
163     313,
164     320,
165     327,
166     336,
167     346,
168     361,
169     372,
170     385,
171     394,
172     405,
173     416,
174     426,
175     437,
176     454,
177     469,
178     486,
179     501,
180     515,
181     530,
182     539,
183     548,
184     559,
185     566,
186     575,
187     587,
188     599,
189     613,
190     628,
191     642,
192     653,
193     665,
194     677,
195     688,
196     697,
197     706,
198     714,
199     722,
200     737,
201     752,
202     763,
203     774,
204     781,
205     791,
206     801,
207     811,
208     818,
209     832,
210     842,
211     859,
212     875,
213     895,
214     904,
215     918,
216     932,
217     951,
218     965,
219     980,
220     990,
221     1001,
222     1018,
223     1034,
224     1044,
225     1055,
226     1064,
227     1082,
228     1100,
229     1106,
230     1114,
231     1122,
232     1130,
233     
234   };
235
236 #define statusstr_msgidxof(code) (0 ? -1 \
237   : ((code >= 0) && (code <= 96)) ? (code - 0) \
238   : -1)