* gpg.texi (GPG Esoteric Options): Tweak mention of Tempest font to
[gnupg.git] / common / status.h
blob50a11914aa1cc72e3ff7906a13caa4397c018d46
1 /* status.h - Status codes
2 * Copyright (C) 2007 Free Software Foundation, Inc.
4 * This file is part of GnuPG.
6 * GnuPG is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * GnuPG is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef GNUPG_COMMON_STATUS_H
21 #define GNUPG_COMMON_STATUS_H
23 enum
25 STATUS_ENTER,
26 STATUS_LEAVE,
27 STATUS_ABORT,
29 STATUS_GOODSIG,
30 STATUS_BADSIG,
31 STATUS_ERRSIG,
33 STATUS_BADARMOR,
35 STATUS_RSA_OR_IDEA,
37 STATUS_TRUST_UNDEFINED,
38 STATUS_TRUST_NEVER,
39 STATUS_TRUST_MARGINAL,
40 STATUS_TRUST_FULLY,
41 STATUS_TRUST_ULTIMATE,
43 STATUS_NEED_PASSPHRASE,
44 STATUS_VALIDSIG,
45 STATUS_SIG_ID,
46 STATUS_ENC_TO,
47 STATUS_NODATA,
48 STATUS_BAD_PASSPHRASE,
49 STATUS_NO_PUBKEY,
50 STATUS_NO_SECKEY,
51 STATUS_NEED_PASSPHRASE_SYM,
52 STATUS_DECRYPTION_FAILED,
53 STATUS_DECRYPTION_OKAY,
54 STATUS_MISSING_PASSPHRASE,
55 STATUS_GOOD_PASSPHRASE,
56 STATUS_GOODMDC,
57 STATUS_BADMDC,
58 STATUS_ERRMDC,
59 STATUS_IMPORTED,
60 STATUS_IMPORT_OK,
61 STATUS_IMPORT_PROBLEM,
62 STATUS_IMPORT_RES,
63 STATUS_IMPORT_CHECK,
65 STATUS_FILE_START,
66 STATUS_FILE_DONE,
67 STATUS_FILE_ERROR,
69 STATUS_BEGIN_DECRYPTION,
70 STATUS_END_DECRYPTION,
71 STATUS_BEGIN_ENCRYPTION,
72 STATUS_END_ENCRYPTION,
73 STATUS_BEGIN_SIGNING,
75 STATUS_DELETE_PROBLEM,
77 STATUS_GET_BOOL,
78 STATUS_GET_LINE,
79 STATUS_GET_HIDDEN,
80 STATUS_GOT_IT,
82 STATUS_PROGRESS,
83 STATUS_SIG_CREATED,
84 STATUS_SESSION_KEY,
85 STATUS_NOTATION_NAME,
86 STATUS_NOTATION_DATA,
87 STATUS_POLICY_URL,
88 STATUS_BEGIN_STREAM,
89 STATUS_END_STREAM,
90 STATUS_KEY_CREATED,
91 STATUS_USERID_HINT,
92 STATUS_UNEXPECTED,
93 STATUS_INV_RECP,
94 STATUS_NO_RECP,
96 STATUS_ALREADY_SIGNED,
97 STATUS_KEYEXPIRED,
98 STATUS_KEYREVOKED,
99 STATUS_SIGEXPIRED,
100 STATUS_EXPSIG,
101 STATUS_EXPKEYSIG,
103 STATUS_ATTRIBUTE,
105 STATUS_REVKEYSIG,
107 STATUS_NEWSIG,
108 STATUS_SIG_SUBPACKET,
110 STATUS_PLAINTEXT,
111 STATUS_PLAINTEXT_LENGTH,
112 STATUS_KEY_NOT_CREATED,
113 STATUS_NEED_PASSPHRASE_PIN,
115 STATUS_CARDCTRL,
116 STATUS_SC_OP_FAILURE,
117 STATUS_SC_OP_SUCCESS,
119 STATUS_BACKUP_KEY_CREATED,
121 STATUS_PKA_TRUST_BAD,
122 STATUS_PKA_TRUST_GOOD,
124 STATUS_TRUNCATED,
125 STATUS_ERROR
129 const char *get_status_string (int code);
132 #endif /*GNUPG_COMMON_STATUS_H*/